summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMichael Davis2023-03-27 06:27:38 +0000
committerGitHub2023-03-27 06:27:38 +0000
commitd7431db55cd076dbacfde2cebaed315509923df5 (patch)
treede599de10c828c70db07ba53afb9815f1343ced9 /runtime
parent2af14a24abbd8de510f69e6569c18601533dc912 (diff)
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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/git-commit/textobjects.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/queries/git-commit/textobjects.scm b/runtime/queries/git-commit/textobjects.scm
new file mode 100644
index 00000000..4465c876
--- /dev/null
+++ b/runtime/queries/git-commit/textobjects.scm
@@ -0,0 +1,2 @@
+(comment) @comment.inside
+(comment)+ @comment.around