Skip to content

Commit 0e32e41

Browse files
committed
fix(vscode): corrected tmlanguage to color variables in variables section
closes #341
1 parent dbce6a3 commit 0e32e41

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

syntaxes/robotframework.tmLanguage.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"variable_setting": {
55
"name": "meta.variable.assign.robotframework",
66
"contentName": "string.unquoted.argument.robotframework",
7-
"begin": "^([$@&]\\{)(.*?)(\\})(=?)(?= {2}| ?\\t| ?$)",
7+
"begin": "^([$@&]\\{)(.*?)(\\})( ?=?)",
88
"beginCaptures": {
99
"1": { "name": "punctuation.definition.variable.begin.robotframework" },
1010
"2": { "name": "variable.name.readwrite.robotframework", "patterns": [{"include": "#variables"}] },
@@ -379,7 +379,6 @@
379379
"begin": "(?<=\\s)(?=\\s*(?:(?=[$@&])))((?:\\s)*(?:[$&@]{(?:.*?)}(?:\\[.*?\\])?(?: ?=?\\s*))*)(.*?)(?: {2,}| ?\\t ?|$)",
380380
"beginCaptures": {
381381
"1": {
382-
"name": "variable.name.readwrite.robotframework",
383382
"patterns": [ { "include": "#variable_assignment_from_kw" } ]
384383
},
385384
"2": { "name": "entity.name.function.keyword-call.robotframework" }
@@ -397,8 +396,7 @@
397396
"end": "(?:( ?=)|(?: {2,}| ?\\t+ ?| ?$)(?![#$@& \\n\\r]|\\.\\.\\.)|^(?=\\.\\.\\.)( {2,}| ?\\t+ ?| ?$)(?![#$@&]))",
398397
"endCaptures": { "1": { "name": "keyword.operator.robotframework" } },
399398
"patterns": [
400-
{ "include": "#line_continuation" },
401-
{ "include": "#comment" }
399+
{ "include": "#variables" }
402400
]
403401
},
404402
"line_continuation": {

syntaxes/robotframework.tmLanguage.template.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"variable_setting": {
55
"name": "meta.variable.assign.robotframework",
66
"contentName": "string.unquoted.argument.robotframework",
7-
"begin": "^([$@&]\\{)(.*?)(\\})(=?)(?= {2}| ?\\t| ?$)",
7+
"begin": "^([$@&]\\{)(.*?)(\\})( ?=?)",
88
"beginCaptures": {
99
"1": { "name": "punctuation.definition.variable.begin.robotframework" },
1010
"2": { "name": "variable.name.readwrite.robotframework", "patterns": [{"include": "#variables"}] },
@@ -379,7 +379,6 @@
379379
"begin": "(?<=\\s)(?=\\s*(?:(?=[$@&])))((?:\\s)*(?:[$&@]{(?:.*?)}(?:\\[.*?\\])?(?: ?=?\\s*))*)(.*?)(?: {2,}| ?\\t ?|$)",
380380
"beginCaptures": {
381381
"1": {
382-
"name": "variable.name.readwrite.robotframework",
383382
"patterns": [ { "include": "#variable_assignment_from_kw" } ]
384383
},
385384
"2": { "name": "entity.name.function.keyword-call.robotframework" }
@@ -397,8 +396,7 @@
397396
"end": "(?:( ?=)|(?: {2,}| ?\\t+ ?| ?$)(?![#$@& \\n\\r]|\\.\\.\\.)|^(?=\\.\\.\\.)( {2,}| ?\\t+ ?| ?$)(?![#$@&]))",
398397
"endCaptures": { "1": { "name": "keyword.operator.robotframework" } },
399398
"patterns": [
400-
{ "include": "#line_continuation" },
401-
{ "include": "#comment" }
399+
{ "include": "#variables" }
402400
]
403401
},
404402
"line_continuation": {

0 commit comments

Comments
 (0)