Skip to content

Instantly share code, notes, and snippets.

@ConradIrwin
Created May 19, 2011 19:00
Show Gist options
  • Save ConradIrwin/981458 to your computer and use it in GitHub Desktop.
Save ConradIrwin/981458 to your computer and use it in GitHub Desktop.
" ~/.vim/after/syntax/eruby.vim
" Highlight javascript_tag in the same way as <script>.
syn region javaScript start=+<% *javascript_tag *do *%>+ keepend end=+<% *end *%>+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