Created
October 17, 2012 00:07
-
-
Save bigeasy/3902914 to your computer and use it in GitHub Desktop.
Multi-line string syntax highlighting for Vim.
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
--- /usr/share/vim/vim73/syntax/javascript.vim 2012-10-16 19:57:21.000000000 -0400 | |
+++ javascript.vim 2012-10-16 19:56:57.000000000 -0400 | |
@@ -34,8 +34,8 @@ | |
syn match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" | |
syn region javaScriptComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo | |
syn match javaScriptSpecial "\\\d\d\d\|\\." | |
-syn region javaScriptStringD start=+"+ skip=+\\\\\|\\"\|\\\n+ end=+"\|$+ contains=javaScriptSpecial,@htmlPreproc | |
-syn region javaScriptStringS start=+'+ skip=+\\\\\|\\'\|\\\n+ end=+'\|$+ contains=javaScriptSpecial,@htmlPreproc | |
+syn region javaScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=javaScriptSpecial,@htmlPreproc | |
+syn region javaScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=javaScriptSpecial,@htmlPreproc | |
syn match javaScriptSpecialCharacter "'\\.'" | |
syn match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment