feat(snakemake): update queries (#8106)

also add indent tests
This commit is contained in:
osthomas 2025-09-07 13:58:28 +02:00 committed by GitHub
parent 939556333f
commit fee71c102c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 171 additions and 20 deletions

View file

@ -63,20 +63,20 @@ body: (_
; directive labels in wildcard context
((wildcard
(identifier) @label)
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards"))
(#any-of? @label "input" "jobid" "log" "output" "params" "resources" "rule" "threads" "wildcards"))
((wildcard
(attribute
object: (identifier) @label))
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards"))
(#any-of? @label "input" "jobid" "log" "output" "params" "resources" "rule" "threads" "wildcards"))
((wildcard
(subscript
value: (identifier) @label))
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards"))
(#any-of? @label "input" "jobid" "log" "output" "params" "resources" "rule" "threads" "wildcards"))
; directive labels in block context (eg. within 'run:')
((identifier) @label
(#any-of? @label "input" "log" "output" "params" "resources" "threads" "wildcards")
(#any-of? @label "input" "jobid" "log" "output" "params" "resources" "rule" "threads" "wildcards")
(#has-ancestor? @label "directive")
(#has-ancestor? @label "block"))