Skip to content

Improve highlighting of commented code #58

@mookid

Description

@mookid

On the following example:

@
-fn func(a,b,c) {
-  x = g(a,b)
-  y = if x {
-          h(b,c)
-      } else {
-          0
-      }
-  return x + y
-}
+// fn func(a,b,c) {
+//   x = g(a,b)
+//   y = if x {
+//           h(b,c)
+//       } else {
+//           0
+//       }
+//   return x + y
+// }

diffr displays the diff like that:
image

which is correct, but the highlighting of the whitespace-only tokens is distracting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions