Skip to content

Commit 1c23964

Browse files
committed
Save the 'iskeyword' setting before including the HTML syntax.
See pangloss/vim-javascript#153
1 parent fccd639 commit 1c23964

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

syntax/php.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ if !exists("main_syntax")
8585
let main_syntax = 'php'
8686
endif
8787

88+
" Save the 'iskeyword' setting before including the HTML syntax.
89+
" See https://github.com/pangloss/vim-javascript/issues/153
90+
let s:iskeyword_save = &iskeyword
91+
8892
if !exists("php_html_load")
8993
let php_html_load=1
9094
endif
@@ -816,6 +820,9 @@ endif
816820
delcommand SynFold
817821
let b:current_syntax = "php"
818822

823+
let &iskeyword = s:iskeyword_save
824+
unlet s:iskeyword_save
825+
819826
if main_syntax == 'php'
820827
unlet main_syntax
821828
endif

0 commit comments

Comments
 (0)