Skip to content

Commit 826e4db

Browse files
committed
Remove $ from iskeyword in PHP files
1 parent 78a6d49 commit 826e4db

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)