As far as I know, both vanilla javascript.vim and vim-javascript plugin aren't 
able to identify those syntax elements you mentioned (object property names, 
function arguments, globals that uses require).

Using different plugin such as https://github.com/jelera/vim-javascript-syntax 
gives you function arguments, but not the others.

Hence my suggestion is to install  
https://github.com/jelera/vim-javascript-syntax as a starting point, then open 
your ~/.vim/javascript.vim and edit it manually as you desire. 

For instance, to add the keyword require to be recognized as globals, find this 
line and add `require`

syntax keyword javaScriptGlobal         self top parent require

Cheers,

evansb

-- 
-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_mac+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to