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
3 changed files with 4 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
|||
| fortran | ✓ | | ✓ | `fortls` |
|
||||
| gdscript | ✓ | ✓ | ✓ | |
|
||||
| git-attributes | ✓ | | | |
|
||||
| git-commit | ✓ | | | |
|
||||
| git-commit | ✓ | ✓ | | |
|
||||
| git-config | ✓ | | | |
|
||||
| git-ignore | ✓ | | | |
|
||||
| git-rebase | ✓ | | | |
|
||||
|
|
|
@ -1194,7 +1194,7 @@ text-width = 72
|
|||
|
||||
[[grammar]]
|
||||
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]]
|
||||
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 a new issue