Skip to content

Commit 0c3a350

Browse files
authored
add jsfunccall to not indent args
1 parent f253975 commit 0c3a350

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
@@ -195,7 +195,7 @@ function GetJavascriptIndent()
195195
\ (getline(lnum) =~ g:javascript_continuation && getline(lnum) !~ s:expr_case) ||
196196
\ (s:Onescope(lnum) && line !~ s:line_pre . '{')) &&
197197
\ (num != lnum &&
198-
\ synIDattr(synID(v:lnum, 1, 1), 'name') !~? 'jsdestructuringblock\|args\|jsbracket\|jsparen\|jsobject')
198+
\ synIDattr(synID(v:lnum, 1, 1), 'name') !~? 'jsfunccall\|jsdestructuringblock\|args\|jsbracket\|jsparen\|jsobject')
199199
return (num > 0 ? indent(num) : -s:sw()) + (s:sw() * 2) + switch_offset
200200
elseif num > 0
201201
return indent(num) + s:sw() + switch_offset

0 commit comments

Comments
 (0)