diff --git a/package.json b/package.json index 0369cdf..862bea0 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,15 @@ "vsce": "^1.75.0" }, "contributes": { + "semanticTokenTypes": [{ + "id": "punctuation", + "description": "Punctuation symbols" + }], + "semanticTokenScopes": [{ + "scopes": { + "punctuation": ["punctuation"] + } + }], "colors": [ { "id": "syntax.type", diff --git a/src/extension.ts b/src/extension.ts index e413523..df7d48d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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[] = [];