We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3bf70a commit 7c73d8eCopy full SHA for 7c73d8e
1 file changed
indent/javascript.vim
@@ -358,10 +358,8 @@ function GetJavascriptIndent()
358
359
" start with strings,comments,etc.
360
if s:stack[-1] =~? 'comment\|doc'
361
- if l:line =~ '^\s*\*'
362
- return cindent(v:lnum)
363
- elseif l:line !~ '^\s*\/[/*]'
364
- return -1
+ if l:line !~ '^\s*\/[/*]'
+ return l:line =~ '^\s*\*' ? cindent(v:lnum) : -1
365
endif
366
elseif s:stack[-1] =~? b:syng_str
367
if b:js_cache[0] == v:lnum - 1 && s:Balanced(v:lnum-1,getline(v:lnum-1))
0 commit comments