mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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
|
; inherits: cpp
|
||||||
(#set! injection.language "arduino"))
|
|
||||||
|
|
||||||
((comment) @injection.content
|
|
||||||
(#set! injection.language "comment"))
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
((preproc_arg) @injection.content
|
((preproc_arg) @injection.content
|
||||||
(#set! injection.language "c"))
|
(#set! injection.self))
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
((preproc_arg) @injection.content
|
; inherits: c
|
||||||
(#set! injection.language "cpp"))
|
|
||||||
|
|
||||||
((comment) @injection.content
|
|
||||||
(#set! injection.language "comment"))
|
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
((preproc_arg) @injection.content
|
; inherits: cpp
|
||||||
(#set! injection.language "cuda"))
|
|
||||||
|
|
||||||
((comment) @injection.content
|
|
||||||
(#set! injection.language "comment"))
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
((preproc_arg) @injection.content
|
; inherits: c
|
||||||
(#set! injection.language "glsl"))
|
|
||||||
|
|
||||||
((comment) @injection.content
|
|
||||||
(#set! injection.language "comment"))
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
((preproc_arg) @injection.content
|
; inherits: cpp
|
||||||
(#set! injection.language "hlsl"))
|
|
||||||
|
|
||||||
((comment) @injection.content
|
|
||||||
(#set! injection.language "comment"))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue