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 3737 endfunction
3838endif
3939
40- let s: line_pre = ' ^\s*\%(\/\*.\{-}\*\ /\s*\)* '
40+ let s: line_pre = ' ^\s*\%(\%(\ /\*.\{-}\)\=\*\+\ /\s*\)\= '
4141let s: expr_case = s: line_pre . ' \%(\%(case\>.\+\)\|default\)\s*:'
4242" Regex of syntax group names that are or delimit string or are comments.
4343let s: syng_strcom = ' \%(s\%(tring\|pecial\)\|comment\|regex\|doc\|template\)'
5858 endfunction
5959endif
6060
61- let s: line_term = ' \%(\ s*\%(\/\ *.\{-}\*\/\s*\)\= \)\@> $'
61+ let s: line_term = ' \s*\%(\%(\/\%(\%(\ *.\{-}\*\/\)\|\%(\*\+\)\) \)\s*\)\= $'
6262
6363" configurable regexes that define continuation lines, not including (, {, or [.
6464if ! exists (' g:javascript_opfirst' )
65- let g: javascript_opfirst = ' \%([<>,:?^%|&]\|\([-/.+]\)\%(\1\|\*\|\/\)\@!\|\*\/ \@!\|=>\@!\|in\%(stanceof\)\=\>\)'
65+ let g: javascript_opfirst = ' \%([<>,:?^%|* &]\|\([-/.+]\)\1 \@!\|=>\@!\|in\%(stanceof\)\=\>\)'
6666endif
6767if ! exists (' g:javascript_continuation' )
68- let g: javascript_continuation = ' \%([<=* ,.?:^%|&]\|+\@<!+\|-\@<!-\|=\@<!>\|\*\@<!\/ \|\<in\%(stanceof\)\=\)'
68+ let g: javascript_continuation = ' \%([<=,.?/* :^%|&]\|+\@<!+\|-\@<!-\|=\@<!>\|\<in\%(stanceof\)\=\)'
6969endif
7070
7171let g: javascript_opfirst = s: line_pre . g: javascript_opfirst
You can’t perform that action at this time.
0 commit comments