From fb56a4bb75121f4797d80e14bceee9feb870cfb2 Mon Sep 17 00:00:00 2001 From: Erasin Wang Date: Thu, 16 Mar 2023 05:22:24 +0800 Subject: Improve tree-sitter queries for vlang (#6279) - Update hightlight - add indents - add textobject - add injections--- runtime/queries/v/indents.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 runtime/queries/v/indents.scm (limited to 'runtime/queries/v/indents.scm') diff --git a/runtime/queries/v/indents.scm b/runtime/queries/v/indents.scm new file mode 100644 index 00000000..5573d489 --- /dev/null +++ b/runtime/queries/v/indents.scm @@ -0,0 +1,17 @@ +[ + (struct_declaration) + (function_declaration) + (if_expression) + (match_expression) + (expression_case) + (default_case) + (for_statement) + (unsafe_expression) + (short_var_declaration) +] @indent + +[ + "]" + ")" + "}" +] @outdent -- cgit v1.2.3-70-g09d2