mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
feat: add Doxygen
This commit is contained in:
parent
4d41d9bfb0
commit
a4f4fcdd3e
11 changed files with 74 additions and 3 deletions
38
queries/doxygen/highlights.scm
Normal file
38
queries/doxygen/highlights.scm
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
((tag_name) @keyword
|
||||
(#set! "priority" 105))
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
((tag
|
||||
(tag_name) @_param
|
||||
(identifier) @parameter)
|
||||
(#any-of? @_param "@param" "\\param"))
|
||||
|
||||
(function (identifier) @function)
|
||||
|
||||
(function_link) @function
|
||||
|
||||
(emphasis) @text.emphasis
|
||||
|
||||
"\\a" @tag
|
||||
|
||||
[
|
||||
"in"
|
||||
"out"
|
||||
"inout"
|
||||
] @storageclass
|
||||
|
||||
"~" @operator
|
||||
|
||||
[
|
||||
"<a"
|
||||
">"
|
||||
"</a>"
|
||||
] @tag
|
||||
|
||||
[
|
||||
","
|
||||
"::"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[ "(" ")" "[" "]" ] @punctuation.bracket
|
||||
1
queries/doxygen/indents.scm
Normal file
1
queries/doxygen/indents.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(document) @indent.auto
|
||||
8
queries/doxygen/injections.scm
Normal file
8
queries/doxygen/injections.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
((type) @injection.content
|
||||
(#set! injection.parent))
|
||||
|
||||
((function_link) @injection.content
|
||||
(#set! injection.parent))
|
||||
|
||||
((link) @injection.content
|
||||
(#set! injection.language "html"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue