Skip to content

Commit db9a744

Browse files
bouncemebounceme
bounceme
authored and
bounceme
committed
i
1 parent e71b23b commit db9a744

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

indent/javascript.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function s:IsInString(lnum, col)
105105
return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_string
106106
endfunction
107107

108-
" Check if the character at lnum:col is inside a string.
108+
" Check if the character at lnum:col is inside a template string.
109109
function s:IsInTempl(lnum, col)
110110
return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_template
111111
endfunction
@@ -402,6 +402,7 @@ function GetJavascriptIndent()
402402
return indent(prevline) - s:sw()
403403
endif
404404

405+
" If we are in a multi-line comment, cindent does the right thing.
405406
if s:IsInMultilineComment(v:lnum, 1) && !s:IsLineComment(v:lnum, 1)
406407
return cindent(v:lnum)
407408
endif

0 commit comments

Comments
 (0)