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

Commit fc8560e

Browse files
author
Alhadis
committed
Fix failing specs
1 parent b9ba47b commit fc8560e

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
@@ -279,7 +279,7 @@
279279
]
280280
}
281281
{
282-
'match': '(?<!\\.)\\b(super|this|arguments)(?!\\s*:)\\b'
282+
'match': '(?<!\\.)\\b(?<!\\$)(super|this|arguments)(?!\\s*:|\\$)\\b'
283283
'name': 'variable.language.js'
284284
}
285285
{
@@ -1120,7 +1120,7 @@
11201120
'include': '#properties'
11211121
}
11221122
{
1123-
'match': '(?<!\\.)\\b[A-Z][A-Z0-9_]+(?!\\s*:)\\b'
1123+
'match': '((?<!\\.|[\\w$])(?![_\\$]+[^A-Z0-9_$])\\$*\\b(?:[A-Z_$][A-Z0-9_$]*)\\b\\$*)(?!\\s*:)'
11241124
'name': 'constant.other.js'
11251125
}
11261126
{

0 commit comments

Comments
 (0)