mirror of
https://github.com/jelera/vim-javascript-syntax.git
synced 2025-12-11 07:01:57 +08:00
Explicitly setting $ as part of words for javascript, instead of assuming only php filetype should not have it
This commit is contained in:
@@ -23,12 +23,9 @@ if version < 600 && exists("javaScript_fold")
|
||||
unlet javaScript_fold
|
||||
endif
|
||||
|
||||
"" dollar sign is permitted anywhere in an identifier
|
||||
setlocal iskeyword+=$
|
||||
|
||||
"" Remove dollar sign from identifier when embedded in a PHP file
|
||||
if &filetype == 'php'
|
||||
setlocal iskeyword-=$
|
||||
if &filetype == 'javascript'
|
||||
setlocal iskeyword+=$
|
||||
endif
|
||||
|
||||
syntax sync fromstart
|
||||
|
||||
Reference in New Issue
Block a user