mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Update tree-sitter-git-commit, add comment textobject (#6439)
The update includes a fix for comments in commit messages where there was no space separating the '#' and the comment text. The comment textobject can be useful occasionally to jump to the summary part of the commit edit message.
This commit is contained in:
parent
2af14a24ab
commit
d7431db55c
@ -41,7 +41,7 @@
|
|||||||
| fortran | ✓ | | ✓ | `fortls` |
|
| fortran | ✓ | | ✓ | `fortls` |
|
||||||
| gdscript | ✓ | ✓ | ✓ | |
|
| gdscript | ✓ | ✓ | ✓ | |
|
||||||
| git-attributes | ✓ | | | |
|
| git-attributes | ✓ | | | |
|
||||||
| git-commit | ✓ | | | |
|
| git-commit | ✓ | ✓ | | |
|
||||||
| git-config | ✓ | | | |
|
| git-config | ✓ | | | |
|
||||||
| git-ignore | ✓ | | | |
|
| git-ignore | ✓ | | | |
|
||||||
| git-rebase | ✓ | | | |
|
| git-rebase | ✓ | | | |
|
||||||
|
@ -1194,7 +1194,7 @@ text-width = 72
|
|||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "git-commit"
|
name = "git-commit"
|
||||||
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "318dd72abfaa7b8044c1d1fbeabcd06deaaf038f" }
|
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "7421fd81840950c0ff4191733cee3b6ac06cb295" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "diff"
|
name = "diff"
|
||||||
|
2
runtime/queries/git-commit/textobjects.scm
Normal file
2
runtime/queries/git-commit/textobjects.scm
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
(comment) @comment.inside
|
||||||
|
(comment)+ @comment.around
|
Loading…
Reference in New Issue
Block a user