-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
547 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
|
||
" syntax match javascriptIdentifierName /\<[^=<>!?+\-*\/%|&,;:. ~@#`"'\[\]\(\)\{\}\^0-9][^=<>!?+\-*\/%|&,;:. ~@#`"'\[\]\(\)\{\}\^]*/ nextgroup=javascriptDotNotation,javascriptFuncCallArg,javascriptComputedProperty,javascriptWSymbols contains=@_smantic | ||
|
||
syntax cluster _semantic contains=_semantic0,_semantic1,_semantic2,_semantic3,_semantic4,_semantic5,_semantic6,_semantic7,_semantic8,_semantic9,_semantic10,_semantic11,_semantic12,_semantic13,_semantic14,_semantic15,_semantic16,_semantic17,_semantic18,_semantic19,_semantic20,_semantic21,_semantic22,_semantic23,_semantic24,_semantic25 | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
{ [Error: ENOENT, no such file or directory 'dom-document.yml'] | ||
errno: -2, | ||
code: 'ENOENT', | ||
path: 'dom-document.yml', | ||
syscall: 'open' } | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
{ [Error: ENOENT, no such file or directory 'dom-elem.yml'] | ||
errno: -2, | ||
code: 'ENOENT', | ||
path: 'dom-elem.yml', | ||
syscall: 'open' } | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
{ [Error: ENOENT, no such file or directory 'dom-event.yml'] | ||
errno: -2, | ||
code: 'ENOENT', | ||
path: 'dom-event.yml', | ||
syscall: 'open' } | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
{ [Error: ENOENT, no such file or directory 'dom-node.yml'] | ||
errno: -2, | ||
code: 'ENOENT', | ||
path: 'dom-node.yml', | ||
syscall: 'open' } | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
{ [Error: ENOENT, no such file or directory 'dom-storage.yml'] | ||
errno: -2, | ||
code: 'ENOENT', | ||
path: 'dom-storage.yml', | ||
syscall: 'open' } | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Intl | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Array nextgroup=javascriptGlobalArrayDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalArrayDot /\./ contained nextgroup=javascriptArrayStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Date nextgroup=javascriptGlobalDateDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalDateDot /\./ contained nextgroup=javascriptDateStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Function | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal JSON nextgroup=javascriptGlobalJSONDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalJSONDot /\./ contained nextgroup=javascriptJSONStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Map WeakMap | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Math nextgroup=javascriptGlobalMathDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalMathDot /\./ contained nextgroup=javascriptMathStaticProp,javascriptMathStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Number nextgroup=javascriptGlobalNumberDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalNumberDot /\./ contained nextgroup=javascriptNumberStaticProp,javascriptNumberStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Object nextgroup=javascriptGlobalObjectDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalObjectDot /\./ contained nextgroup=javascriptObjectStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Promise nextgroup=javascriptGlobalPromiseDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalPromiseDot /\./ contained nextgroup=javascriptPromiseStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Proxy | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal RegExp nextgroup=javascriptGlobalRegExpDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalRegExpDot /\./ contained nextgroup=javascriptRegExpStaticProp | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Set WeakSet | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal String nextgroup=javascriptGlobalStringDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalStringDot /\./ contained nextgroup=javascriptStringStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Symbol nextgroup=javascriptGlobalSymbolDot,javascriptFuncCallArg | ||
syntax match javascriptGlobalSymbolDot /\./ contained nextgroup=javascriptSymbolStaticProp,javascriptSymbolStaticMethod | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptGlobal Function Boolean Error EvalError InternalError RangeError | ||
syntax keyword javascriptGlobal ReferenceError StopIteration SyntaxError TypeError | ||
syntax keyword javascriptGlobal URIError Date Float32Array Float64Array Int16Array | ||
syntax keyword javascriptGlobal Int32Array Int8Array Uint16Array Uint32Array Uint8Array | ||
syntax keyword javascriptGlobal Uint8ClampedArray ParallelArray ArrayBuffer DataView | ||
syntax keyword javascriptGlobal Iterator Generator Reflect Proxy arguments | ||
if exists("did_javascript_hilink") | HiLink javascriptGlobal Structure | ||
endif | ||
syntax keyword javascriptGlobalMethod eval uneval isFinite isNaN parseFloat parseInt nextgroup=javascriptFuncCallArg | ||
syntax keyword javascriptGlobalMethod decodeURI decodeURIComponent encodeURI encodeURIComponent nextgroup=javascriptFuncCallArg | ||
syntax cluster props add=javascriptGlobalMethod | ||
if exists("did_javascript_hilink") | HiLink javascriptGlobalMethod Structure | ||
endif | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
syntax keyword javascriptNodeGlobal global process console Buffer module exports setTimeout | ||
syntax keyword javascriptNodeGlobal clearTimeout setInterval clearInterval | ||
if exists("did_javascript_hilink") | HiLink javascriptNodeGlobal Structure | ||
endif | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 | ||
|
||
|
||
endif |