mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-03-06 07:04:28 +08:00
Extend cssValueNumber for scss/sass
This commit is contained in:
@@ -268,6 +268,11 @@ if s:use_scss && !hlexists('scssNestedProperty')
|
|||||||
\ contains=@ScssSyntax,cssScssDefinition
|
\ contains=@ScssSyntax,cssScssDefinition
|
||||||
\ contained containedin=cssScssVueStyle
|
\ contained containedin=cssScssVueStyle
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
|
|
||||||
|
" Extend to highlight all numbers in expression
|
||||||
|
syntax match cssValueNumber
|
||||||
|
\ /\W\zs\d\+\(\.\d\+\)\?\ze\W/
|
||||||
|
\ contained containedin=cssScssDefinition
|
||||||
endif
|
endif
|
||||||
if s:use_stylus
|
if s:use_stylus
|
||||||
silent! syntax clear stylusDefinition
|
silent! syntax clear stylusDefinition
|
||||||
@@ -277,8 +282,7 @@ if s:use_stylus
|
|||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Avoid css syntax interference
|
" Use a different name in order to avoid css syntax interference
|
||||||
" Have to use a different name
|
|
||||||
silent! syntax clear cssUnitDecorators
|
silent! syntax clear cssUnitDecorators
|
||||||
syntax match cssUnitDecorators2
|
syntax match cssUnitDecorators2
|
||||||
\ /\(#\|-\|+\|%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|ch\|rem\|vh\|vw\|vmin\|vmax\|dpi\|dppx\|dpcm\|Hz\|kHz\|s\|ms\|deg\|grad\|rad\)\ze\(;\|$\)/
|
\ /\(#\|-\|+\|%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|ch\|rem\|vh\|vw\|vmin\|vmax\|dpi\|dppx\|dpcm\|Hz\|kHz\|s\|ms\|deg\|grad\|rad\)\ze\(;\|$\)/
|
||||||
|
|||||||
Reference in New Issue
Block a user