Mercurial > ec-dotfiles
comparison vendor/vim-syntax/javascript.vim @ 642:c548e83e4c57
[vim syntax] Update from upstream
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 08 Jun 2020 15:07:48 +0900 |
parents | ced2ee9efd9f |
children | c74dffea6a0a |
comparison
equal
deleted
inserted
replaced
641:84a1e86d1afc | 642:c548e83e4c57 |
---|---|
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 |