Mercurial > ec-dotfiles
comparison vendor/vim-syntax/javascript.vim @ 661:c74dffea6a0a
[vim-syntax] Update syntax
| author | nanaya <me@nanaya.pro> |
|---|---|
| date | Fri, 10 Dec 2021 19:02:27 +0900 |
| parents | c548e83e4c57 |
| children | 17cacf387f7c |
comparison
equal
deleted
inserted
replaced
| 660:56ac9d97d81b | 661:c74dffea6a0a |
|---|---|
| 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: 2020 May 14 | 10 " Last Change: 2021 Mar 30 |
| 11 " 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke) | 11 " 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke) |
| 12 " 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder) | 12 " 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder) |
| 13 | 13 |
| 14 " tuning parameters: | 14 " tuning parameters: |
| 15 " unlet javaScript_fold | 15 " unlet javaScript_fold |
| 39 | 39 |
| 40 syn region javaScriptEmbed start=+${+ end=+}+ contains=@javaScriptEmbededExpr | 40 syn region javaScriptEmbed start=+${+ end=+}+ contains=@javaScriptEmbededExpr |
| 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 match javaScriptNumber "-\=\<\d\+\%(_\d\+\)*\>" | |
| 44 syn region javaScriptRegexpString start=+[,(=+]\s*/[^/*]+ms=e-1,me=e-1 skip=+\\\\\|\\/+ end=+/[gimuys]\{0,2\}\s*$+ end=+/[gimuys]\{0,2\}\s*[+;.,)\]}]+me=e-1 end=+/[gimuys]\{0,2\}\s\+\/+me=e-1 contains=@htmlPreproc,javaScriptComment oneline | 45 syn region javaScriptRegexpString start=+[,(=+]\s*/[^/*]+ms=e-1,me=e-1 skip=+\\\\\|\\/+ end=+/[gimuys]\{0,2\}\s*$+ end=+/[gimuys]\{0,2\}\s*[+;.,)\]}]+me=e-1 end=+/[gimuys]\{0,2\}\s\+\/+me=e-1 contains=@htmlPreproc,javaScriptComment oneline |
| 45 | 46 |
| 46 syn keyword javaScriptConditional if else switch | 47 syn keyword javaScriptConditional if else switch |
| 47 syn keyword javaScriptRepeat while for do in | 48 syn keyword javaScriptRepeat while for do in |
| 48 syn keyword javaScriptBranch break continue | 49 syn keyword javaScriptBranch break continue |
