Skip to content

Commit cbcfaaf

Browse files
authored
adding more operators (#573)
* adding more operators I think adding `<>` could mess with xml type things so i've not included them
1 parent 2905f34 commit cbcfaaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indent/javascript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ let s:line_term = '\s*\%(\%(:\@<!\/\/.*\)\=\|\%(\/\*.*\*\/\s*\)*\)$'
5858

5959
" configurable regexes that define continuation lines, not including (, {, or [.
6060
if !exists('g:javascript_opfirst')
61-
let g:javascript_opfirst = '\%([,:?]\|\([-/.+*]\)\%(\1\|\*\|\/\)\@!\|||\|&&\)'
61+
let g:javascript_opfirst = '\%([,:?^%]\|\([-/.+]\)\%(\1\|\*\|\/\)\@!\|\*\/\@!\|=>\@!\||\|&\|in\%(stanceof\)\=\>\)\C'
6262
endif
6363
let g:javascript_opfirst = s:line_pre . g:javascript_opfirst
6464

6565
if !exists('g:javascript_continuation')
66-
let g:javascript_continuation = '\%([*,.?:]\|+\@<!+\|-\@<!-\|\*\@<!\/\|=\|||\|&&\)'
66+
let g:javascript_continuation = '\%([*,.?:^%]\|+\@<!+\|-\@<!-\|\*\@<!\/\|=\||\|&\|\<in\%(stanceof\)\=\)\C'
6767
endif
6868
let g:javascript_continuation .= s:line_term
6969

0 commit comments

Comments
 (0)