mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
parent
939556333f
commit
fee71c102c
6 changed files with 171 additions and 20 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue