File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ set cpo&vim
29
29
" 1. Variables {{{1
30
30
" ============
31
31
32
- let s: js_keywords = ' ^\s*\(break\|case\|catch\|continue\|debugger\|default\|delete\|do\|else\|finally\|for\|function\|if\|in\|instanceof\|new\|return\|switch\|this\|throw\|try\|typeof\|var\|void\|while\|with\)'
32
+ let s: js_keywords = ' ^\s*\(break\|case\|catch\|const\| continue\|debugger\|default\|delete\|do\|else\|finally\|for\|function\|if\|in\|instanceof\|let \|new\|return\|switch\|this\|throw\|try\|typeof\|var\|void\|while\|with\)'
33
33
34
34
" Regex of syntax group names that are or delimit string or are comments.
35
35
let s: syng_strcom = ' string\|regex\|comment\c'
@@ -60,7 +60,7 @@ let s:one_line_scope_regex = '\<\%(if\|else\|for\|while\)\>[^{;]*' . s:line_term
60
60
" Regex that defines blocks.
61
61
let s: block_regex = ' \%([{[]\)\s*\%(|\%([*@]\=\h\w*,\=\s*\)\%(,\s*[*@]\=\h\w*\)*|\)\=' . s: line_term
62
62
63
- let s: var_stmt = ' ^\s*var'
63
+ let s: var_stmt = ' ^\s*(const\|let\| var) '
64
64
65
65
let s: comma_first = ' ^\s*,'
66
66
let s: comma_last = ' ,\s*$'
You can’t perform that action at this time.
0 commit comments