From 7af37bb3b96104b82e56d0072ca0d9a7b226c141 Mon Sep 17 00:00:00 2001 From: Petr Gajdůšek Date: Mon, 7 Aug 2023 20:27:35 +0200 Subject: Add tree-sitter textobjects queries for bash (#7764) This implements function, (calling) argument and comment captures for use in the textobject selections in bash. This also updates the generated docs after adding the textobjects for bash.--- runtime/queries/bash/textobjects.scm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 runtime/queries/bash/textobjects.scm (limited to 'runtime/queries/bash') diff --git a/runtime/queries/bash/textobjects.scm b/runtime/queries/bash/textobjects.scm new file mode 100644 index 00000000..59983b30 --- /dev/null +++ b/runtime/queries/bash/textobjects.scm @@ -0,0 +1,9 @@ +(function_definition + body: (_) @function.inside) @function.around + +(command + argument: (_) @parameter.inside) + +(comment) @comment.inside + +(comment)+ @comment.around -- cgit v1.2.3-70-g09d2