Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit fb80221

Browse files
committed
🎨 Replace [a-zA-Z_$0-9] -> [\\w$]
1 parent b14ae08 commit fb80221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/javascript.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
import|package|return|switch|throw|try|while|with)
423423
[\\s\\(]
424424
)
425-
\\b[a-zA-Z_$][a-zA-Z_$0-9]*
425+
\\b[a-zA-Z_$][\\w$]*
426426
\\s*\\(\\s*
427427
(("[^"]*")|(\\'[^\\']*\\')|((?!"|\\'|\\(|\\)).))*
428428
\\)\\s*\\{
@@ -1166,7 +1166,7 @@
11661166
'include': '#function_params'
11671167
}
11681168
{
1169-
'match': '([a-zA-Z_$][a-zA-Z_$0-9]*)(?=\\s*=>)'
1169+
'match': '([a-zA-Z_$][\\w$]*)(?=\\s*=>)'
11701170
'captures':
11711171
'0':
11721172
'name': 'meta.parameters.js'

0 commit comments

Comments
 (0)