diffr icon indicating copy to clipboard operation
diffr copied to clipboard

Improve highlighting of commented code

Open mookid opened this issue 5 years ago • 0 comments

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.

mookid avatar Jun 27 '20 13:06 mookid