Closed dbellavista closed 7 years ago
Thanks, but just in case, the purpose of this instruction:
syntax match jsGlobalNodeObjects /require/ contains=jsFuncCall
(https://github.com/pangloss/vim-javascript/blob/master/syntax/javascript.vim#L118)
Wasn't to set the require(
as a jsGlobalNodeObjects ?
@amadeus , any thoughts?
Fixed in develop
It might be related to this, but I get this situation whenever I call a function that contains require in the name.
should be a word boundary in the regex, thanks !
Since require
is part of global objects https://nodejs.org/api/globals.html shouldn't this be declared here instead?
Fixed!
By using this utility: http://vim.wikia.com/wiki/Identify_the_syntax_highlighting_group_used_at_the_cursor
The High group of
require
is:hi<jsFuncCall> trans<jsFuncCall> lo<jsFuncCall>
instead of jsGlobalNodeObjects