From 826e4db3a981d6a9d1a2cd8d501f3fd9127a4915 Mon Sep 17 00:00:00 2001 From: Tom McDonald Date: Wed, 8 May 2013 14:29:40 -0400 Subject: [PATCH] Remove $ from iskeyword in PHP files --- syntax/javascript.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syntax/javascript.vim b/syntax/javascript.vim index 2e8d0fe..e689367 100644 --- a/syntax/javascript.vim +++ b/syntax/javascript.vim @@ -26,6 +26,11 @@ 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-=$ +endif + syntax sync fromstart "" syntax coloring for Node.js shebang line