js: Highlight special variables at start of file
This commit is contained in:
parent
545db22ae4
commit
c0e8dceb5d
|
@ -91,7 +91,7 @@ define-command -hidden init-javascript-filetype -params 1 %~
|
|||
add-highlighter "shared/%arg{1}/literal/" fill string
|
||||
add-highlighter "shared/%arg{1}/literal/" regex \$\{.*?\} 0:value
|
||||
|
||||
add-highlighter "shared/%arg{1}/code/" regex [^$_]\b(document|false|null|parent|self|this|true|undefined|window)\b 1:value
|
||||
add-highlighter "shared/%arg{1}/code/" regex (?:^|[^$_])\b(document|false|null|parent|self|this|true|undefined|window)\b 1:value
|
||||
add-highlighter "shared/%arg{1}/code/" regex "-?\b[0-9]*\.?[0-9]+" 0:value
|
||||
add-highlighter "shared/%arg{1}/code/" regex \b(Array|Boolean|Date|Function|Number|Object|RegExp|String|Symbol)\b 0:type
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user