mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
Improve code format
This commit is contained in:
@@ -84,13 +84,13 @@ call s:LoadSyntax('@HTMLSyntax', 'html')
|
|||||||
" Load vue-html syntax
|
" Load vue-html syntax
|
||||||
runtime syntax/vue-html.vim
|
runtime syntax/vue-html.vim
|
||||||
|
|
||||||
" Avoid overload.
|
" Avoid overload
|
||||||
if hlexists('cssTagName') == 0
|
if !hlexists('cssTagName')
|
||||||
call s:LoadSyntax('@htmlCss', 'css')
|
call s:LoadSyntax('@htmlCss', 'css')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Avoid overload
|
" Avoid overload
|
||||||
if hlexists('javaScriptComment') == 0
|
if !hlexists('javaScriptComment')
|
||||||
call vue#Log('load javascript cluster')
|
call vue#Log('load javascript cluster')
|
||||||
call s:LoadSyntax('@htmlJavaScript', 'javascript')
|
call s:LoadSyntax('@htmlJavaScript', 'javascript')
|
||||||
endif
|
endif
|
||||||
@@ -261,8 +261,8 @@ if s:use_sass
|
|||||||
\ contained containedin=sassVueStyle
|
\ contained containedin=sassVueStyle
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
endif
|
endif
|
||||||
" Active if not loading https://github.com/cakebaker/scss-syntax.vim
|
" If not loading https://github.com/cakebaker/scss-syntax.vim
|
||||||
if s:use_scss && hlexists('scssNestedProperty') == 0
|
if s:use_scss && !hlexists('scssNestedProperty')
|
||||||
silent! syntax clear scssDefinition
|
silent! syntax clear scssDefinition
|
||||||
syntax region cssScssDefinition transparent matchgroup=cssBraces
|
syntax region cssScssDefinition transparent matchgroup=cssBraces
|
||||||
\ contains=@ScssSyntax,cssScssDefinition
|
\ contains=@ScssSyntax,cssScssDefinition
|
||||||
|
|||||||
Reference in New Issue
Block a user