diff --git a/test/semantic/README.md b/test/semantic/README.md new file mode 100644 index 0000000..6b5e6cd --- /dev/null +++ b/test/semantic/README.md @@ -0,0 +1 @@ +# Test files for Sematic highlighting \ No newline at end of file diff --git a/test/semantic/test.js b/test/semantic/test.js new file mode 100644 index 0000000..1737849 --- /dev/null +++ b/test/semantic/test.js @@ -0,0 +1,16 @@ +function test(param1) { + const unused_variable = "test" + const readonly_variable = "test" + let variable = "test" + + console.log(param1) // Function parameter + console.log(readonly_variable) // Readonly variable (constant) + console.log(variable) // Writable variable +} + +class Test { + constructor() { + // nut + this._nut = "butter" + } +} \ No newline at end of file diff --git a/themes/ecksClone-pastel-dark-color-theme.json b/themes/ecksClone-pastel-dark-color-theme.json index 6639458..94c0559 100644 --- a/themes/ecksClone-pastel-dark-color-theme.json +++ b/themes/ecksClone-pastel-dark-color-theme.json @@ -4,6 +4,12 @@ "include": "./_dark_ui.json", "colors": { }, + "semanticTokenColors": { + "parameter": "#d18b2f", + "variable": "#F07178", + "property": "#FFFFFF" + }, + "semanticHighlighting": true, "tokenColors": [ { "name": "Comment",