summaryrefslogtreecommitdiff
path: root/runtime/queries/git-commit/highlights.scm
diff options
context:
space:
mode:
authorMichael Davis2022-06-29 01:59:03 +0000
committerBlaž Hrastnik2022-07-01 09:04:23 +0000
commitbf1aa8876c5e9e7ccf6ab4ae66997c45ac3c4b95 (patch)
treed6d32caa24c49cef78ca6ea65c56cb3b089d3c80 /runtime/queries/git-commit/highlights.scm
parenta890c4a64dee8521bc80adfe77c56e703a7e4512 (diff)
git-commit: fix highlight edge cases
* branch message with current branch and diverged branch has been added to the parser * scissors used in verbose commits are marked as a punctuation delimiter * we could use comment instead since they're visually the same but IMO this works better
Diffstat (limited to 'runtime/queries/git-commit/highlights.scm')
-rw-r--r--runtime/queries/git-commit/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queries/git-commit/highlights.scm b/runtime/queries/git-commit/highlights.scm
index 0b50d419..bdb776d6 100644
--- a/runtime/queries/git-commit/highlights.scm
+++ b/runtime/queries/git-commit/highlights.scm
@@ -10,5 +10,5 @@
(change kind: "modified" @diff.delta)
(change kind: "renamed" @diff.delta.moved)
-[":" "->"] @punctuation.delimeter
+[":" "->" (scissors)] @punctuation.delimeter
(comment) @comment