mirror of
https://github.com/jelera/vim-javascript-syntax.git
synced 2026-11-01 01:56:20 +08:00
Merge pull request #38 from Fake51/master
Setting iskeyword unconditionally created issues for me
This commit is contained in:
commit
4899b2c272
1 file changed
+2
-5
@@ -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