mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 13:44:46 +08:00
Extend cssValueNumber only for scss/sass
This commit is contained in:
@@ -260,6 +260,11 @@ if s:use_sass
|
|||||||
\ contains=@SassSyntax,sassDefinition
|
\ contains=@SassSyntax,sassDefinition
|
||||||
\ contained containedin=sassVueStyle
|
\ contained containedin=sassVueStyle
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
|
|
||||||
|
" Extend to highlight all numbers in expression
|
||||||
|
syntax match cssValueNumber
|
||||||
|
\ /\W\zs\d\+\(\.\d\+\)\?%\?\ze\W/
|
||||||
|
\ contained containedin=sassDefinition
|
||||||
endif
|
endif
|
||||||
" If not loading https://github.com/cakebaker/scss-syntax.vim
|
" If not loading https://github.com/cakebaker/scss-syntax.vim
|
||||||
if s:use_scss && !hlexists('scssNestedProperty')
|
if s:use_scss && !hlexists('scssNestedProperty')
|
||||||
@@ -271,7 +276,7 @@ if s:use_scss && !hlexists('scssNestedProperty')
|
|||||||
|
|
||||||
" Extend to highlight all numbers in expression
|
" Extend to highlight all numbers in expression
|
||||||
syntax match cssValueNumber
|
syntax match cssValueNumber
|
||||||
\ /\W\zs\d\+\(\.\d\+\)\?\ze\W/
|
\ /\W\zs\d\+\(\.\d\+\)\?%\?\ze\W/
|
||||||
\ contained containedin=cssScssDefinition
|
\ contained containedin=cssScssDefinition
|
||||||
endif
|
endif
|
||||||
if s:use_stylus
|
if s:use_stylus
|
||||||
|
|||||||
Reference in New Issue
Block a user