Skip to content

Commit 8f16491

Browse files
committed
indent following line ending in comma with arrow (#420)
an example here : jason0x43/vim-js-indent#4 (comment)
1 parent 10b6c64 commit 8f16491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ let s:skip_expr = "synIDattr(synID(line('.'),col('.'),1),'name') =~ '".s:syng_st
6363
let s:line_term = '\s*\%(\%(\/\/\).*\)\=$'
6464

6565
" Regex that defines continuation lines, not including (, {, or [.
66-
let s:continuation_regex = '\%([\\*/.:]\|+\@<!+\|-\@<!-\|\%(<%\)\@<!=\|\W[|&?]\|||\|&&\|[^=]=[^=>].*,\)' . s:line_term
66+
let s:continuation_regex = '\%([\\*/.:]\|+\@<!+\|-\@<!-\|\%(<%\)\@<!=\|\W[|&?]\|||\|&&\|\%(=>.*\|=\)\@<!=[^=>].*,\)' . s:line_term
6767

6868
let s:one_line_scope_regex = '\%(\<else\>\|=>\)' . s:line_term
6969

0 commit comments

Comments
 (0)