Unnamed repository; edit this file 'description' to name the repository.
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
51
52
53
54
55
56
57
58
59
60
61
62
63
; match/exclude regex with regular string
(node
  (identifier) @_section_name
  (#any-of? @_section_name "window-rule" "layer-rule")
  children: (node_children
    (node
      (identifier) @_node_name
      (#any-of? @_node_name "match" "exclude")
      (node_field
        (prop
          (identifier) @_prop_name
          (#any-of? @_prop_name "app-id" "title" "namespace")
          (value
            (string
              (string_fragment) @injection.content
              (#set! injection.language "regex")
            )
          )
        )
      )
    )
  )
)

(node
  (identifier) @_section
  (#eq? @_section "binds")
  children: (node_children
    (node
      (identifier)
      children: (node_children
        (node
          (identifier) @_action_name
          (#eq? @_action_name "spawn")
          (node_field
            (value
              (string
                (string_fragment) @_executable
                (#eq? @_executable "fish")
              )
            )
          )
          (node_field
            (value
              (string
                (string_fragment) @_flag
                (#eq? @_flag "-c")
              )
            )
          )
          (node_field
            (value
              (string
                (string_fragment) @injection.content
                (#set! injection.language "fish")
              )
            )
          )
        )
      )
    )
  )
)