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

Commit 3f0f332

Browse files
authored
Merge pull request #685 from icecream17/htmlUpdate
Html update
2 parents e5a7d95 + 569120f commit 3f0f332

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

grammars/javascript.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@
997997
}
998998
{
999999
'match': '''(?x) (?<!\\$) \\b (?:
1000-
(document|event|navigator|performance|screen|window)
1000+
(document|event|navigator|performance|screen|window|self|frames)
10011001
|
10021002
(AnalyserNode|ArrayBufferView|Attr|AudioBuffer|AudioBufferSourceNode|AudioContext|AudioDestinationNode|AudioListener
10031003
|AudioNode|AudioParam|BatteryManager|BeforeUnloadEvent|BiquadFilterNode|Blob|BufferSource|ByteString|CSS|CSSConditionRule
@@ -1112,7 +1112,7 @@
11121112
'name': 'support.variable.property.dom.js'
11131113
}
11141114
{
1115-
'match': '(?<!\\.)\\b(module|exports|__filename|__dirname|global|process)(?!\\s*:)\\b'
1115+
'match': '(?<!\\.)\\b(module|exports|__filename|__dirname|global|globalThis|process)(?!\\s*:)\\b'
11161116
'name': 'support.variable.js'
11171117
}
11181118
{

grammars/tree-sitter-javascript.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ scopes:
114114

115115
'identifier': [
116116
{
117-
match: '^(global|module|exports|__filename|__dirname)$',
117+
match: '^(global|globalThis|module|exports|__filename|__dirname)$',
118118
scopes: 'support.variable'
119119
},
120120
{
121-
match: '^(window|event|document|performance|screen|navigator|console)$'
121+
match: '^(window|self|frames|event|document|performance|screen|navigator|console)$'
122122
scopes: 'support.variable.dom'
123123
},
124124
{

0 commit comments

Comments
 (0)