1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-07 20:46:21 +01:00
helix/runtime/queries/amber/textobjects.scm
2025-12-07 12:44:29 +09:00

24 lines
539 B
Scheme

; Functions - capture both definition and body
(function_definition
body: (_) @function.inside) @function.around
; Function parameters in definitions
(function_parameter_list
(function_parameter_list_item) @parameter.inside)
; Function call arguments
(parameter_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
; Comments
(comment) @comment.inside
(comment)+ @comment.around
; Arrays
(array
(_) @entry.around)
; Main Block looks like a function
(main_block
(block) @function.inside) @function.around