summaryrefslogtreecommitdiffstats
path: root/syntax/php.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2014-08-12 23:45:36 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2014-08-12 23:45:36 +0200
commit90b24287deb9da69a8079599b8525e2be412f7f2 (patch)
tree78225d68b68f45ffa55d9fc84b10e64941abf96a /syntax/php.vim
parent5f1223fbc5285689db812236c9100329740a805b (diff)
downloadvim-polyglot-90b24287deb9da69a8079599b8525e2be412f7f2.tar.gz
vim-polyglot-90b24287deb9da69a8079599b8525e2be412f7f2.zip
Update
Diffstat (limited to 'syntax/php.vim')
-rw-r--r--syntax/php.vim7
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