From d8701bfd1eb5019f7d25def83aa147546168c6d2 Mon Sep 17 00:00:00 2001 From: TobiEiss Date: Mon, 29 Apr 2024 18:17:46 +0200 Subject: [PATCH] add textobjects queries for hurl (#10594) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add textobjects queries comment and function * update doc for hurl lang support * switch entry.inner to entry.outer * switch to function.inside --------- Co-authored-by: Tobias Eiß --- book/src/generated/lang-support.md | 2 +- runtime/queries/hurl/textobjects.scm | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/hurl/textobjects.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 77d304cc..8418138c 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -83,7 +83,7 @@ | hoon | ✓ | | | | | hosts | ✓ | | | | | html | ✓ | | | `vscode-html-language-server` | -| hurl | ✓ | | ✓ | | +| hurl | ✓ | ✓ | ✓ | | | hyprlang | ✓ | | ✓ | | | idris | | | | `idris2-lsp` | | iex | ✓ | | | | diff --git a/runtime/queries/hurl/textobjects.scm b/runtime/queries/hurl/textobjects.scm new file mode 100644 index 00000000..ac96f955 --- /dev/null +++ b/runtime/queries/hurl/textobjects.scm @@ -0,0 +1,5 @@ +(comment) @comment.inside + +(comment)+ @comment.around + +(entry (_) @function.inside) @function.around