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
commitbf1aa8876c5e9e7ccf6ab4ae66997c45ac3c4b95
authorMichael Davis <mcarsondavis@gmail.com>
dateTue 28 Jun 2022, 20:59 (4 years ago)
parenta890c4a
languages.toml+1−1
@@ -908,7 +908,7 @@ indent = { tab-width = 2, unit = " " }
908908
909909[[grammar]]
910910name = "git-commit"
911−source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "7ae23de633de41f8f5b802f6f05b6596df6d00c1" }
911+source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "318dd72abfaa7b8044c1d1fbeabcd06deaaf038f" }
912912
913913[[language]]
914914name = "git-diff"
runtime/queries/git-commit/highlights.scm+1−1
@@ -10,5 +10,5 @@
1010(change kind: "modified" @diff.delta)
1111(change kind: "renamed" @diff.delta.moved)
1212
13−[":" "->"] @punctuation.delimeter
13+[":" "->" (scissors)] @punctuation.delimeter
1414(comment) @comment