mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-10 22:51:52 +08:00
fix: sass syntax error
This commit is contained in:
@@ -56,27 +56,6 @@ function! s:LoadFullSyntax(group, type)
|
|||||||
endfunction
|
endfunction
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
"
|
|
||||||
" Load pre-processors syntax {{{
|
|
||||||
"
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
" If pug is enabled, load vim-pug syntax
|
|
||||||
if s:use_pug
|
|
||||||
call s:LoadFullSyntax('@PugSyntax', 'pug')
|
|
||||||
endif
|
|
||||||
|
|
||||||
" If sass is enabled, load sass syntax
|
|
||||||
if s:use_sass
|
|
||||||
call s:LoadSyntax('@SassSyntax', 'sass')
|
|
||||||
endif
|
|
||||||
|
|
||||||
" If less is enabled, load less syntax
|
|
||||||
if s:use_less
|
|
||||||
call s:LoadSyntax('@LessSyntax', 'less')
|
|
||||||
endif
|
|
||||||
"}}}
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"
|
"
|
||||||
" Load main syntax {{{
|
" Load main syntax {{{
|
||||||
@@ -99,6 +78,27 @@ if hlexists('javaScriptComment') == 0
|
|||||||
endif
|
endif
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
"
|
||||||
|
" Load pre-processors syntax {{{
|
||||||
|
"
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" If pug is enabled, load vim-pug syntax
|
||||||
|
if s:use_pug
|
||||||
|
call s:LoadFullSyntax('@PugSyntax', 'pug')
|
||||||
|
endif
|
||||||
|
|
||||||
|
" If sass is enabled, load sass syntax
|
||||||
|
if s:use_sass
|
||||||
|
call s:LoadSyntax('@SassSyntax', 'sass')
|
||||||
|
endif
|
||||||
|
|
||||||
|
" If less is enabled, load less syntax
|
||||||
|
if s:use_less
|
||||||
|
call s:LoadSyntax('@LessSyntax', 'less')
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"
|
"
|
||||||
" Syntax patch {{{
|
" Syntax patch {{{
|
||||||
@@ -119,9 +119,11 @@ endif
|
|||||||
syntax clear htmlHead
|
syntax clear htmlHead
|
||||||
|
|
||||||
" Redefine syn-region to color <style> correctly.
|
" Redefine syn-region to color <style> correctly.
|
||||||
if s:use_sass || s:use_less
|
if s:use_less
|
||||||
syntax region lessDefinition matchgroup=cssBraces contains=@LessSyntax contained
|
syntax region lessDefinition matchgroup=cssBraces contains=@LessSyntax contained
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
|
endif
|
||||||
|
if s:use_sass
|
||||||
syntax region sassDefinition matchgroup=cssBraces contains=@SassSyntax contained
|
syntax region sassDefinition matchgroup=cssBraces contains=@SassSyntax contained
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user