Mercurial > vim
comparison runtime/syntax/javascript.vim @ 20552:74e3316c1d5a
Update runtime files
Commit: https://github.com/vim/vim/commit/388a5d4f20b4b64341d1604aa238cab85827b892
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 26 21:20:45 2020 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 May 2020 21:30:04 +0200 |
parents | 03b854983b14 |
children | 4ab4ef0c48b1 |
comparison
equal
deleted
inserted
replaced
20551:f1b23a9643fe | 20552:74e3316c1d5a |
---|---|
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: 2019 Sep 27 | 10 " Last Change: 2020 May 14 |
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 |
75 syn keyword javaScriptFunction function | 75 syn keyword javaScriptFunction function |
76 syn match javaScriptBraces "[{}\[\]]" | 76 syn match javaScriptBraces "[{}\[\]]" |
77 syn match javaScriptParens "[()]" | 77 syn match javaScriptParens "[()]" |
78 endif | 78 endif |
79 | 79 |
80 syn sync fromstart | 80 if main_syntax == "javascript" |
81 syn sync maxlines=100 | 81 syn sync fromstart |
82 syn sync maxlines=100 | |
82 | 83 |
83 if main_syntax == "javascript" | |
84 syn sync ccomment javaScriptComment | 84 syn sync ccomment javaScriptComment |
85 endif | 85 endif |
86 | 86 |
87 " Define the default highlighting. | 87 " Define the default highlighting. |
88 " Only when an item doesn't have highlighting yet | 88 " Only when an item doesn't have highlighting yet |