mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
feat: support html5 data-* with default option
This commit is contained in:
@@ -56,9 +56,8 @@ syntax region javaScriptStringS
|
|||||||
\ start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contained
|
\ start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contained
|
||||||
syntax region javaScriptStringD
|
syntax region javaScriptStringD
|
||||||
\ start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contained
|
\ start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contained
|
||||||
syntax match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" contained
|
syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>' contained
|
||||||
syntax match javaScriptNumber "\<-\=\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" contained
|
syntax match javaScriptOperator '[-!|&+<>=%/*~^]' contained
|
||||||
syntax match javaScriptOperator "[-!|&+<>=%/*~^]" contained
|
|
||||||
syntax keyword javaScriptOperator delete instanceof typeof void new in of contained
|
syntax keyword javaScriptOperator delete instanceof typeof void new in of contained
|
||||||
|
|
||||||
highlight default link VueAttr htmlTag
|
highlight default link VueAttr htmlTag
|
||||||
|
|||||||
@@ -126,7 +126,10 @@ endif
|
|||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
" Number with minus
|
" Number with minus
|
||||||
syntax match javaScriptNumber "\<-\=\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" containedin=@htmlJavaScript
|
syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>' containedin=@htmlJavaScript
|
||||||
|
|
||||||
|
" html5 data-*
|
||||||
|
syntax match htmlArg '\v<data(-[.a-z0-9]+)+>' containedin=@@HTMLSyntax
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user