Mercurial > vim
comparison runtime/syntax/javascript.vim @ 1121:e63691e7c504
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 17:54:07 +0000 |
parents | dc8197342755 |
children | b9e314fe473f |
comparison
equal
deleted
inserted
replaced
1120:e6db096b07a1 | 1121:e63691e7c504 |
---|---|
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: 2006 Jan 15 | 10 " Last Change: 2006 Jun 19 |
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 |
30 | 30 |
31 syn case ignore | 31 syn case ignore |
32 | 32 |
33 | 33 |
34 syn keyword javaScriptCommentTodo TODO FIXME XXX TBD contained | 34 syn keyword javaScriptCommentTodo TODO FIXME XXX TBD contained |
35 syn match javaScriptLineComment "\/\/.*" contains=javaScriptCommentTodo | 35 syn match javaScriptLineComment "\/\/.*" contains=@Spell,javaScriptCommentTodo |
36 syn match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" | 36 syn match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" |
37 syn region javaScriptComment start="/\*" end="\*/" contains=javaScriptCommentTodo | 37 syn region javaScriptComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo |
38 syn match javaScriptSpecial "\\\d\d\d\|\\." | 38 syn match javaScriptSpecial "\\\d\d\d\|\\." |
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 "'\\.'" |