From 7ef78f4a2ccfac178fb4184c0e79b928321acee9 Mon Sep 17 00:00:00 2001 From: Peter Lind Date: Tue, 14 Jan 2014 22:09:26 +0100 Subject: [PATCH] Explicitly setting $ as part of words for javascript, instead of assuming only php filetype should not have it --- syntax/javascript.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/syntax/javascript.vim b/syntax/javascript.vim index d0a59fd..21d7738 100644 --- a/syntax/javascript.vim +++ b/syntax/javascript.vim @@ -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