fix: '-10' highlighting error caused by syn iskeyword

This commit is contained in:
yemai
2019-07-01 12:14:25 +08:00
parent 2e2debec2c
commit 9984150cc9

View File

@@ -11,6 +11,7 @@ if exists("b:current_syntax") && b:current_syntax == 'vue'
finish finish
endif endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" "
" Config {{{ " Config {{{
@@ -70,8 +71,8 @@ if hlexists('cssTagName') == 0
endif endif
" Avoid overload " Avoid overload
if hlexists('jsNoise') == 0 if hlexists('javaScriptComment') == 0
call s:LoadSyntax('@jsAll', 'javascript') call s:LoadSyntax('@htmlJavaScript', 'javascript')
endif endif
"}}} "}}}
@@ -101,6 +102,16 @@ endif
" Syntax patch {{{ " Syntax patch {{{
" "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Patch 7.4.1142
if has("patch-7.4-1142")
if has("win32")
syntax iskeyword @,48-57,_,128-167,224-235,$
else
syntax iskeyword @,48-57,_,192-255,$
endif
endif
" Clear htmlHead that may cause highlighting out of bounds " Clear htmlHead that may cause highlighting out of bounds
syntax clear htmlHead syntax clear htmlHead
@@ -132,7 +143,7 @@ syntax region vueTemplatePug
syntax region vueScript syntax region vueScript
\ start=+<script\(\s.\{-}\)\?>+ \ start=+<script\(\s.\{-}\)\?>+
\ end=+</script>+ \ end=+</script>+
\ keepend contains=@jsAll,jsImport,jsExport,vueTag \ keepend contains=@htmlJavaScript,jsImport,jsExport,vueTag
syntax region vueStyle syntax region vueStyle
\ start=+<style\(\s.\{-}\)\?>+ \ start=+<style\(\s.\{-}\)\?>+