| 1 |
|
| 2 |
(node |
| 3 |
(identifier) @_section_name |
| 4 |
(#any-of? @_section_name "window-rule" "layer-rule") |
| 5 |
children: (node_children |
| 6 |
(node |
| 7 |
(identifier) @_node_name |
| 8 |
(#any-of? @_node_name "match" "exclude") |
| 9 |
(node_field |
| 10 |
(prop |
| 11 |
(identifier) @_prop_name |
| 12 |
(#any-of? @_prop_name "app-id" "title" "namespace") |
| 13 |
(value |
| 14 |
(string |
| 15 |
(string_fragment) @injection.content |
| 16 |
(#set! injection.language "regex") |
| 17 |
) |
| 18 |
) |
| 19 |
) |
| 20 |
) |
| 21 |
) |
| 22 |
) |
| 23 |
) |
| 24 |
|
| 25 |
(node |
| 26 |
(identifier) @_section |
| 27 |
(#eq? @_section "binds") |
| 28 |
children: (node_children |
| 29 |
(node |
| 30 |
(identifier) |
| 31 |
children: (node_children |
| 32 |
(node |
| 33 |
(identifier) @_action_name |
| 34 |
(#eq? @_action_name "spawn") |
| 35 |
(node_field |
| 36 |
(value |
| 37 |
(string |
| 38 |
(string_fragment) @_executable |
| 39 |
(#eq? @_executable "fish") |
| 40 |
) |
| 41 |
) |
| 42 |
) |
| 43 |
(node_field |
| 44 |
(value |
| 45 |
(string |
| 46 |
(string_fragment) @_flag |
| 47 |
(#eq? @_flag "-c") |
| 48 |
) |
| 49 |
) |
| 50 |
) |
| 51 |
(node_field |
| 52 |
(value |
| 53 |
(string |
| 54 |
(string_fragment) @injection.content |
| 55 |
(#set! injection.language "fish") |
| 56 |
) |
| 57 |
) |
| 58 |
) |
| 59 |
) |
| 60 |
) |
| 61 |
) |
| 62 |
) |
| 63 |
) |
| 64 |
|
| 65 |
([ |
| 66 |
(single_line_comment) |
| 67 |
(multi_line_comment) |
| 68 |
] @injection.content |
| 69 |
(#set! injection.language "comment")) |