diff options
author | Tobias Hunger | 2024-02-07 18:36:29 +0000 |
---|---|---|
committer | GitHub | 2024-02-07 18:36:29 +0000 |
commit | a1272bdb17a63361342a318982e46129d558743c (patch) | |
tree | 9ffc411114f1f7a38b14f75431730480c7ee238e /runtime/queries/slint/textobjects.scm | |
parent | bbcc89241fd63b460ea7b1661a550f5b9eacba4c (diff) |
slint: Update treesitter parser and queries (#9551)
* slint: Update treesitter parser and queries
* slint: Port over suggestions from nvim review
Diffstat (limited to 'runtime/queries/slint/textobjects.scm')
-rw-r--r-- | runtime/queries/slint/textobjects.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/runtime/queries/slint/textobjects.scm b/runtime/queries/slint/textobjects.scm new file mode 100644 index 00000000..7e2f3609 --- /dev/null +++ b/runtime/queries/slint/textobjects.scm @@ -0,0 +1,35 @@ +(function_definition + (imperative_block) @funtion.inside) @function.around + +(callback_event + (imperative_block) @function.inside) @function.around + +(property + (imperative_block) @function.inside) @function.around + +(struct_definition + (struct_block) @class.inside) @class.around + +(enum_definition + (enum_block) @class.inside) @class.around + +(global_definition + (global_block) @class.inside) @class.around + +(component_definition + (block) @class.inside) @class.around + +(component_definition + (block) @class.inside) @class.around + +(comment) @comment.around + +(typed_identifier + name: (_) @parameter.inside) @parameter.around + +(callback + arguments: (_) @parameter.inside) + +(string_value + "\"" . (_) @text.inside . "\"") @text.around + |