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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user