mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
feat(c-family): inherit injections
This commit is contained in:
parent
1a91c323d2
commit
2160b26453
6 changed files with 6 additions and 26 deletions
|
|
@ -1,5 +1 @@
|
|||
((preproc_arg) @injection.content
|
||||
(#set! injection.language "arduino"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
; inherits: cpp
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
((preproc_arg) @injection.content
|
||||
(#set! injection.language "c"))
|
||||
(#set! injection.self))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
((preproc_arg) @injection.content
|
||||
(#set! injection.language "cpp"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
; inherits: c
|
||||
|
||||
((comment) @injection.content
|
||||
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
((preproc_arg) @injection.content
|
||||
(#set! injection.language "cuda"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
; inherits: cpp
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
((preproc_arg) @injection.content
|
||||
(#set! injection.language "glsl"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
; inherits: c
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
((preproc_arg) @injection.content
|
||||
(#set! injection.language "hlsl"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
; inherits: cpp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue