mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
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
This commit is contained in:
parent
a890c4a64d
commit
bf1aa8876c
@ -908,7 +908,7 @@ indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
name = "git-commit"
|
||||
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "7ae23de633de41f8f5b802f6f05b6596df6d00c1" }
|
||||
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "318dd72abfaa7b8044c1d1fbeabcd06deaaf038f" }
|
||||
|
||||
[[language]]
|
||||
name = "git-diff"
|
||||
|
@ -10,5 +10,5 @@
|
||||
(change kind: "modified" @diff.delta)
|
||||
(change kind: "renamed" @diff.delta.moved)
|
||||
|
||||
[":" "->"] @punctuation.delimeter
|
||||
[":" "->" (scissors)] @punctuation.delimeter
|
||||
(comment) @comment
|
||||
|
Loading…
Reference in New Issue
Block a user