From b2454ed6b98b034cf947aa6db93039702f3425ea Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Tue, 14 Jul 2020 19:56:43 +0800 Subject: [PATCH] Keep backward compatible for `use_sass` option --- syntax/vue.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/syntax/vue.vim b/syntax/vue.vim index 8445ac0..d861ee0 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -206,6 +206,15 @@ syntax region cssScssVueStyle fold \ start=+]*lang=["']scss["'][^>]*>+ \ end=++ \ keepend contains=@ScssSyntax,vueTag + +" Backward compatiable for `use_sass` option +if s:use_sass && !s:use_scss + syntax region cssScssVueStyle fold + \ start=+]*lang=["']scss["'][^>]*>+ + \ end=++ + \ keepend contains=@SassSyntax,vueTag +endif + syntax region cssStylusVueStyle fold \ start=+]*lang=["']stylus["'][^>]*>+ \ end=++