Skip to content

Commit cd0fc28

Browse files
authored
comment fix
for multiline comments which were being considered operator first lines in some cases. may be getting some bug reports for this on master
1 parent faf8bda commit cd0fc28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ let s:line_term = '\s*\%(\%(\/\%(\%(\*.\{-}\*\/\)\|\%(\*\+\)\)\)\s*\)\=$'
6262

6363
" configurable regexes that define continuation lines, not including (, {, or [.
6464
if !exists('g:javascript_opfirst')
65-
let g:javascript_opfirst = '\%([<>,:?^%|*&]\|\([-/.+]\)\1\@!\|=>\@!\|in\%(stanceof\)\=\>\)'
65+
let g:javascript_opfirst = '\%([<>,:?^%|*&]\|\([-/.+]\)\%(\1\|\*\)\@!\|=>\@!\|in\%(stanceof\)\=\>\)'
6666
endif
6767
if !exists('g:javascript_continuation')
6868
let g:javascript_continuation = '\%([<=,.?/*:^%|&]\|+\@<!+\|-\@<!-\|=\@<!>\|\<in\%(stanceof\)\=\)'

0 commit comments

Comments
 (0)