Permalink
Browse files

add `console` to globals and `from` to javaScriptSource

globals and keywords that arguably could be highlighted
  • Loading branch information...
1 parent 9e019fc commit 885939e9655a3854f51aedd37be3283874738fd1 @acarl005 acarl005 committed on GitHub Nov 14, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 syntax/javascript.vim
@@ -34,7 +34,7 @@ syntax match shebang "^#!.*"
hi link shebang Comment
" Statement Keywords {{{
-syntax keyword javaScriptSource import export
+syntax keyword javaScriptSource import export from
syntax keyword javaScriptIdentifier arguments this let var void yield
syntax keyword javaScriptOperator delete new instanceof typeof
syntax keyword javaScriptBoolean true false
@@ -85,7 +85,7 @@ syntax region javaScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+
syntax match javaScriptFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-]\=\d\+\)\=\>/
"}}}
" DOM, Browser and Ajax Support {{{
-syntax keyword javaScriptBrowserObjects window navigator screen history location
+syntax keyword javaScriptBrowserObjects window navigator screen history location console
syntax keyword javaScriptDOMObjects document event HTMLElement Anchor Area Base Body Button Form Frame Frameset Image Link Meta Option Select Style Table TableCell TableRow Textarea
syntax keyword javaScriptDOMMethods createTextNode createElement insertBefore replaceChild removeChild appendChild hasChildNodes cloneNode normalize isSupported hasAttributes getAttribute setAttribute removeAttribute getAttributeNode setAttributeNode removeAttributeNode getElementsByTagName hasAttribute getElementById adoptNode close compareDocumentPosition createAttribute createCDATASection createComment createDocumentFragment createElementNS createEvent createExpression createNSResolver createProcessingInstruction createRange createTreeWalker elementFromPoint evaluate getBoxObjectFor getElementsByClassName getSelection getUserData hasFocus importNode

0 comments on commit 885939e

Please sign in to comment.