Created
January 12, 2012 03:01
-
-
Save beneater/1598304 to your computer and use it in GitHub Desktop.
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
--- /usr/share/vim/vim72/syntax/html.vim 2012-01-08 19:47:38.000000000 -0500 | |
+++ /Users/eater/.vim/syntax/html.vim 2012-01-11 21:59:47.000000000 -0500 | |
@@ -183,6 +183,20 @@ | |
" a javascript expression is used as an arg value | |
syn region javaScriptExpression contained start=+&{+ keepend end=+};+ contains=@htmlJavaScript,@htmlPreproc | |
+ | |
+ | |
+ " javascript inside var tags | |
+ syn region javaScript start=+<var[^>]*>+ keepend end=+</var>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlVarTag,@htmlPreproc | |
+ syn region htmlVarTag contained start=+<var+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent | |
+ HtmlHiLink htmlVarTag htmlTag | |
+ | |
+ " javascript inside div tags | |
+ syn region javaScript start=+<div[^>]*class="graphie"[^>]*>+ keepend end=+</div>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlDivTag,@htmlPreproc | |
+ syn region javaScript start=+<div[^>]*class="guess"[^>]*>+ keepend end=+</div>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlDivTag,@htmlPreproc | |
+ syn region javaScript start=+<div[^>]*class="validator-function"[^>]*>+ keepend end=+</div>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlDivTag,@htmlPreproc | |
+ syn region javaScript start=+<div[^>]*class="show-guess"[^>]*>+ keepend end=+</div>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlDivTag,@htmlPreproc | |
+ syn region htmlDivTag contained start=+<div+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent | |
+ HtmlHiLink htmlDivTag htmlTag | |
endif | |
if main_syntax != 'java' || exists("java_vb") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment