Skip to content

Commit 4f144c4

Browse files
committed
fix(langserver): change scope name of argument tokens to allow better automatic opening of completions
1 parent 89eeeb4 commit 4f144c4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
}
115115
},
116116
{
117-
"scope": "string.unquoted.embeddedArgument.robotframework",
117+
"scope": "constant.character.embeddedArgument.robotframework",
118118
"settings": {
119119
"fontStyle": "italic"
120120
}
@@ -182,7 +182,7 @@
182182
}
183183
},
184184
{
185-
"scope": "constant.character.escape.robotframework",
185+
"scope": "constant.character.character.escape.robotframework",
186186
"settings": {}
187187
}
188188
]
@@ -245,10 +245,10 @@
245245
"keyword.operator.for.robotframework"
246246
],
247247
"argument": [
248-
"string.unquoted.argument.robotframework"
248+
"constant.character.argument.robotframework"
249249
],
250250
"embeddedArgument": [
251-
"string.unquoted.embeddedArgument.robotframework"
251+
"constant.character.embeddedArgument.robotframework"
252252
],
253253
"variable": [
254254
"variable.other.readwrite.robotframework"
@@ -279,7 +279,7 @@
279279
"punctuation.definition.variable.end.robotframework"
280280
],
281281
"escape": [
282-
"constant.character.escape.robotframework"
282+
"constant.character.character.escape.robotframework"
283283
],
284284
"namespace": [
285285
"entity.other.namespace.robotframework"

syntaxes/robotframework.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
},
141141
"keyword_call": {
142142
"name": "meta.keyword-call.content.robotframework",
143-
"contentName": "string.unquoted.argument.robotframework",
143+
"contentName": "constant.character.argument.robotframework",
144144
"begin": "^(?!(?: {2,}| ?\\t ?)+(?:(?=[$\\[@&%]|\\.)))(?: {2,}| ?\\t ?)+(.*?)(?= {2,}| ?\\t ?| ?$)",
145145
"end": "^(?!\\s*\\.\\.\\.)",
146146
"beginCaptures": {
@@ -173,7 +173,7 @@
173173
},
174174
"returning_keyword": {
175175
"name": "meta.returning-keyword.robotframework",
176-
"contentName": "string.unquoted.argument.robotframework",
176+
"contentName": "constant.character.argument.robotframework",
177177
"begin": "(?<=\\s)(?=\\s*(?:(?=[$@&])))((?:\\s)*(?:[$&@]{(?:.*?)}(?:\\[.*?\\])?(?: ?=?\\s*))*)(.*?)(?: {2,}| ?\\t ?|$)",
178178
"beginCaptures": {
179179
"1": {

0 commit comments

Comments
 (0)