Change sass syntax name to sassVueStyle to support emmet

This commit is contained in:
leafOfTree
2020-05-14 07:32:10 +08:00
parent 1e00bf31eb
commit 34dff9369e
2 changed files with 4 additions and 4 deletions

View File

@@ -225,7 +225,7 @@ function! s:SynTypeScript(syn)
endfunction endfunction
function! s:SynSASS(syn) function! s:SynSASS(syn)
return a:syn ==? 'cssSassVueStyle' return a:syn ==? 'sassVueStyle'
endfunction endfunction
function! s:SynStylus(syn) function! s:SynStylus(syn)

View File

@@ -190,7 +190,7 @@ syntax region cssLessVueStyle fold
\ start=+<style[^>]*lang=["']less["'][^>]*>+ \ start=+<style[^>]*lang=["']less["'][^>]*>+
\ end=+</style>+ \ end=+</style>+
\ keepend contains=@LessSyntax,vueTag \ keepend contains=@LessSyntax,vueTag
syntax region cssSassVueStyle fold syntax region sassVueStyle fold
\ start=+<style[^>]*lang=["']sass["'][^>]*>+ \ start=+<style[^>]*lang=["']sass["'][^>]*>+
\ end=+</style>+ \ end=+</style>+
\ keepend contains=@SassSyntax,vueTag \ keepend contains=@SassSyntax,vueTag
@@ -244,7 +244,7 @@ endif
if s:use_sass if s:use_sass
silent! syntax clear sassDefinition silent! syntax clear sassDefinition
syntax region cssSassDefinition matchgroup=cssBraces contains=@SassSyntax syntax region cssSassDefinition matchgroup=cssBraces contains=@SassSyntax
\ contained containedin=cssSassVueStyle,cssScssVueStyle \ contained containedin=sassVueStyle,cssScssVueStyle
\ start="{" end="}" \ start="{" end="}"
endif endif
if s:use_stylus if s:use_stylus
@@ -302,7 +302,7 @@ syntax sync match templateHighlight groupthere htmlVueTemplate "<template"
syntax sync match templateHighlight groupthere pugVueTemplate "<template[^>]*lang=["']pug["'][^>]*>" syntax sync match templateHighlight groupthere pugVueTemplate "<template[^>]*lang=["']pug["'][^>]*>"
syntax sync match styleHighlight groupthere cssVueStyle "<style" syntax sync match styleHighlight groupthere cssVueStyle "<style"
syntax sync match styleHighlight groupthere cssLessVueStyle "<style[^>]*lang=["']less["'][^>]*>" syntax sync match styleHighlight groupthere cssLessVueStyle "<style[^>]*lang=["']less["'][^>]*>"
syntax sync match styleHighlight groupthere cssSassVueStyle "<style[^>]*lang=["']sass["'][^>]*>" syntax sync match styleHighlight groupthere sassVueStyle "<style[^>]*lang=["']sass["'][^>]*>"
syntax sync match styleHighlight groupthere cssScssVueStyle "<style[^>]*lang=["']scss["'][^>]*>" syntax sync match styleHighlight groupthere cssScssVueStyle "<style[^>]*lang=["']scss["'][^>]*>"
syntax sync match styleHighlight groupthere cssStylusVueStyle "<style[^>]*lang=["']stylus["'][^>]*>" syntax sync match styleHighlight groupthere cssStylusVueStyle "<style[^>]*lang=["']stylus["'][^>]*>"
"}}} "}}}