feat(c-family): inherit injections

This commit is contained in:
ObserverOfTime 2023-08-19 19:48:32 +03:00 committed by Christian Clason
parent 1a91c323d2
commit 2160b26453
6 changed files with 6 additions and 26 deletions

View file

@ -1,5 +1 @@
((preproc_arg) @injection.content
(#set! injection.language "arduino"))
((comment) @injection.content
(#set! injection.language "comment"))
; inherits: cpp

View file

@ -1,5 +1,5 @@
((preproc_arg) @injection.content
(#set! injection.language "c"))
(#set! injection.self))
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -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]")

View file

@ -1,5 +1 @@
((preproc_arg) @injection.content
(#set! injection.language "cuda"))
((comment) @injection.content
(#set! injection.language "comment"))
; inherits: cpp

View file

@ -1,5 +1 @@
((preproc_arg) @injection.content
(#set! injection.language "glsl"))
((comment) @injection.content
(#set! injection.language "comment"))
; inherits: c

View file

@ -1,5 +1 @@
((preproc_arg) @injection.content
(#set! injection.language "hlsl"))
((comment) @injection.content
(#set! injection.language "comment"))
; inherits: cpp