Skip to content

Commit

Permalink
Punctuation token type.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniyPeshkov committed Sep 30, 2020
1 parent 046a4d9 commit 28bf9c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@
"vsce": "^1.75.0"
},
"contributes": {
"semanticTokenTypes": [{
"id": "punctuation",
"description": "Punctuation symbols"
}],
"semanticTokenScopes": [{
"scopes": {
"punctuation": ["punctuation"]
}
}],
"colors": [
{
"id": "syntax.type",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function buildLegend() {
termMap.set("control", { type: "keyword" });
termMap.set("operator", { type: "operator" });
termMap.set("modifier", { type: "type", modifiers: ["modification"] });
termMap.set("punctuation", { type: "label" });
termMap.set("punctuation", { type: "punctuation" });
// Tokens and modifiers in use
let tokens: string[] = [];
let modifiers: string[] = [];
Expand Down

0 comments on commit 28bf9c3

Please sign in to comment.