Skip to content

Commit 5b7445e

Browse files
committed
Merge pull request #390 from bounceme/patch-16
#324
2 parents d388b88 + ff62d63 commit 5b7445e

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
@@ -119,13 +119,13 @@ function s:PrevNonBlankNonString(lnum)
119119
" Go in and out of blocks comments as necessary.
120120
" If the line isn't empty (with opt. comment) or in a string, end search.
121121
let line = getline(lnum)
122-
if line =~ '/\*'
122+
if s:IsInMultilineComment(lnum, matchend(line, '/\*') - 1)
123123
if in_block
124124
let in_block = 0
125125
else
126126
break
127127
endif
128-
elseif !in_block && line =~ '\*/'
128+
elseif !in_block && s:IsInMultilineComment(lnum, matchend(line, '\*/') - 1)
129129
let in_block = 1
130130
elseif !in_block && line !~ '^\s*\%(//\).*$' && !(s:IsInStringOrComment(lnum, 1) && s:IsInStringOrComment(lnum, strlen(line)))
131131
break

0 commit comments

Comments
 (0)