mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat: add idl
This commit is contained in:
parent
0883ff0565
commit
37ac5f1f9f
4 changed files with 224 additions and 0 deletions
8
queries/idl/injections.scm
Normal file
8
queries/idl/injections.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
((comment) @injection.content
|
||||
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
||||
(#set! injection.language "doxygen"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#not-lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
||||
(#not-lua-match? @injection.content "//@[a-zA-Z]")
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue