Skip to content

Commit 45243e5

Browse files
committed
feat(vscode): enable bracket coloring and matching in keyword arguments
closes #229
1 parent 1f21ace commit 45243e5

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

language-configuration.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
},
66
// symbols used as brackets
77
"brackets": [
8+
["${{", "}}"],
89
["${", "}"],
910
["@{", "}"],
1011
["%{", "}"],
@@ -13,8 +14,19 @@
1314
["[", "]"],
1415
["(", ")"]
1516
],
17+
"colorizedBracketPairs": [
18+
["${{", "}}"],
19+
["${", "}"],
20+
["@{", "}"],
21+
["%{", "}"],
22+
["&{", "}"],
23+
["{", "}"],
24+
["[", "]"],
25+
["(", ")"]
26+
],
1627
// symbols that are auto closed when typing
1728
"autoClosingPairs": [
29+
["${{", "}}"],
1830
["${", "}"],
1931
["@{", "}"],
2032
["%{", "}"],
@@ -27,6 +39,7 @@
2739
],
2840
// symbols that can be used to surround a selection
2941
"surroundingPairs": [
42+
["${{", "}}"],
3043
["${", "}"],
3144
["@{", "}"],
3245
["%{", "}"],

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,13 @@
337337
{
338338
"language": "robotframework",
339339
"scopeName": "source.robotframework",
340-
"path": "./syntaxes/robotframework.tmLanguage.json"
340+
"path": "./syntaxes/robotframework.tmLanguage.json",
341+
"tokenTypes": {
342+
"string.unquoted.argument.robotframework": "other"
343+
},
344+
"embeddedLanguages": {
345+
"meta.expression.robotframework": "python"
346+
}
341347
}
342348
],
343349
"keybindings": [

0 commit comments

Comments
 (0)