mirror of
https://github.com/helix-editor/helix
synced 2026-08-04 14:27:07 +02:00
33 lines
663 B
Scheme
33 lines
663 B
Scheme
; Value/function definitions
|
|
(value_definition) @function.around
|
|
(value_definition
|
|
(let_binding
|
|
body: (_) @function.inside))
|
|
|
|
(fun_expression
|
|
body: (_) @function.inside) @function.around
|
|
|
|
(function_expression) @function.around
|
|
|
|
(method_definition
|
|
body: (_) @function.inside) @function.around
|
|
|
|
; Types and modules
|
|
(type_definition) @class.around
|
|
(type_definition
|
|
(type_binding
|
|
body: (_) @class.inside))
|
|
|
|
(module_definition) @class.around
|
|
(module_definition
|
|
(module_binding
|
|
body: (_) @class.inside))
|
|
|
|
; Parameters
|
|
(parameter) @parameter.around
|
|
(parameter
|
|
pattern: (_) @parameter.inside)
|
|
|
|
(comment) @comment.inside
|
|
(comment)+ @comment.around
|