mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
fix(c): improve doxygen comment matching (#6278)
This commit is contained in:
parent
488bec0325
commit
b781fd0582
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
(#set! injection.language "re2c"))
|
(#set! injection.language "re2c"))
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
||||||
(#set! injection.language "doxygen"))
|
(#set! injection.language "doxygen"))
|
||||||
|
|
||||||
((call_expression
|
((call_expression
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
||||||
(#set! injection.language "doxygen"))
|
(#set! injection.language "doxygen"))
|
||||||
|
|
||||||
(raw_string_literal
|
(raw_string_literal
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue