mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
||||
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
||||
(#set! injection.language "doxygen"))
|
||||
|
||||
((call_expression
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
(#set! injection.language "comment"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
||||
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
||||
(#set! injection.language "doxygen"))
|
||||
|
||||
(raw_string_literal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue