We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d388b88 + ff62d63 commit 5b7445eCopy full SHA for 5b7445e
indent/javascript.vim
@@ -119,13 +119,13 @@ function s:PrevNonBlankNonString(lnum)
119
" Go in and out of blocks comments as necessary.
120
" If the line isn't empty (with opt. comment) or in a string, end search.
121
let line = getline(lnum)
122
- if line =~ '/\*'
+ if s:IsInMultilineComment(lnum, matchend(line, '/\*') - 1)
123
if in_block
124
let in_block = 0
125
else
126
break
127
endif
128
- elseif !in_block && line =~ '\*/'
+ elseif !in_block && s:IsInMultilineComment(lnum, matchend(line, '\*/') - 1)
129
let in_block = 1
130
elseif !in_block && line !~ '^\s*\%(//\).*$' && !(s:IsInStringOrComment(lnum, 1) && s:IsInStringOrComment(lnum, strlen(line)))
131
0 commit comments