|
7 | 7 | "begin": "^([$@&]\\{)(.*?)(\\})( ?=?)",
|
8 | 8 | "beginCaptures": {
|
9 | 9 | "1": { "name": "punctuation.definition.variable.begin.robotframework" },
|
10 |
| - "2": { "name": "variable.name.readwrite.robotframework", "patterns": [{"include": "#variables"}] }, |
| 10 | + "2": { |
| 11 | + "name": "variable.name.readwrite.robotframework", |
| 12 | + "patterns": [ { "include": "#variables" } ] |
| 13 | + }, |
11 | 14 | "3": { "name": "punctuation.definition.variable.end.robotframework" },
|
12 | 15 | "4": { "name": "keyword.operator.robotframework" }
|
13 | 16 | },
|
|
129 | 132 | ]
|
130 | 133 | },
|
131 | 134 | "documentation_bold": {
|
132 |
| - "contentName": "markup.bold.documentation.robotframework", |
133 |
| - "begin": "(\\*)(\\**)", |
134 |
| - "end": "(\\*)*(\\*)|$", |
135 |
| - "beginCaptures": { "1": { "name": "markup.robotframework" } }, |
136 |
| - "endCaptures": { "2": { "name": "markup.robotframework" } }, |
137 |
| - "patterns": [ |
138 |
| - { "include": "#documentation_italic" }, |
139 |
| - { "include": "#escape" }, |
140 |
| - { "include": "#comment" }, |
141 |
| - { "include": "#comment_line" }, |
142 |
| - { "include": "#variables" }, |
143 |
| - { "include": "#line_continuation" } |
144 |
| - ] |
| 135 | + "match": "(?:(?<=\\s|^))(\\*)(?:(?=\\S))(.*?)(?:(?<=\\S))(\\*)(?:(?=\\s|_))", |
| 136 | + "captures": { |
| 137 | + "1": { "name": "punctuation.definition.italic.markdown" }, |
| 138 | + "2": { |
| 139 | + "name": "markup.bold.documentation.robotframework", |
| 140 | + "patterns": [ |
| 141 | + { "include": "#documentation_italic" }, |
| 142 | + { "include": "#documentation_bold" }, |
| 143 | + { "include": "#escape" }, |
| 144 | + { "include": "#comment" }, |
| 145 | + { "include": "#comment_line" }, |
| 146 | + { "include": "#variables" }, |
| 147 | + { "include": "#line_continuation" } |
| 148 | + ] |
| 149 | + }, |
| 150 | + "3": { "name": "punctuation.definition.italic.markdown" } |
| 151 | + } |
145 | 152 | },
|
146 | 153 | "documentation_italic": {
|
147 |
| - "contentName": "markup.italic.documentation.robotframework", |
148 |
| - "begin": "(_)(_*)", |
149 |
| - "end": "(_*)(_)|$", |
150 |
| - "beginCaptures": { "1": { "name": "markup.robotframework" } }, |
151 |
| - "endCaptures": { "2": { "name": "markup.robotframework" } }, |
152 |
| - "patterns": [ |
153 |
| - { "include": "#documentation_bold" }, |
154 |
| - { "include": "#escape" }, |
155 |
| - { "include": "#comment" }, |
156 |
| - { "include": "#comment_line" }, |
157 |
| - { "include": "#variables" }, |
158 |
| - { "include": "#line_continuation" } |
159 |
| - ] |
| 154 | + "match": "(?:(?<=\\s|^))(_)(?:(?=\\S))(.*?)(?:(?<=\\S))(_)(?:(?=\\s|\\*))", |
| 155 | + "captures": { |
| 156 | + "1": { "name": "punctuation.definition.italic.markdown" }, |
| 157 | + "2": { |
| 158 | + "name": "markup.italic.documentation.robotframework", |
| 159 | + "patterns": [ |
| 160 | + { "include": "#documentation_italic" }, |
| 161 | + { "include": "#documentation_bold" }, |
| 162 | + { "include": "#escape" }, |
| 163 | + { "include": "#comment" }, |
| 164 | + { "include": "#comment_line" }, |
| 165 | + { "include": "#variables" }, |
| 166 | + { "include": "#line_continuation" } |
| 167 | + ] |
| 168 | + }, |
| 169 | + "3": { "name": "punctuation.definition.italic.markdown" } |
| 170 | + } |
160 | 171 | },
|
161 | 172 | "testcase_name": {
|
162 | 173 | "contentName": "string.unquoted.argument.robotframework",
|
163 | 174 | "begin": "^( ?\\S+( ?\\S*)*?)(?= {2}| ?\\t| ?$)",
|
164 |
| - "beginCaptures": { "1": { "name": "entity.name.function.testcase.name.robotframework", "patterns": [{"include": "#variables"}] } }, |
| 175 | + "beginCaptures": { |
| 176 | + "1": { |
| 177 | + "name": "entity.name.function.testcase.name.robotframework", |
| 178 | + "patterns": [ { "include": "#variables" } ] |
| 179 | + } |
| 180 | + }, |
165 | 181 | "end": "^(?!(\\s*(\\.\\.\\.((( {2}| ?\\t)\\s*\\S.*)|(\\s*))?$))|(\\s*#.*$)|(\\s*$))",
|
166 | 182 | "patterns": [
|
167 | 183 | { "include": "#escape" },
|
|
174 | 190 | "keyword_name": {
|
175 | 191 | "contentName": "string.unquoted.argument.robotframework",
|
176 | 192 | "begin": "^( ?\\S+( ?\\S*)*?)(?= {2}| ?\\t| ?$)",
|
177 |
| - "beginCaptures": { "1": { "name": "entity.name.function.keyword.name.robotframework", "patterns": [{"include": "#only_dollar_var"}] } }, |
| 193 | + "beginCaptures": { |
| 194 | + "1": { |
| 195 | + "name": "entity.name.function.keyword.name.robotframework", |
| 196 | + "patterns": [ { "include": "#only_dollar_var" } ] |
| 197 | + } |
| 198 | + }, |
178 | 199 | "end": "^(?!(\\s*(\\.\\.\\.((( {2}| ?\\t)\\s*\\S.*)|(\\s*))?$))|(\\s*#.*$)|(\\s*$))",
|
179 | 200 | "patterns": [
|
180 | 201 | { "include": "#escape" },
|
|
313 | 334 | "contentName": "string.unquoted.argument.robotframework",
|
314 | 335 | "begin": "^(?!(?: {2,}| ?\\t ?)+(?:(?=[$\\[@&%]|\\.)))(?: {2,}| ?\\t ?)+(.*?)(?= {2,}| ?\\t ?| ?$)",
|
315 | 336 | "end": "^(?!(\\s*(\\.\\.\\.((( {2}| ?\\t)\\s*\\S.*)|(\\s*))?$))|(\\s*#.*$)|(\\s*$))",
|
316 |
| - "beginCaptures": { "1": { "name": "entity.name.function.keyword-call.robotframework", "patterns": [{"include": "#variables"}]} }, |
| 337 | + "beginCaptures": { |
| 338 | + "1": { |
| 339 | + "name": "entity.name.function.keyword-call.robotframework", |
| 340 | + "patterns": [ { "include": "#variables" } ] |
| 341 | + } |
| 342 | + }, |
317 | 343 | "patterns": [
|
318 | 344 | { "include": "#escape" },
|
319 | 345 | { "include": "#comment" },
|
|
381 | 407 | "contentName": "string.unquoted.argument.robotframework",
|
382 | 408 | "begin": "(?<=\\s)(?=\\s*(?:(?=[$@&])))((?:\\s)*(?:[$&@]{(?:.*?)}(?:\\[.*?\\])?(?: ?=?\\s*))*)(.*?)(?: {2,}| ?\\t ?|$)",
|
383 | 409 | "beginCaptures": {
|
384 |
| - "1": { |
385 |
| - "patterns": [ { "include": "#variable_assignment_from_kw" } ] |
386 |
| - }, |
| 410 | + "1": { "patterns": [ { "include": "#variable_assignment_from_kw" } ] }, |
387 | 411 | "2": { "name": "entity.name.function.keyword-call.robotframework" }
|
388 | 412 | },
|
389 | 413 | "end": "^(?!(\\s*(\\.\\.\\.((( {2}| ?\\t)\\s*\\S.*)|(\\s*))?$))|(\\s*#.*$)|(\\s*$))",
|
|
398 | 422 | "begin": "(?<=^\\s)(?:\\s*)(?=[$@&])",
|
399 | 423 | "end": "(?:( ?=)|(?: {2,}| ?\\t+ ?| ?$)(?![#$@& \\n\\r]|\\.\\.\\.)|^(?=\\.\\.\\.)( {2,}| ?\\t+ ?| ?$)(?![#$@&]))",
|
400 | 424 | "endCaptures": { "1": { "name": "keyword.operator.robotframework" } },
|
401 |
| - "patterns": [ |
402 |
| - { "include": "#variables" } |
403 |
| - ] |
| 425 | + "patterns": [ { "include": "#variables" } ] |
404 | 426 | },
|
405 | 427 | "line_continuation": {
|
406 | 428 | "match": "^(\\s*\\.\\.\\.)(?! ?\\S)",
|
|
0 commit comments