Created
August 9, 2013 15:18
-
-
Save samflores/6194484 to your computer and use it in GitHub Desktop.
.vim/after/syntax/html.vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unlet b:current_syntax | |
syn include @HTML $VIMRUNTIME/syntax/html.vim | |
syn include @Handlebars $HOME/.vim/vim-addons/Handlebars/syntax/handlebars.vim | |
syn region handlebarsTemplate contained | |
\ start=+<script [^>]*type *=[^>]*text/x-handlebars[^>]*>+ | |
\ end=+</script>+me=s-1 keepend | |
\ contains=@Handlebars |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it should create a region for
<script>
tags withtype="text/x-handlebar"
and apply the Handlebar syntax file