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

Commit

Permalink
Merge pull request #685 from icecream17/htmlUpdate
Browse files Browse the repository at this point in the history
Html update
  • Loading branch information
darangi authored Jan 25, 2021
2 parents e5a7d95 + 569120f commit 3f0f332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions grammars/javascript.cson
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@
}
{
'match': '''(?x) (?<!\\$) \\b (?:
(document|event|navigator|performance|screen|window)
(document|event|navigator|performance|screen|window|self|frames)
|
(AnalyserNode|ArrayBufferView|Attr|AudioBuffer|AudioBufferSourceNode|AudioContext|AudioDestinationNode|AudioListener
|AudioNode|AudioParam|BatteryManager|BeforeUnloadEvent|BiquadFilterNode|Blob|BufferSource|ByteString|CSS|CSSConditionRule
Expand Down Expand Up @@ -1112,7 +1112,7 @@
'name': 'support.variable.property.dom.js'
}
{
'match': '(?<!\\.)\\b(module|exports|__filename|__dirname|global|process)(?!\\s*:)\\b'
'match': '(?<!\\.)\\b(module|exports|__filename|__dirname|global|globalThis|process)(?!\\s*:)\\b'
'name': 'support.variable.js'
}
{
Expand Down
4 changes: 2 additions & 2 deletions grammars/tree-sitter-javascript.cson
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ scopes:

'identifier': [
{
match: '^(global|module|exports|__filename|__dirname)$',
match: '^(global|globalThis|module|exports|__filename|__dirname)$',
scopes: 'support.variable'
},
{
match: '^(window|event|document|performance|screen|navigator|console)$'
match: '^(window|self|frames|event|document|performance|screen|navigator|console)$'
scopes: 'support.variable.dom'
},
{
Expand Down

0 comments on commit 3f0f332

Please sign in to comment.