Debian Codegraph @

runtime/queries/ohm/textobjects.scm

raw symbols SCIP
1 ; See: https://docs.helix-editor.com/guides/textobject.html
2
3 ; function.inside & around
4 ; ------------------------
5
6 (rule
7 body: (_) @function.inside) @function.around
8
9 ; class.inside & around
10 ; ---------------------
11
12 (grammar
13 body: (_) @class.inside) @class.around
14
15 ; parameter.inside & around
16 ; -------------------------
17
18 (formals
19 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
20
21 (rule_body
22 ((_) @parameter.inside . "|"? @parameter.around) @parameter.around)
23
24 (params
25 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
26
27 (alt
28 ((_) @parameter.inside . "|"? @parameter.around) @parameter.around)
29
30 ; comment.inside
31 ; --------------
32
33 (multiline_comment)+ @comment.inside
34 (singleline_comment)+ @comment.inside
35
36 ; comment.around
37 ; --------------
38
39 (multiline_comment)+ @comment.around
40 (singleline_comment)+ @comment.around