mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
58 lines
1.2 KiB
Scheme
58 lines
1.2 KiB
Scheme
|
; function.inside & around
|
||
|
; ------------------------
|
||
|
|
||
|
(static_function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(init_function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(bounced_function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(receive_function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(external_function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
; class.inside & around
|
||
|
; ---------------------
|
||
|
|
||
|
(struct
|
||
|
body: (_) @class.inside) @class.around
|
||
|
|
||
|
(message
|
||
|
body: (_) @class.inside) @class.around
|
||
|
|
||
|
(contract
|
||
|
body: (_) @class.inside) @class.around
|
||
|
|
||
|
; NOTE: Marked as @definition.interface in tags, as it's semantically correct
|
||
|
(trait
|
||
|
body: (_) @class.inside) @class.around
|
||
|
|
||
|
; parameter.inside & around
|
||
|
; -------------------------
|
||
|
|
||
|
(parameter_list
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(argument_list
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(instance_argument_list
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
; comment.inside
|
||
|
; --------------
|
||
|
|
||
|
(comment) @comment.inside
|
||
|
|
||
|
; comment.around
|
||
|
; --------------
|
||
|
|
||
|
(comment)+ @comment.around
|