Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

Improvement: Jade #1

Open
im-n1 opened this issue Nov 16, 2015 · 0 comments
Open

Improvement: Jade #1

im-n1 opened this issue Nov 16, 2015 · 0 comments

Comments

@im-n1
Copy link

im-n1 commented Nov 16, 2015

With a bit of modification, you can add Jade syntax hilight.

Original syntax/vue.vim

  9 syntax include @HTML syntax/html.vim
 10 unlet b:current_syntax
 11 syntax region template keepend start=/<template\( lang="[a-zA-Z]\+"\)\?>/ end="</template>" contains=@HTML fold

With Jade support:

  9 syntax include @HTML syntax/html.vim
 10 unlet b:current_syntax
 11 syntax region template keepend start=/<template>/ end="</template>" contains=@HTML fold
 12 
 13 syntax include @JADE syntax/jade.vim
 14 unlet b:current_syntax
 15 syntax region template keepend start=/<template lang="jade">/ end="</template>" contains=@JADE fold

Peace.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant