From 90b24287deb9da69a8079599b8525e2be412f7f2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 12 Aug 2014 23:45:36 +0200 Subject: Update --- syntax/php.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'syntax/php.vim') diff --git a/syntax/php.vim b/syntax/php.vim index d5c28aea..7a3eee73 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -85,6 +85,10 @@ if !exists("main_syntax") let main_syntax = 'php' endif +" Save the 'iskeyword' setting before including the HTML syntax. +" See https://github.com/pangloss/vim-javascript/issues/153 +let s:iskeyword_save = &iskeyword + if !exists("php_html_load") let php_html_load=1 endif @@ -816,6 +820,9 @@ endif delcommand SynFold let b:current_syntax = "php" +let &iskeyword = s:iskeyword_save +unlet s:iskeyword_save + if main_syntax == 'php' unlet main_syntax endif -- cgit v1.2.3