Skip to content

Commit

Permalink
Add semantic tokens for records and constructors
Browse files Browse the repository at this point in the history
Signed-off-by: 0dinD <zerodind@gmail.com>
  • Loading branch information
0dinD authored and fbricon committed Oct 12, 2021
1 parent c24cd64 commit a312fc7
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,23 @@
},
{
"id": "annotationMember",
"superType": "function",
"superType": "method",
"description": "Style for annotation members."
},
{
"id": "modifier",
"superType": "keyword",
"description": "Style for modifier keywords."
},
{
"id": "record",
"superType": "class",
"description": "Style for records."
},
{
"id": "recordComponent",
"superType": "parameter",
"description": "Style for record components."
}
],
"semanticTokenModifiers": [
Expand Down Expand Up @@ -97,6 +107,10 @@
{
"id": "importDeclaration",
"description": "Style for symbols that are part of an import declaration."
},
{
"id": "constructor",
"description": "Style for symbols that are constructors."
}
],
"semanticTokenScopes": [
Expand All @@ -115,6 +129,9 @@
],
"keyword.documentation": [
"keyword.other.documentation.javadoc.java"
],
"*.constructor": [
"entity.name.function.java"
]
}
}
Expand Down

0 comments on commit a312fc7

Please sign in to comment.