File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 37
37
endfunction
38
38
endif
39
39
40
- let s: line_pre = ' ^\s*\%(\/\*.\{-}\*\ /\s*\)* '
40
+ let s: line_pre = ' ^\s*\%(\%(\ /\*.\{-}\)\=\*\+\ /\s*\)\= '
41
41
let s: expr_case = s: line_pre . ' \%(\%(case\>.\+\)\|default\)\s*:'
42
42
" Regex of syntax group names that are or delimit string or are comments.
43
43
let s: syng_strcom = ' \%(s\%(tring\|pecial\)\|comment\|regex\|doc\|template\)'
58
58
endfunction
59
59
endif
60
60
61
- let s: line_term = ' \%(\ s*\%(\/\ *.\{-}\*\/\s*\)\= \)\@> $'
61
+ let s: line_term = ' \s*\%(\%(\/\%(\%(\ *.\{-}\*\/\)\|\%(\*\+\)\) \)\s*\)\= $'
62
62
63
63
" configurable regexes that define continuation lines, not including (, {, or [.
64
64
if ! exists (' g:javascript_opfirst' )
65
- let g: javascript_opfirst = ' \%([<>,:?^%|&]\|\([-/.+]\)\%(\1\|\*\|\/\)\@!\|\*\/ \@!\|=>\@!\|in\%(stanceof\)\=\>\)'
65
+ let g: javascript_opfirst = ' \%([<>,:?^%|* &]\|\([-/.+]\)\1 \@!\|=>\@!\|in\%(stanceof\)\=\>\)'
66
66
endif
67
67
if ! exists (' g:javascript_continuation' )
68
- let g: javascript_continuation = ' \%([<=* ,.?:^%|&]\|+\@<!+\|-\@<!-\|=\@<!>\|\*\@<!\/ \|\<in\%(stanceof\)\=\)'
68
+ let g: javascript_continuation = ' \%([<=,.?/* :^%|&]\|+\@<!+\|-\@<!-\|=\@<!>\|\<in\%(stanceof\)\=\)'
69
69
endif
70
70
71
71
let g: javascript_opfirst = s: line_pre . g: javascript_opfirst
You can’t perform that action at this time.
0 commit comments