From 9a3f23b0661f7a37a0dab885fe5eb844b615a22b Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 1 May 2024 15:52:02 -0700 Subject: Add rainbow tree-sitter highlights ref: https://github.com/helix-editor/helix/issues/695 ref: https://github.com/helix-editor/helix/pull/2857 --- runtime/queries/java/rainbows.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 runtime/queries/java/rainbows.scm (limited to 'runtime/queries/java/rainbows.scm') diff --git a/runtime/queries/java/rainbows.scm b/runtime/queries/java/rainbows.scm new file mode 100644 index 00000000..699b899c --- /dev/null +++ b/runtime/queries/java/rainbows.scm @@ -0,0 +1,35 @@ +[ + (cast_expression) + (inferred_parameters) + (dimensions_expr) + (parenthesized_expression) + (array_access) + (argument_list) + (type_arguments) + (dimensions) + (block) + (switch_block) + (catch_clause) + (resource_specification) + (for_statement) + (enhanced_for_statement) + (annotation_argument_list) + (element_value_array_initializer) + (module_body) + (enum_body) + (type_parameters) + (class_body) + (constructor_body) + (annotation_type_body) + (annotation_type_element_declaration) + (interface_body) + (array_initializer) + (formal_parameters) +] @rainbow.scope + +[ + "(" ")" + "{" "}" + "[" "]" + "<" ">" +] @rainbow.bracket -- cgit v1.2.3-70-g09d2