]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/git-commit.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / git-commit.yaml
index 3429edd2c39e0bcd930d84d6379a9723d5fd894e..9f8ef0d9dfb077d6037bd0ff35d606b1d559693f 100644 (file)
@@ -23,3 +23,14 @@ rules:
         start: "^#"
         end: "$"
         rules: []
+
+    # Diffs (i.e. git commit --verbose)
+    - default:
+        start: "^diff --git"
+        # Diff output puts a space before file contents on each line so this
+        # should never match valid diff output and extend highlighting to the
+        # end of the file
+        end: "^ENDOFFILE"
+        limit-group: "magenta"
+        rules:
+            - include: "patch"