Skip to content

Commit 42aedf0

Browse files
authored
feat: Add Doxygen support (#578)
1 parent 289d547 commit 42aedf0

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,3 +600,9 @@
600600
update = none
601601
ignore = dirty
602602
branch = main
603+
[submodule "repos/doxygen"]
604+
path = repos/doxygen
605+
url = https://github.com/tree-sitter-grammars/tree-sitter-doxygen
606+
update = none
607+
ignore = dirty
608+
branch = master

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## Unreleased
4+
- Add `Doxygen` support
45

56
## 0.12.186 - 2024-05-02
67
- Add `comment` support

queries/doxygen/highlights.scm

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
((tag_name) @keyword
2+
(#set! "priority" 105))
3+
4+
[
5+
"@code"
6+
"@endcode"
7+
] @keyword
8+
9+
(identifier) @variable
10+
11+
((tag
12+
(tag_name) @_param
13+
(identifier) @parameter)
14+
(#any-of? @_param "@param" "\\param"))
15+
16+
(function (identifier) @function)
17+
18+
(function_link) @function
19+
20+
(emphasis) @text.emphasis
21+
22+
[
23+
"\\a"
24+
"\\c"
25+
] @tag
26+
27+
(code_block_language) @label
28+
29+
[
30+
"in"
31+
"out"
32+
"inout"
33+
] @storageclass
34+
35+
"~" @operator
36+
37+
[
38+
"<a"
39+
">"
40+
"</a>"
41+
] @tag
42+
43+
[
44+
"."
45+
","
46+
"::"
47+
(code_block_start)
48+
(code_block_end)
49+
] @punctuation.delimiter
50+
51+
[ "(" ")" "{" "}" "[" "]" ] @punctuation.bracket
52+
53+
(code_block_content) @none

repos/doxygen

Submodule doxygen added at 4a30eba

0 commit comments

Comments
 (0)