mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +04:00
47 lines
1.3 KiB
Scheme
47 lines
1.3 KiB
Scheme
|
(function_definition (_)? @function.inside) @function.around
|
||
|
|
||
|
(short_function_definition (_)? @function.inside) @function.around
|
||
|
|
||
|
(macro_definition (_)? @function.inside) @function.around
|
||
|
|
||
|
(struct_definition (_)? @class.inside) @class.around
|
||
|
|
||
|
(abstract_definition (_)? @class.inside) @class.around
|
||
|
|
||
|
(primitive_definition (_)? @class.inside) @class.around
|
||
|
|
||
|
(parameter_list
|
||
|
; Match all children of parameter_list *except* keyword_parameters
|
||
|
([(identifier)
|
||
|
(slurp_parameter)
|
||
|
(optional_parameter)
|
||
|
(typed_parameter)
|
||
|
(tuple_expression)
|
||
|
(interpolation_expression)
|
||
|
(call_expression)]
|
||
|
@parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(keyword_parameters
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(argument_list
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(type_parameter_list
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(line_comment) @comment.inside
|
||
|
|
||
|
(line_comment)+ @comment.around
|
||
|
|
||
|
(block_comment) @comment.inside
|
||
|
|
||
|
(block_comment)+ @comment.around
|
||
|
|
||
|
(_expression (macro_identifier
|
||
|
(identifier) @_name
|
||
|
(#match? @_name "^(test|test_throws|test_logs|inferred|test_deprecated|test_warn|test_nowarn|test_broken|test_skip)$")
|
||
|
)
|
||
|
.
|
||
|
(macro_argument_list) @test.inside) @test.around
|