Explicitly setting $ as part of words for javascript, instead of assuming only php filetype should not have it

This commit is contained in:
Peter Lind
2014-01-14 22:09:26 +01:00
parent 1c08820db8
commit 7ef78f4a2c

View File

@@ -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