hightlight: correctly highlight loose comments
authorJean Privat <jean@pryen.org>
Fri, 18 Dec 2015 14:40:27 +0000 (09:40 -0500)
committerJean Privat <jean@pryen.org>
Fri, 18 Dec 2015 14:41:49 +0000 (09:41 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/highlight.nit

index 424824f..59e5370 100644 (file)
@@ -986,7 +986,7 @@ redef class TComment
        redef fun make_tag(v)
        do
                var res = super
-               if not parent isa ADoc then
+               if is_loose then
                        res.add_class("nc_c")
                end
                return res