Added coffee, stylus and jade. Updated all files

This commit is contained in:
Eduardo San Martin Morote
2015-10-09 09:59:52 +02:00
parent fe47f2b397
commit fa9091030b
3 changed files with 29 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
" Vim syntax file
" Language: Vue.js
" Maintainer: W. Evan Sheehan
" Language: Vue.js
" Maintainer: Eduardo San Martin Morote
if exists("b:current_syntax")
finish
@@ -8,14 +8,27 @@ endif
syntax include @HTML syntax/html.vim
unlet b:current_syntax
syntax region template keepend start=/<template\( lang="[a-zA-Z]\+"\)\?>/ end="</template>" contains=@HTML fold
syntax region template keepend start=/<template>/ end="</template>" contains=@HTML fold
syntax include @JADE syntax/jade.vim
unlet b:current_syntax
syntax region jade keepend start=/<template lang="[^"]*jade[^"]*">/ end="</template>" contains=@JADE fold
syntax include @JS syntax/javascript.vim
unlet b:current_syntax
syntax region script keepend start=/<script\( lang="[a-zA-Z]\+"\)\?>/ end="</script>" contains=@JS fold
syntax region script keepend start=/<script>/ end="</script>" contains=@JS fold
syntax include @COFFEE syntax/coffee.vim
unlet b:current_syntax
" Matchgroup seems to be necessary for coffee
syntax region coffee keepend matchgroup=Delimiter start="<script lang=\"coffee\">" end="</script>" contains=@COFFEE fold
syntax include @CSS syntax/css.vim
unlet b:current_syntax
syntax region style keepend start=/<style\( lang="[a-zA-Z]\+"\)\?>/ end="</style>" contains=@CSS fold
syntax region style keepend start=/<style\( \+scoped\)\?>/ end="</style>" contains=@CSS fold
syntax include @stylus syntax/stylus.vim
unlet b:current_syntax
syntax region stylus keepend start=/<style lang="[^"]*stylus[^"]*"\( \+scoped\)\?>/ end="</style>" contains=@stylus fold
let b:current_syntax = "vue"