Skip to content

Commit caaa7ee

Browse files
committed
Fixing multiline differentiation, fixes pangloss#77
This patch is not directly mine, it is from @drslump on issue pangloss#77 - see pangloss#77 (comment) for details In testing, this change works beautifully to fix pangloss#77
1 parent 22475fc commit caaa7ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ endfunction
7979

8080
" Check if the character at lnum:col is inside a multi-line comment.
8181
function s:IsInMultilineComment(lnum, col)
82-
return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_multiline
82+
return !IsLineComment(a:lnum, a:col) && synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_multiline
8383
endfunction
8484

8585
" Check if the character at lnum:col is a line comment.

0 commit comments

Comments
 (0)