Merge pull request #40 from kesor/support-slm-lang

Add `slm` language support for templates
This commit is contained in:
Eduardo San Martin Morote
2016-12-25 20:34:23 +01:00
committed by GitHub

View File

@@ -25,7 +25,7 @@ if !exists("s:syntaxes")
return syntaxes
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
@@ -44,6 +44,14 @@ if s:syntaxes.pug
syntax region pug keepend start=/<template lang=\("\|'\)[^\1]*jade[^\1]*\1>/ end="</template>" contains=@PUG fold
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
if exists("b:current_syntax")
unlet b:current_syntax