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