| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
[ |
| 5 |
"rule" |
| 6 |
"checkpoint" |
| 7 |
"module" |
| 8 |
] @keyword |
| 9 |
|
| 10 |
|
| 11 |
(module |
| 12 |
(directive |
| 13 |
name: _ @keyword)) |
| 14 |
|
| 15 |
|
| 16 |
((_) |
| 17 |
body: (_ |
| 18 |
(directive |
| 19 |
name: _ @label))) |
| 20 |
|
| 21 |
|
| 22 |
(rule_definition |
| 23 |
name: (identifier) @type) |
| 24 |
|
| 25 |
(module_definition |
| 26 |
name: (identifier) @type) |
| 27 |
|
| 28 |
(checkpoint_definition |
| 29 |
name: (identifier) @type) |
| 30 |
|
| 31 |
|
| 32 |
(rule_import |
| 33 |
"use" @keyword.control.import |
| 34 |
"rule" @keyword.control.import |
| 35 |
"from" @keyword.control.import |
| 36 |
"exclude"? @keyword.control.import |
| 37 |
"as"? @keyword.control.import |
| 38 |
"with"? @keyword.control.import) |
| 39 |
|
| 40 |
|
| 41 |
(rule_inheritance |
| 42 |
"use" @keyword |
| 43 |
"rule" @keyword |
| 44 |
"with" @keyword) |
| 45 |
|
| 46 |
|
| 47 |
(wildcard (identifier) @variable) |
| 48 |
(wildcard (flag) @variable.parameter.builtin) |
| 49 |
|
| 50 |
|
| 51 |
((identifier) @variable.builtin |
| 52 |
(#any-of? @variable.builtin "checkpoints" "config" "gather" "rules" "scatter" "workflow")) |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
((wildcard |
| 61 |
(identifier) @label) |
| 62 |
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards")) |
| 63 |
|
| 64 |
((wildcard |
| 65 |
(attribute |
| 66 |
object: (identifier) @label)) |
| 67 |
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards")) |
| 68 |
|
| 69 |
((wildcard |
| 70 |
(subscript |
| 71 |
value: (identifier) @label)) |
| 72 |
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards")) |
| 73 |
|
| 74 |
|
| 75 |
((identifier) @label |
| 76 |
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards")) |