Skip to content

Commit 6874829

Browse files
committed
U608-011 Highlight gnatdoc tags
1 parent 892e384 commit 6874829

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

integration/vscode/ada/syntaxes/ada.tmLanguage.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
"patterns": [
1212
{
1313
"name": "comment.line.ada",
14-
"match": "--[^\\n\\r]*"
14+
"begin": "--",
15+
"end": "[\\n\\r]",
16+
"patterns": [
17+
{
18+
"include": "#gnatdoc_tag"
19+
}
20+
]
1521
},
1622
{
1723
"name": "constant.numeric.ada",
@@ -85,6 +91,15 @@
8591
"based_literal": {
8692
"name": "constant.numeric.ada",
8793
"match": "\\d[0-9_]*#[0-9a-fA-F][0-9a-fA-F_]*(\\.[0-9a-fA-F][0-9a-fA-F_]*)?#([eE][-+]?\\d[0-9_]*)?"
94+
},
95+
"gnatdoc_tag": {
96+
"name": "comment.gnatdoc.tag.ada",
97+
"match": "@(description|format|group|noformat|private|return|summary)|@(enum|exception|field|formal|image|param)[\\t ]+([^\\t ]*)",
98+
"captures": {
99+
"3": {
100+
"name": "comment.gnatdoc.id.ada"
101+
}
102+
}
88103
}
89104
}
90-
}
105+
}

0 commit comments

Comments
 (0)