Skip to content

Commit d12634d

Browse files
committed
Merge: hightlight: correctly highlight loose comments
close #1907 Pull-Request: #1910 Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
2 parents 20c884a + fb4b5f6 commit d12634d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/highlight.nit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ redef class TComment
986986
redef fun make_tag(v)
987987
do
988988
var res = super
989-
if not parent isa ADoc then
989+
if is_loose then
990990
res.add_class("nc_c")
991991
end
992992
return res

0 commit comments

Comments
 (0)