Skip to content

Commit ce927d9

Browse files
committed
feat(vscode): Add configuration defaults for editor.tokenColorCustomizations and editor.semanticTokenColorCustomizations
This leads to better syntax highlighting in Robotframework files.
1 parent 2c80c2e commit ce927d9

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

package.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,104 @@
8080
"editor.wordBasedSuggestions": false,
8181
"editor.semanticHighlighting.enabled": true,
8282
"editor.inlayHints.enabled": "offUnlessPressed"
83+
},
84+
"editor.tokenColorCustomizations": {
85+
"textMateRules": [
86+
{
87+
"scope": "comment.line.configuration.robotframework",
88+
"settings": {
89+
"fontStyle": "bold"
90+
}
91+
},
92+
{
93+
"scope": "variable.function.keyword-call.inner.robotframework",
94+
"settings": {
95+
"fontStyle": "italic"
96+
}
97+
},
98+
{
99+
"scope": "string.unquoted.embeddedArgument.robotframework",
100+
"settings": {
101+
"fontStyle": "italic"
102+
}
103+
},
104+
{
105+
"scope": "variable.function.keyword-call.robotframework",
106+
"settings": {
107+
}
108+
},
109+
{
110+
"scope": "entity.name.function.testcase.name.robotframework",
111+
"settings": {
112+
"fontStyle": "bold underline"
113+
}
114+
},
115+
{
116+
"scope": "entity.name.function.keyword.name.robotframework",
117+
"settings": {
118+
"fontStyle": "italic underline"
119+
}
120+
},
121+
{
122+
"scope": "variable.other.readwrite.robotframework",
123+
"settings": {
124+
}
125+
},
126+
{
127+
"scope": "keyword.control.import.robotframework",
128+
"settings": {
129+
"fontStyle": "italic"
130+
}
131+
},
132+
{
133+
"scope": "keyword.other.header.setting.robotframework",
134+
"settings": {
135+
"fontStyle": "bold underline"
136+
}
137+
},
138+
{
139+
"scope": "keyword.other.header.variable.robotframework",
140+
"settings": {
141+
"fontStyle": "bold underline"
142+
}
143+
},
144+
{
145+
"scope": "keyword.other.header.testcase.robotframework",
146+
"settings": {
147+
"fontStyle": "bold underline"
148+
}
149+
},
150+
{
151+
"scope": "keyword.other.header.keyword.robotframework",
152+
"settings": {
153+
"fontStyle": "bold underline"
154+
}
155+
},
156+
{
157+
"scope": "keyword.other.header.setting.robotframework",
158+
"settings": {
159+
"fontStyle": "bold underline"
160+
}
161+
},
162+
{
163+
"scope": "keyword.other.header.comment.robotframework",
164+
"settings": {
165+
"fontStyle": "bold italic underline"
166+
}
167+
},
168+
{
169+
"scope": "constant.character.escape.robotframework",
170+
"settings": {
171+
}
172+
}
173+
]
174+
},
175+
"editor.semanticTokenColorCustomizations": {
176+
"rules": {
177+
"*.documentation:robotframework": {
178+
"fontStyle": "italic"
179+
}
180+
}
83181
}
84182
},
85183
"semanticTokenModifiers": [

0 commit comments

Comments
 (0)