|
317 | 317 | 'name': 'keyword.declaration.scala'
|
318 | 318 | '2':
|
319 | 319 | 'name': 'entity.name.function.declaration'
|
320 |
| - 'match': '(?x)\n\t\t\t\t\t\t\\b(def)\\s+\n\t\t\t\t\t\t(`[^`]+`|[_$\\p{L}][_$\\p{L}0-9]*(?:_[^\\s])(?=[(\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[-?~><^+*%:!#|/@\\\\]+)' |
| 320 | + 'match': '(?x)\n\t\t\t\t\t\t\\b(def)\\s+\n\t\t\t\t\t\t(`[^`]+`|[_$\\p{L}][_$\\p{L}0-9]*(?:_[^\\s])(?=[(\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)' |
321 | 321 | }
|
322 | 322 | {
|
323 | 323 | 'captures':
|
|
335 | 335 | 'name': 'keyword.declaration.scala'
|
336 | 336 | '2':
|
337 | 337 | 'name': 'entity.name.type.declaration'
|
338 |
| - 'match': '\\b(type)\\s+(`[^`]+`|[_$\\p{L}][_$a-z\\p{L}]*(?:_[^\\s])(?=[\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[-?~><^+*%:!#|/@\\\\]+)' |
| 338 | + 'match': '\\b(type)\\s+(`[^`]+`|[_$\\p{L}][_$a-z\\p{L}]*(?:_[^\\s])(?=[\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)' |
339 | 339 | }
|
340 | 340 | {
|
341 | 341 | 'captures':
|
|
345 | 345 | 'name': 'keyword.declaration.volatile.scala'
|
346 | 346 | '3':
|
347 | 347 | 'name': 'entity.name.val.declaration'
|
348 |
| - 'match': '\\b(?:(val)|(var))\\s+(?:(`[^`]+`|[_$\\p{L}][_$\\p{L}0-9]*(?:_[^\\s])(?=[\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[-?~><^+*%:!#|/@\\\\]+)|(?=\\())' |
| 348 | + 'match': '\\b(?:(val)|(var))\\s+(?:(`[^`]+`|[_$\\p{L}][_$\\p{L}0-9]*(?:_[^\\s])(?=[\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)|(?=\\())' |
349 | 349 | }
|
350 | 350 | {
|
351 | 351 | 'captures':
|
|
455 | 455 | 'name': 'keyword.control.exception.scala'
|
456 | 456 | }
|
457 | 457 | {
|
458 |
| - 'match': '(<-|←|->>|->|→|=>|⇒|~>|>>=|\\?|\\:+|@|\\|)+' |
459 |
| - 'name': 'keyword.operator.scala' |
460 |
| - } |
461 |
| - { |
462 |
| - 'match': '\\b(===|==|=|!=|<=|>=|<>|<|>)\\b' |
463 |
| - 'name': 'keyword.operator.comparison.scala' |
464 |
| - } |
465 |
| - { |
466 |
| - 'match': '(\\-|\\+|\\*|/(?![/*])|%|~)' |
467 |
| - 'name': 'keyword.operator.arithmetic.scala' |
| 458 | + 'captures': |
| 459 | + '2': |
| 460 | + 'name': 'keyword.operator.scala' |
| 461 | + 'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(<-|←|->|→|=>|⇒|\\?|\\:+|@|\\|)+([^!#%&*+\-/:<=>?@\\\\^|~])' |
468 | 462 | }
|
469 | 463 | {
|
470 |
| - 'match': '(!|&&|\\|\\|)' |
471 |
| - 'name': 'keyword.operator.logical.scala' |
| 464 | + 'captures': |
| 465 | + '2': |
| 466 | + 'name': 'keyword.operator.assignment.scala' |
| 467 | + 'match': '([^!#%&*+\-/:<=>?@\\\\^|~_])(=)([^!#%&*+\-/:<=>?@\\\\^|~])' |
472 | 468 | }
|
473 | 469 | ]
|
474 | 470 | 'meta-brackets':
|
|
496 | 492 | '2':
|
497 | 493 | 'name': 'meta.colon.scala'
|
498 | 494 | 'comment': 'We do not match param names that start with a Capital letter'
|
499 |
| - 'match': '(?<=[^\\._$\\p{L}0-9])(`[^`]+`|[_$\\p{Ll}][_$\\p{L}0-9]*(?:_[^\\s])(?=[\\t ])|[_$\\p{Ll}][_$\\p{L}0-9]*|[-?~><^+*%:!#|/@\\\\]+)\\s*(:)\\s+' |
| 495 | + 'match': '(?<=[^\\._$\\p{L}0-9])(`[^`]+`|[_$\\p{Ll}][_$\\p{L}0-9]*(?:_[^\\s])(?=[\\t ])|[_$\\p{Ll}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)\\s*(:)\\s+' |
500 | 496 | }
|
501 | 497 | ]
|
502 | 498 | 'qualifiedClassName':
|
|
0 commit comments