Add Doxygen injection into C and C++ comments (#43581)

Release Notes:

- C/C++ files now support Doxygen grammars (if a Doxygen extension is installed).
This commit is contained in:
Clément Lap
2025-12-01 23:32:23 +01:00
committed by GitHub
parent 6eb9f9add7
commit fd146757cf
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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