2023-11-12 22:54:56 +01:00
|
|
|
[filetype.rust]
|
|
|
|
group.identifier = ["identifier", "scoped_identifier"]
|
2023-11-14 21:35:52 +01:00
|
|
|
group.declaration = ["const_item", "macro_definition", "struct_item", "union_item", "enum_item", "type_item", "function_item", "function_signature_item", "impl_item", "trait_item", "associated_type", "let_declaration", "static_item"]
|
2023-11-12 22:54:56 +01:00
|
|
|
group.call = ["macro_invocation", "call_expression"]
|
2023-11-13 18:52:48 +01:00
|
|
|
group.arguments = ["arguments", "token_tree", "parameters"]
|
2023-11-12 22:54:56 +01:00
|
|
|
group.statement = ["expression_statement", "let_declaration"]
|
2023-11-12 23:29:11 +01:00
|
|
|
group.string = ["string_literal", "raw_string_literal"]
|
|
|
|
group.number = ["integer_literal", "float_literal", "negative_literal"]
|
2023-12-19 18:27:03 +01:00
|
|
|
group.type = ["abstract_type", "reference_type", "metavariable", "pointer_type", "generic_type", "type_identifier", "scoped_type_identifier", "tuple_type", "unit_type", "array_type", "function_type", "empty_type", "dynamic_type", "bounded_type", "primitive_type"]
|
2023-11-13 18:52:48 +01:00
|
|
|
|
|
|
|
[filetype.python]
|
|
|
|
group.identifier = ["identifier"]
|
2023-11-14 12:58:45 +01:00
|
|
|
group.declaration = ["function_definition", "class_definition", "decorated_definition"]
|
|
|
|
group.statement = ["expression_statement", "for_statement", "if_statement", "return_statement", "while_statement", "raise_statement", "try_statement", "assert_statement", "import_statement", "with_statement"]
|
2023-11-13 18:52:48 +01:00
|
|
|
group.call = ["call"]
|
2023-11-14 12:58:45 +01:00
|
|
|
group.arguments = ["argument_list", "generator_expression"]
|
|
|
|
group.string = ["string", "concatenated_string"]
|
2023-11-13 18:52:48 +01:00
|
|
|
group.number = ["integer", "float"]
|
|
|
|
group.type = ["type", "generic_type"]
|
|
|
|
|
2023-12-21 14:13:57 +01:00
|
|
|
[filetype.javascript]
|
|
|
|
group.identifier = ["identifier"]
|
2023-12-21 14:22:42 +01:00
|
|
|
group.declaration = ["function_declaration", "generator_function_declaration", "class_declaration", "lexical_declaration", "variable_declaration"]
|
|
|
|
group.statement = ["export_statement", "import_statement", "debugger_statement", "expression_statement", "declaration", "statement_block", "if_statement", "switch_statement", "for_statement", "for_in_statement", "while_statement", "do_statement", "try_statement", "with_statement", "break_statement", "continue_statement", "return_statement", "throw_statement", "empty_statement", "labeled_statement"]
|
2023-12-21 14:13:57 +01:00
|
|
|
group.call = ["call_expression"]
|
|
|
|
group.arguments = ["arguments", "template_string"]
|
|
|
|
group.string = ["string", "template_string"]
|
|
|
|
group.number = ["number"]
|
|
|
|
group.type = []
|