mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Add injection queries for macro bodies in C and C++
This commit is contained in:
parent
61b70b7e2d
commit
f96c19b81a
2 changed files with 14 additions and 0 deletions
7
crates/zed/src/languages/c/injections.scm
Normal file
7
crates/zed/src/languages/c/injections.scm
Normal file
|
@ -0,0 +1,7 @@
|
|||
(preproc_def
|
||||
value: (preproc_arg) @content
|
||||
(#set! "language" "c"))
|
||||
|
||||
(preproc_function_def
|
||||
value: (preproc_arg) @content
|
||||
(#set! "language" "c"))
|
7
crates/zed/src/languages/cpp/injections.scm
Normal file
7
crates/zed/src/languages/cpp/injections.scm
Normal file
|
@ -0,0 +1,7 @@
|
|||
(preproc_def
|
||||
value: (preproc_arg) @content
|
||||
(#set! "language" "c++"))
|
||||
|
||||
(preproc_function_def
|
||||
value: (preproc_arg) @content
|
||||
(#set! "language" "c++"))
|
Loading…
Reference in a new issue