From 1d7eabff68c81b8b9813f058a67df185bb12b4e6 Mon Sep 17 00:00:00 2001 From: Novus Nota <68142933+novusnota@users.noreply.github.com> Date: Sun, 29 Sep 2024 19:06:04 +0200 Subject: [PATCH] feat(tact): update queries --- queries/tact/textobjects.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/queries/tact/textobjects.scm b/queries/tact/textobjects.scm index 328af9a0..82416950 100644 --- a/queries/tact/textobjects.scm +++ b/queries/tact/textobjects.scm @@ -1,6 +1,21 @@ ; See: https://github.com/nvim-treesitter/nvim-treesitter-textobjects#built-in-textobjects ; function.inner & outer ; ---------------------- +; asm +(asm_function + body: (_)) @function.outer + +(asm_function + body: (asm_function_body + . + "{" + . + (_) @_start + (_)? @_end + . + "}") + (#make-range! "function.inner" @_start @_end)) + ; global (global_function body: (_)) @function.outer @@ -256,6 +271,9 @@ (_ (block_statement) @block.inner) @block.outer +(_ + (asm_list) @block.inner) @block.outer + ; call.inner & outer ; ------------------ (method_call_expression) @call.outer