mirror of
https://github.com/posva/vim-vue.git
synced 2026-03-07 05:51:51 +08:00
Merge pull request #40 from kesor/support-slm-lang
Add `slm` language support for templates
This commit is contained in:
@@ -25,7 +25,7 @@ if !exists("s:syntaxes")
|
|||||||
return syntaxes
|
return syntaxes
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let s:syntaxes = s:search_syntaxes('pug', 'coffee', 'stylus', 'sass', 'scss', 'less')
|
let s:syntaxes = s:search_syntaxes('pug', 'slm', 'coffee', 'stylus', 'sass', 'scss', 'less')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@@ -44,6 +44,14 @@ if s:syntaxes.pug
|
|||||||
syntax region pug keepend start=/<template lang=\("\|'\)[^\1]*jade[^\1]*\1>/ end="</template>" contains=@PUG fold
|
syntax region pug keepend start=/<template lang=\("\|'\)[^\1]*jade[^\1]*\1>/ end="</template>" contains=@PUG fold
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if s:syntaxes.slm
|
||||||
|
syntax include @SLM syntax/slm.vim
|
||||||
|
if exists("b:current_syntax")
|
||||||
|
unlet b:current_syntax
|
||||||
|
endif
|
||||||
|
syntax region slm keepend start=/<template lang=\("\|'\)[^\1]*slm[^\1]*\1>/ end="</template>" contains=@SLM fold
|
||||||
|
endif
|
||||||
|
|
||||||
syntax include @JS syntax/javascript.vim
|
syntax include @JS syntax/javascript.vim
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
unlet b:current_syntax
|
unlet b:current_syntax
|
||||||
|
|||||||
Reference in New Issue
Block a user