on master help sign in
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.

commitd7431db55cd076dbacfde2cebaed315509923df5 authorMichael Davis <mcarsondavis@gmail.com> dateMon 27 Mar 2023, 01:27 (4 years ago) parent2af14a2
3 files changed+4−2
book/src/generated/lang-support.md+1−1 languages.toml+1−1 runtime/queries/git-commit/textobjects.scm+2
book/src/generated/lang-support.md+1−1
@@ -41,7 +41,7 @@
4141| fortran | ✓ | | ✓ | `fortls` |
4242| gdscript | ✓ | ✓ | ✓ | |
4343| git-attributes | ✓ | | | |
44−| git-commit | ✓ | | | |
44+| git-commit | ✓ | ✓ | | |
4545| git-config | ✓ | | | |
4646| git-ignore | ✓ | | | |
4747| git-rebase | ✓ | | | |
languages.toml+1−1
@@ -1194,7 +1194,7 @@ text-width = 72
11941194
11951195[[grammar]]
11961196name = "git-commit"
1197−source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "318dd72abfaa7b8044c1d1fbeabcd06deaaf038f" }
1197+source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "7421fd81840950c0ff4191733cee3b6ac06cb295" }
11981198
11991199[[language]]
12001200name = "diff"
runtime/queries/git-commit/textobjects.scmnew file+2
@@ -0,0 +1,2 @@
1+(comment) @comment.inside
2+(comment)+ @comment.around