Skip to content

Commit aaba753

Browse files
authored
Update kdoc keywords according to https://kotlinlang.org/docs/kotlin-doc.html
1 parent 77ecc25 commit aaba753

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

grammars/Kotlin.tmLanguage.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,22 @@
173173
"name": "comment.block.javadoc.kotlin",
174174
"patterns": [
175175
{
176-
"match": "@(author|deprecated|return|see|serial|since|version)\\b",
176+
"match": "@(return|constructor|receiver|sample|see|author|since|suppress)\\b",
177177
"name": "keyword.other.documentation.javadoc.kotlin"
178178
},
179179
{
180-
"match": "(@param)\\s+(\\S+)",
180+
"match": "(@param|@property)\\s+(\\S+)",
181+
"captures": {
182+
"1": {
183+
"name": "keyword.other.documentation.javadoc.kotlin"
184+
},
185+
"2": {
186+
"name": "variable.parameter.kotlin"
187+
}
188+
}
189+
},
190+
{
191+
"match": "(@param)\\[(\\S+)\\]",
181192
"captures": {
182193
"1": {
183194
"name": "keyword.other.documentation.javadoc.kotlin"

0 commit comments

Comments
 (0)