diff options
Diffstat (limited to '')
-rw-r--r-- | syntax/php.vim | 7 |
1 files changed, 7 insertions, 0 deletions
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 |