|
15 | 15 | "3": { "name": "punctuation.definition.variable.end.robotframework" },
|
16 | 16 | "4": { "name": "keyword.operator.robotframework" }
|
17 | 17 | },
|
18 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 18 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
19 | 19 | "patterns": [
|
20 | 20 | { "include": "#escape" },
|
21 | 21 | { "include": "#comment" },
|
|
91 | 91 | "contentName": "markup.robotframework",
|
92 | 92 | "begin": "(?i)^(documentation|dokumentation|Tài liệu hướng dẫn)(?= {2}| ?\\t| ?$)",
|
93 | 93 | "beginCaptures": { "1": { "name": "keyword.control.settings.robotframework" } },
|
94 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 94 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
95 | 95 | "patterns": [
|
96 | 96 | { "include": "#documentation_italic" },
|
97 | 97 | { "include": "#documentation_bold" },
|
|
135 | 135 | "contentName": "string.unquoted.argument.robotframework",
|
136 | 136 | "begin": "(?i)^(\\S+( \\S+)*)(?= {2}| ?\\t| ?$)",
|
137 | 137 | "beginCaptures": { "1": { "name": "keyword.control.settings.robotframework" } },
|
138 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 138 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
139 | 139 | "patterns": [
|
140 | 140 | { "include": "#escape" },
|
141 | 141 | { "include": "#comment" },
|
|
153 | 153 | "contentName": "markup.robotframework",
|
154 | 154 | "begin": "(?i)(\\[(documentation|dokumentation|Tài liệu hướng dẫn)\\])(?= {2}| ?\\t| ?$)",
|
155 | 155 | "beginCaptures": { "0": { "name": "keyword.control.settings.robotframework" } },
|
156 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 156 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
157 | 157 | "patterns": [
|
158 | 158 | { "include": "#documentation_italic" },
|
159 | 159 | { "include": "#documentation_bold" },
|
|
167 | 167 | "contentName": "string.unquoted.argument.robotframework",
|
168 | 168 | "begin": "(\\[.*?\\])(?= {2}| ?\\t| ?$)",
|
169 | 169 | "beginCaptures": { "0": { "name": "keyword.control.settings.robotframework" } },
|
170 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 170 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
171 | 171 | "patterns": [
|
172 | 172 | { "include": "#escape" },
|
173 | 173 | { "include": "#comment" },
|
|
179 | 179 | "name": "meta.keyword-call.content.robotframework",
|
180 | 180 | "contentName": "string.unquoted.argument.robotframework",
|
181 | 181 | "begin": "^(?!(?: {2,}| ?\\t ?)+(?:(?=[$\\[@&%]|\\.)))(?: {2,}| ?\\t ?)+(.*?)(?= {2,}| ?\\t ?| ?$)",
|
182 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 182 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
183 | 183 | "beginCaptures": { "1": { "name": "entity.name.function.keyword-call.robotframework" } },
|
184 | 184 | "patterns": [
|
185 | 185 | { "include": "#comment" },
|
|
191 | 191 | "name": "meta.keyword-call.content.robotframework",
|
192 | 192 | "contentName": "string.unquoted.argument.robotframework",
|
193 | 193 | "begin": "^(?!(?: {2,}| ?\\t ?)+(?:(?=[$\\[@&%]|\\.)))(?: {2,}| ?\\t ?)+(IF|ELSE IF|WHILE)(( {2,}| ?\\t)( *)(.*?))?(?= {2,}| ?\\t ?| ?$)",
|
194 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 194 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
195 | 195 | "beginCaptures": {
|
196 | 196 | "1": { "name": "keyword.control.flow.robotframework" },
|
197 | 197 | "5": {
|
|
209 | 209 | "name": "meta.keyword-call.content.robotframework",
|
210 | 210 | "contentName": "string.unquoted.argument.robotframework",
|
211 | 211 | "begin": "^(?!(?: {2,}| ?\\t ?)+(?:(?=[$\\[@&%]|\\.)))(?: {2,}| ?\\t ?)+(FOR|END|ELSE|TRY|EXCEPT|FINALLY)(?= {2,}| ?\\t ?| ?$)",
|
212 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 212 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
213 | 213 | "beginCaptures": { "1": { "name": "keyword.control.flow.robotframework" } },
|
214 | 214 | "patterns": [
|
215 | 215 | { "include": "#comment" },
|
|
221 | 221 | "name": "meta.keyword-call.content.robotframework",
|
222 | 222 | "contentName": "string.unquoted.argument.robotframework",
|
223 | 223 | "begin": "^(?!(?: {2,}| ?\\t ?)+(?:(?=[$\\[@&%]|\\.)))(?: {2,}| ?\\t ?)+(VAR)(?= {2,}| ?\\t ?| ?$)",
|
224 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 224 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
225 | 225 | "beginCaptures": { "1": { "name": "keyword.robotframework" } },
|
226 | 226 | "patterns": [
|
227 | 227 | { "include": "#comment" },
|
|
233 | 233 | "name": "meta.returning-keyword-call.robotframework",
|
234 | 234 | "contentName": "meta.returning.keyword.content.robotframework",
|
235 | 235 | "begin": "^(?=(?: {2,}| ?\\t ?)+(?:(?=[$@&])))(?:\\s)",
|
236 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 236 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
237 | 237 | "patterns": [ { "include": "#returning_keyword" } ]
|
238 | 238 | },
|
239 | 239 | "returning_keyword": {
|
|
247 | 247 | },
|
248 | 248 | "2": { "name": "entity.name.function.keyword-call.robotframework" }
|
249 | 249 | },
|
250 |
| - "end": "^(?!\\s*\\.\\.\\.)", |
| 250 | + "end": "^(?!(\\s*\\.\\.\\.)|(\\s+)|(\\s*#\\.*))", |
251 | 251 | "patterns": [
|
252 | 252 | { "include": "#variables" },
|
253 | 253 | { "include": "#line_continuation" },
|
|
266 | 266 | },
|
267 | 267 | "line_continuation": {
|
268 | 268 | "match": "^(\\s*\\.\\.\\.)(?: {2,}| ?\\t+| ?$)",
|
269 |
| - "name": "keyword.operator.robotframework" |
| 269 | + "captures": { |
| 270 | + "1": { |
| 271 | + "name": "keyword.operator.continue.robotframework" |
| 272 | + } |
| 273 | + } |
270 | 274 | },
|
271 | 275 | "impossible": {
|
272 | 276 | "comment": "This is a special rule that should be used where no match is desired. It is not a good idea to match something like '1{0}' because in some cases that can result in infinite loops in token generation. So the rule instead matches and impossible expression to allow a match to fail and move to the next token.",
|
|
0 commit comments