Skip to content

Commit 7c461bc

Browse files
committed
Update javascript.vim
1 parent 1116782 commit 7c461bc

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
@@ -377,7 +377,7 @@ function GetJavascriptIndent()
377377
return indent(prevline) + s:case_indent_after
378378
endif
379379

380-
" If line starts with operator...
380+
" If line starts with an operator...
381381
if (s:Match(v:lnum, s:operator_first))
382382
if (s:Match(prevline, s:operator_first))
383383
" and so does previous line, don't indent
@@ -395,7 +395,7 @@ function GetJavascriptIndent()
395395
" otherwise, indent 1 level
396396
return indent(prevline) + s:sw()
397397
end
398-
" If previous line starts with a operator...
398+
" If previous line starts with an operator...
399399
elseif s:Match(prevline, s:operator_first) && !s:Match(prevline, s:comma_last)
400400
let counts = s:LineHasOpeningBrackets(prevline)
401401
if counts[0] == '2' && counts[1] == '1'

0 commit comments

Comments
 (0)