mirror of
https://github.com/jelera/vim-javascript-syntax.git
synced 2025-12-14 00:21: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
|
unlet javaScript_fold
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"" dollar sign is permitted anywhere in an identifier
|
|
||||||
setlocal iskeyword+=$
|
|
||||||
|
|
||||||
"" Remove dollar sign from identifier when embedded in a PHP file
|
"" Remove dollar sign from identifier when embedded in a PHP file
|
||||||
if &filetype == 'php'
|
if &filetype == 'javascript'
|
||||||
setlocal iskeyword-=$
|
setlocal iskeyword+=$
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syntax sync fromstart
|
syntax sync fromstart
|
||||||
|
|||||||
Reference in New Issue
Block a user