mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(udev): add locals queries
This commit is contained in:
parent
6498be930e
commit
78740f1895
1 changed files with 29 additions and 0 deletions
29
queries/udev/locals.scm
Normal file
29
queries/udev/locals.scm
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
;; labels
|
||||
|
||||
(assignment
|
||||
key: "LABEL"
|
||||
(value (content) @definition))
|
||||
|
||||
(assignment
|
||||
key: "GOTO"
|
||||
(value (content) @reference))
|
||||
|
||||
;; env vars
|
||||
|
||||
(assignment
|
||||
key: "ENV"
|
||||
(env_var) @definition.var)
|
||||
|
||||
(match
|
||||
key: "ENV"
|
||||
(env_var) @reference)
|
||||
|
||||
(var_sub (env_var) @reference)
|
||||
|
||||
;; misc
|
||||
|
||||
[
|
||||
(attribute)
|
||||
(kernel_param)
|
||||
(seclabel)
|
||||
] @reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue