mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-09 22:25:12 +08:00
fix: JavaScript Number is highlighted in String error
This commit is contained in:
@@ -64,7 +64,7 @@ call s:LoadSyntax('@HTMLSyntax', 'html')
|
|||||||
" Load vue-html syntax
|
" Load vue-html syntax
|
||||||
runtime syntax/vue-html.vim
|
runtime syntax/vue-html.vim
|
||||||
|
|
||||||
" Avoid overload
|
" Avoid overload. 'syntax/html.vim' defines htmlCss and htmlJavaScript
|
||||||
if hlexists('cssTagName') == 0
|
if hlexists('cssTagName') == 0
|
||||||
call s:LoadSyntax('@htmlCss', 'css')
|
call s:LoadSyntax('@htmlCss', 'css')
|
||||||
endif
|
endif
|
||||||
@@ -127,7 +127,7 @@ if s:use_sass || s:use_less
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Number with minus
|
" Number with minus
|
||||||
syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>' containedin=@htmlJavaScript
|
syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>' containedin=@javascriptVueScript
|
||||||
|
|
||||||
" html5 data-*
|
" html5 data-*
|
||||||
syntax match htmlArg '\v<data(-[.a-z0-9]+)+>' containedin=@HTMLSyntax
|
syntax match htmlArg '\v<data(-[.a-z0-9]+)+>' containedin=@HTMLSyntax
|
||||||
|
|||||||
Reference in New Issue
Block a user