|
4 | 4 | "If you want to provide a fix or improvement, please create a pull request against the original repository.", |
5 | 5 | "Once accepted there, we are happy to receive an update request." |
6 | 6 | ], |
7 | | - "version": "https://github.com/Ikuyadeu/vscode-R/commit/0ad8c770ea3836b15bc121fff4161a794d3deeaa", |
| 7 | + "version": "https://github.com/Ikuyadeu/vscode-R/commit/b3ef459a3999160d97ea28f4754fda810417f99f", |
8 | 8 | "fileTypes": [ |
9 | 9 | "R", |
10 | 10 | "r", |
|
178 | 178 | "name": "keyword.operator.arithmetic.r" |
179 | 179 | }, |
180 | 180 | { |
181 | | - "match": "(=|<-|<<-|->|->>)", |
| 181 | + "match": "==", |
| 182 | + "name": "keyword.operator.comarison.r" |
| 183 | + }, |
| 184 | + { |
| 185 | + "match": "(:=|<-|<<-|->|->>)", |
182 | 186 | "name": "keyword.operator.assignment.r" |
183 | 187 | }, |
184 | 188 | { |
185 | | - "match": "(==|!=|<>|<|>|<=|>=)", |
| 189 | + "match": "(!=|<>|<|>|<=|>=|%in%)", |
186 | 190 | "name": "keyword.operator.comparison.r" |
187 | 191 | }, |
188 | 192 | { |
189 | 193 | "match": "(!|&{1,2}|[|]{1,2})", |
190 | 194 | "name": "keyword.operator.logical.r" |
191 | 195 | }, |
192 | 196 | { |
193 | | - "match": "(%in%|:=|%between%|%chin%|%like%|%\\+%|%\\+replace%|%:%|%do%|%dopar%|%>%|%<>%|%T>%|%\\$%)", |
| 197 | + "match": "(%between%|%chin%|%like%|%\\+%|%\\+replace%|%:%|%do%|%dopar%|%>%|%<>%|%T>%|%\\$%)", |
194 | 198 | "name": "keyword.operator.other.r" |
195 | 199 | }, |
196 | 200 | { |
|
337 | 341 | "function-declarations": { |
338 | 342 | "patterns": [ |
339 | 343 | { |
340 | | - "begin": "^\\s*([a-zA-Z0-9._:]*)\\s*(<<?-|=)\\s*(?=function\\s*\\()", |
| 344 | + "begin": "^\\s*([a-zA-Z._][\\w.:]*)\\s*(<<?-|=)\\s*(?=function\\s*\\()", |
341 | 345 | "beginCaptures": { |
342 | 346 | "1": { |
343 | 347 | "name": "entity.name.function.r" |
|
349 | 353 | "name": "keyword.control.r" |
350 | 354 | } |
351 | 355 | }, |
352 | | - "end": "", |
| 356 | + "end": "(?<=\\))", |
353 | 357 | "name": "meta.function.r", |
354 | 358 | "patterns": [ |
355 | 359 | { |
|
384 | 388 | "include": "#comments" |
385 | 389 | }, |
386 | 390 | { |
387 | | - "match": "(?:[a-zA-Z._][a-zA-Z0-9._]*|`[^`]+`)", |
| 391 | + "match": "(?:[a-zA-Z._][\\w.]*|`[^`]+`)", |
388 | 392 | "name": "variable.parameter.r" |
389 | 393 | }, |
390 | 394 | { |
|
405 | 409 | ] |
406 | 410 | }, |
407 | 411 | "function-calls": { |
408 | | - "begin": "(?:\\b|(?=\\.))((?:[a-zA-Z._][a-zA-Z0-9._]*|`[^`]+`))\\s*(\\()", |
| 412 | + "begin": "(?:\\b|(?=\\.))((?:[a-zA-Z._][\\w.]*|`[^`]+`))\\s*(\\()", |
409 | 413 | "beginCaptures": { |
410 | 414 | "1": { |
411 | 415 | "name": "variable.function.r" |
|
435 | 439 | "contentName": "meta.function-call.parameters.r" |
436 | 440 | }, |
437 | 441 | { |
438 | | - "match": "(?:[a-zA-Z._][a-zA-Z0-9._]*|`[^`]+`)(?=\\s[^=])", |
| 442 | + "match": "(?:[a-zA-Z._][\\w.]*|`[^`]+`)(?=\\s[^=])", |
439 | 443 | "name": "variable.parameter.r" |
440 | 444 | }, |
441 | 445 | { |
|
483 | 487 | "name": "variable.parameter.r" |
484 | 488 | } |
485 | 489 | }, |
486 | | - "match": "(@param)\\s*((?:[a-zA-Z._][a-zA-Z0-9._]*|`[^`]+`))" |
| 490 | + "match": "(@param)\\s*((?:[a-zA-Z._][\\w.]*|`[^`]+`))" |
487 | 491 | }, |
488 | 492 | { |
489 | 493 | "match": "@[a-zA-Z0-9]+", |
|
0 commit comments