Skip to content

Commit 7fab32d

Browse files
committed
Adds CommonJS keywords to syntax highlighting
1 parent d28b72d commit 7fab32d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

syntax/javascript.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ syntax keyword javaScriptPrototype prototype
8383

8484
"" Program Keywords
8585
syntax keyword javaScriptSource import export
86+
syntax keyword javaScriptCommonJS require module exports
8687
syntax keyword javaScriptType const undefined var void yield
8788
syntax keyword javaScriptOperator delete new in instanceof let typeof
8889
syntax keyword javaScriptBoolean true false
@@ -229,6 +230,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
229230
HiLink javaScriptLabel Label
230231
HiLink javaScriptSpecial Special
231232
HiLink javaScriptSource Special
233+
HiLink javaScriptCommonJS Define
232234
HiLink javaScriptGlobalObjects Special
233235
HiLink javaScriptExceptions Special
234236

0 commit comments

Comments
 (0)