From 34dff9369ee02a5956747c130d29df615204be5b Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Thu, 14 May 2020 07:32:10 +0800 Subject: [PATCH] Change sass syntax name to sassVueStyle to support emmet --- indent/vue.vim | 2 +- syntax/vue.vim | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/indent/vue.vim b/indent/vue.vim index db204c0..1e0fd0b 100644 --- a/indent/vue.vim +++ b/indent/vue.vim @@ -225,7 +225,7 @@ function! s:SynTypeScript(syn) endfunction function! s:SynSASS(syn) - return a:syn ==? 'cssSassVueStyle' + return a:syn ==? 'sassVueStyle' endfunction function! s:SynStylus(syn) diff --git a/syntax/vue.vim b/syntax/vue.vim index e06e646..4177ad5 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -190,7 +190,7 @@ syntax region cssLessVueStyle fold \ start=+]*lang=["']less["'][^>]*>+ \ end=++ \ keepend contains=@LessSyntax,vueTag -syntax region cssSassVueStyle fold +syntax region sassVueStyle fold \ start=+]*lang=["']sass["'][^>]*>+ \ end=++ \ keepend contains=@SassSyntax,vueTag @@ -244,7 +244,7 @@ endif if s:use_sass silent! syntax clear sassDefinition syntax region cssSassDefinition matchgroup=cssBraces contains=@SassSyntax - \ contained containedin=cssSassVueStyle,cssScssVueStyle + \ contained containedin=sassVueStyle,cssScssVueStyle \ start="{" end="}" endif if s:use_stylus @@ -302,7 +302,7 @@ syntax sync match templateHighlight groupthere htmlVueTemplate "]*lang=["']pug["'][^>]*>" syntax sync match styleHighlight groupthere cssVueStyle "]*lang=["']less["'][^>]*>" -syntax sync match styleHighlight groupthere cssSassVueStyle "]*lang=["']sass["'][^>]*>" +syntax sync match styleHighlight groupthere sassVueStyle "]*lang=["']sass["'][^>]*>" syntax sync match styleHighlight groupthere cssScssVueStyle "]*lang=["']scss["'][^>]*>" syntax sync match styleHighlight groupthere cssStylusVueStyle "]*lang=["']stylus["'][^>]*>" "}}}