mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-10 22:51:52 +08:00
Fix css(Less|Sass)Definition syntax
This commit is contained in:
@@ -185,13 +185,13 @@ endif
|
|||||||
if s:use_less
|
if s:use_less
|
||||||
syntax clear lessDefinition
|
syntax clear lessDefinition
|
||||||
syntax region cssLessDefinition matchgroup=cssBraces contains=@LessSyntax
|
syntax region cssLessDefinition matchgroup=cssBraces contains=@LessSyntax
|
||||||
\ containedin=cssLessVueStyle
|
\ contained containedin=cssLessVueStyle
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
endif
|
endif
|
||||||
if s:use_sass
|
if s:use_sass
|
||||||
syntax clear sassDefinition
|
syntax clear sassDefinition
|
||||||
syntax region cssSassDefinition matchgroup=cssBraces contains=@SassSyntax
|
syntax region cssSassDefinition matchgroup=cssBraces contains=@SassSyntax
|
||||||
\ containedin=cssSassVueStyle,cssScssVueStyle
|
\ contained containedin=cssSassVueStyle,cssScssVueStyle
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -204,7 +204,8 @@ endif
|
|||||||
|
|
||||||
" JavaScript
|
" JavaScript
|
||||||
" Number with minus
|
" Number with minus
|
||||||
syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>' containedin=@javascriptVueScript display
|
syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>'
|
||||||
|
\ containedin=@javascriptVueScript display
|
||||||
|
|
||||||
" HTML
|
" HTML
|
||||||
" Clear htmlHead that may cause highlighting out of bounds
|
" Clear htmlHead that may cause highlighting out of bounds
|
||||||
|
|||||||
Reference in New Issue
Block a user