Mercurial > vim
comparison runtime/syntax/javascript.vim @ 829:dc8197342755 v7.0d04
updated for version 7.0d04
author | vimboss |
---|---|
date | Fri, 14 Apr 2006 20:42:25 +0000 |
parents | 862863033fdd |
children | e63691e7c504 |
comparison
equal
deleted
inserted
replaced
828:01583c79d5f4 | 829:dc8197342755 |
---|---|
5 " URL: http://www.fleiner.com/vim/syntax/javascript.vim | 5 " URL: http://www.fleiner.com/vim/syntax/javascript.vim |
6 " Changes: (ss) added keywords, reserved words, and other identifiers | 6 " Changes: (ss) added keywords, reserved words, and other identifiers |
7 " (ss) repaired several quoting and grouping glitches | 7 " (ss) repaired several quoting and grouping glitches |
8 " (ss) fixed regex parsing issue with multiple qualifiers [gi] | 8 " (ss) fixed regex parsing issue with multiple qualifiers [gi] |
9 " (ss) additional factoring of keywords, globals, and members | 9 " (ss) additional factoring of keywords, globals, and members |
10 " Last Change: 2005 Nov 12 (ss) | 10 " Last Change: 2006 Jan 15 |
11 | 11 |
12 " For version 5.x: Clear all syntax items | 12 " For version 5.x: Clear all syntax items |
13 " For version 6.x: Quit when a syntax file was already loaded | 13 " For version 6.x: Quit when a syntax file was already loaded |
14 " tuning parameters: | 14 " tuning parameters: |
15 " unlet javaScript_fold | 15 " unlet javaScript_fold |
39 syn region javaScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=javaScriptSpecial,@htmlPreproc | 39 syn region javaScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=javaScriptSpecial,@htmlPreproc |
40 syn region javaScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=javaScriptSpecial,@htmlPreproc | 40 syn region javaScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=javaScriptSpecial,@htmlPreproc |
41 | 41 |
42 syn match javaScriptSpecialCharacter "'\\.'" | 42 syn match javaScriptSpecialCharacter "'\\.'" |
43 syn match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" | 43 syn match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" |
44 syn region javaScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)]+me=e-1 contains=@htmlPreproc oneline | 44 syn region javaScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline |
45 | 45 |
46 syn keyword javaScriptConditional if else switch | 46 syn keyword javaScriptConditional if else switch |
47 syn keyword javaScriptRepeat while for do in | 47 syn keyword javaScriptRepeat while for do in |
48 syn keyword javaScriptBranch break continue | 48 syn keyword javaScriptBranch break continue |
49 syn keyword javaScriptOperator new delete instanceof typeof | 49 syn keyword javaScriptOperator new delete instanceof typeof |