Created
October 19, 2011 13:51
-
-
Save sjl/1298333 to your computer and use it in GitHub Desktop.
Tired of your Mustache/Underscore templates in <script type="text/html"> tags getting highlighted as Javascript in Vim? Change line 167 of /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/html.vim to this!
This file contains 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
syn region javaScript start=+<script[^>]*type="text/javascript"[^>]*>+ keepend end=+</script>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment