aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/query/test.scm
blob: 56d755690047928a851cb8f4d0cbedd105f3d6c5 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
; vim:ft=query
; format-ignore
(fenced_code_block (fenced_code_block_delimiter) @label
  (info_string
    (language) @_lang)
  (#offset! @label 0 1 0 -1)
  (#ft-conceal! @_lang))

([
  (list_marker_minus)
  (list_marker_plus)
  (list_marker_star)
] @markup.list
  (#offset-first-n! @markup.list 1)
  (#set! conceal "•"))

(list
  (list_item
    (list
      (list_item
        ([
          (list_marker_minus)
          (list_marker_plus)
          (list_marker_star)
        ] @markup.list
          (#offset-first-n! @markup.list 1)
          (#set! conceal "◦"))))))

; comment
(while_statement
  [
    "while"
    "do"
  ] @open.loop
  "end" @close.loop) @scope.loop

[
  "toplevel"
  "list"
] @variable

[
  (parent
    (child))+
  (parent
    (child))*
  (parent
    (child))?
] @cap
((