summaryrefslogtreecommitdiff
path: root/vendor/queries/typst/textobjects.scm
blob: 64c99275fbe51de34c20b42dd18c745dded8be76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/typst/textobjects.scm.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).

(let
  pattern: (call)
  value: (_) @function.inside) @function.around

(call
  (group
    ((_) @parameter.inside . ","? @parameter.around) @parameter.around))

(lambda
  pattern: 
    (group
      ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
  value: (_) @function.inside) @function.around

(group
  [
    (tagged (_) @entry.inside)
    (_)
  ] @entry.around)

(comment) @comment.inside

(comment)+ @comment.around