diff options
author | Michael Davis | 2023-03-27 06:27:38 +0000 |
---|---|---|
committer | GitHub | 2023-03-27 06:27:38 +0000 |
commit | d7431db55cd076dbacfde2cebaed315509923df5 (patch) | |
tree | de599de10c828c70db07ba53afb9815f1343ced9 /runtime/queries | |
parent | 2af14a24abbd8de510f69e6569c18601533dc912 (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/queries')
-rw-r--r-- | runtime/queries/git-commit/textobjects.scm | 2 |
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 |