Skip to content

Commit 17bf40b

Browse files
authored
Update languageConfiguration.ts
`---foo` and `--- foo` is being treated differently. This change fixes that.
1 parent db2b0b7 commit 17bf40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/languageConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ export class LuaLanguageConfiguration implements LanguageConfiguration {
114114
* Matches strings, numbers, and identifiers
115115
*/
116116
private buildWordPattern(): RegExp {
117-
return /((?<=')[^']+(?='))|((?<=")[^"]+(?="))|(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g;
117+
return /((?<=')[^']+(?='))|((?<=")[^"]+(?="))|(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\-\s]+)/g;
118118
}
119119
}

0 commit comments

Comments
 (0)