21 lines
1.5 KiB
TOML
21 lines
1.5 KiB
TOML
[filetype.rust]
|
|
group.identifier = ["identifier", "scoped_identifier"]
|
|
group.declaration = ["const_item", "macro_definition", "mod_item", "foreign_mod_item", "struct_item", "union_item", "enum_item", "type_item", "function_item", "function_signature_item", "impl_item", "trait_item", "associated_type", "let_declaration", "use_declaration", "extern_crate_declaration", "static_item"]
|
|
group.call = ["macro_invocation", "call_expression"]
|
|
group.arguments = ["arguments", "token_tree", "parameters"]
|
|
group.statement = ["expression_statement", "let_declaration"]
|
|
group.string = ["string_literal", "raw_string_literal"]
|
|
group.number = ["integer_literal", "float_literal", "negative_literal"]
|
|
group.type = ["abstract_type", "reference_type", "metavariable", "pointer_type", "generic_type", "scoped_type_identifier", "tuple_type", "unit_type", "array_type", "function_type", "macro_invocation", "empty_type", "dynamic_type", "bounded_type", "primitive_type"]
|
|
|
|
[filetype.python]
|
|
group.identifier = ["identifier"]
|
|
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"]
|
|
group.call = ["call"]
|
|
group.arguments = ["argument_list", "generator_expression"]
|
|
group.string = ["string", "concatenated_string"]
|
|
group.number = ["integer", "float"]
|
|
group.type = ["type", "generic_type"]
|
|
|