mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-07 13:14:34 +08:00
Change sass syntax name to sassVueStyle to support emmet
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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["'][^>]*>"
|
||||||
"}}}
|
"}}}
|
||||||
|
|||||||
Reference in New Issue
Block a user