Change summary
crates/languages/src/c/injections.scm | 5 +++--
crates/languages/src/cpp/injections.scm | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
Detailed changes
@@ -1,6 +1,7 @@
((comment) @injection.content
- (#set! injection.language "comment")
-)
+ (#match? @injection.content "^(///|//!|/\\*\\*|/\\*!)(.*)")
+ (#set! injection.language "doxygen")
+ (#set! injection.include-children))
(preproc_def
value: (preproc_arg) @injection.content
@@ -1,6 +1,7 @@
((comment) @injection.content
- (#set! injection.language "comment")
-)
+ (#match? @injection.content "^(///|//!|/\\*\\*|/\\*!)(.*)")
+ (#set! injection.language "doxygen")
+ (#set! injection.include-children))
(preproc_def
value: (preproc_arg) @injection.content