mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
feat: add udev rules parser
This commit is contained in:
parent
e903dd54e9
commit
9a746b4b6a
5 changed files with 78 additions and 0 deletions
12
queries/udev/injections.scm
Normal file
12
queries/udev/injections.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((match
|
||||
key: "PROGRAM"
|
||||
(value (content) @injection.content))
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
((assignment
|
||||
key: "RUN"
|
||||
(value (content) @injection.content))
|
||||
(#set! injection.language "bash"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue