Skip to content

Commit 5f7d55e

Browse files
committed
Merge pull request #21 from tommcdo/master
Remove $ from iskeyword in PHP files
2 parents 78a6d49 + 826e4db commit 5f7d55e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

syntax/javascript.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ endif
2626
"" dollar sign is permitted anywhere in an identifier
2727
setlocal iskeyword+=$
2828

29+
"" Remove dollar sign from identifier when embedded in a PHP file
30+
if &filetype == 'php'
31+
setlocal iskeyword-=$
32+
endif
33+
2934
syntax sync fromstart
3035

3136
"" syntax coloring for Node.js shebang line

0 commit comments

Comments
 (0)