|
85 | 85 | }
|
86 | 86 | ]
|
87 | 87 | },
|
88 |
| - "comment-block": { |
89 |
| - "begin": "/\\*", |
90 |
| - "captures": { |
91 |
| - "0": { |
92 |
| - "name": "punctuation.definition.comment.groovy" |
93 |
| - } |
94 |
| - }, |
95 |
| - "end": "\\*/", |
96 |
| - "name": "comment.block.groovy" |
97 |
| - }, |
98 | 88 | "comments": {
|
99 | 89 | "patterns": [
|
100 | 90 | {
|
|
110 | 100 | "include": "text.html.javadoc"
|
111 | 101 | },
|
112 | 102 | {
|
113 |
| - "include": "#comment-block" |
| 103 | + "begin": "/\\*", |
| 104 | + "captures": { |
| 105 | + "0": { |
| 106 | + "name": "punctuation.definition.comment.groovy" |
| 107 | + } |
| 108 | + }, |
| 109 | + "end": "\\*/", |
| 110 | + "name": "comment.block.groovy" |
114 | 111 | },
|
115 | 112 | {
|
116 | 113 | "captures": {
|
|
142 | 139 | "name": "keyword.control.new.groovy"
|
143 | 140 | }
|
144 | 141 | },
|
145 |
| - "end": "(?<=\\)|\\])(?!\\s*{)|(?<=})|(?=[;])|$", |
| 142 | + "end": "(?<=\\))|$", |
146 | 143 | "patterns": [
|
147 | 144 | {
|
148 | 145 | "begin": "(?=\\w.*\\(?)",
|
|
198 | 195 | {
|
199 | 196 | "include": "#comments"
|
200 | 197 | },
|
201 |
| - { |
202 |
| - "include": "#support-functions" |
203 |
| - }, |
204 | 198 | {
|
205 | 199 | "include": "#keyword-language"
|
206 | 200 | },
|
|
279 | 273 | "match": "\\?\\:",
|
280 | 274 | "name": "keyword.operator.elvis.groovy"
|
281 | 275 | },
|
282 |
| - { |
283 |
| - "match": "\\*\\:", |
284 |
| - "name": "keyword.operator.spreadmap.groovy" |
285 |
| - }, |
286 | 276 | {
|
287 | 277 | "match": "\\.\\.",
|
288 | 278 | "name": "keyword.operator.range.groovy"
|
|
475 | 465 | },
|
476 | 466 | "parameters": {
|
477 | 467 | "patterns": [
|
478 |
| - { |
479 |
| - "include": "#storage-modifiers" |
480 |
| - }, |
481 | 468 | {
|
482 | 469 | "include": "#types"
|
483 | 470 | },
|
|
504 | 491 | }
|
505 | 492 | ]
|
506 | 493 | },
|
507 |
| - "regexp": { |
508 |
| - "patterns": [ |
509 |
| - { |
510 |
| - "begin": "/(?=[^/]+/([^>]|$))", |
511 |
| - "beginCaptures": { |
512 |
| - "0": { |
513 |
| - "name": "punctuation.definition.string.regexp.begin.groovy" |
514 |
| - } |
515 |
| - }, |
516 |
| - "end": "/", |
517 |
| - "endCaptures": { |
518 |
| - "0": { |
519 |
| - "name": "punctuation.definition.string.regexp.end.groovy" |
520 |
| - } |
521 |
| - }, |
522 |
| - "name": "string.regexp.groovy", |
523 |
| - "patterns": [ |
524 |
| - { |
525 |
| - "match": "\\\\.", |
526 |
| - "name": "constant.character.escape.groovy" |
527 |
| - } |
528 |
| - ] |
529 |
| - }, |
530 |
| - { |
531 |
| - "begin": "~\"", |
532 |
| - "beginCaptures": { |
533 |
| - "0": { |
534 |
| - "name": "punctuation.definition.string.regexp.begin.groovy" |
535 |
| - } |
536 |
| - }, |
537 |
| - "end": "\"", |
538 |
| - "endCaptures": { |
539 |
| - "0": { |
540 |
| - "name": "punctuation.definition.string.regexp.end.groovy" |
541 |
| - } |
542 |
| - }, |
543 |
| - "name": "string.regexp.compiled.groovy", |
544 |
| - "patterns": [ |
545 |
| - { |
546 |
| - "match": "\\\\.", |
547 |
| - "name": "constant.character.escape.groovy" |
548 |
| - } |
549 |
| - ] |
550 |
| - } |
551 |
| - ] |
552 |
| - }, |
553 | 494 | "string-quoted-double": {
|
554 | 495 | "begin": "\"",
|
555 | 496 | "beginCaptures": {
|
|
677 | 618 | }
|
678 | 619 | ]
|
679 | 620 | },
|
| 621 | + "string-slashy": { |
| 622 | + "patterns": [ |
| 623 | + { |
| 624 | + "begin": "/(?=[^/]+/([^>]|$))", |
| 625 | + "beginCaptures": { |
| 626 | + "0": { |
| 627 | + "name": "punctuation.definition.string.regexp.begin.groovy" |
| 628 | + } |
| 629 | + }, |
| 630 | + "end": "/", |
| 631 | + "endCaptures": { |
| 632 | + "0": { |
| 633 | + "name": "punctuation.definition.string.regexp.end.groovy" |
| 634 | + } |
| 635 | + }, |
| 636 | + "name": "string.regexp.groovy", |
| 637 | + "patterns": [ |
| 638 | + { |
| 639 | + "match": "\\\\.", |
| 640 | + "name": "constant.character.escape.groovy" |
| 641 | + } |
| 642 | + ] |
| 643 | + }, |
| 644 | + { |
| 645 | + "begin": "~\"", |
| 646 | + "beginCaptures": { |
| 647 | + "0": { |
| 648 | + "name": "punctuation.definition.string.regexp.begin.groovy" |
| 649 | + } |
| 650 | + }, |
| 651 | + "end": "\"", |
| 652 | + "endCaptures": { |
| 653 | + "0": { |
| 654 | + "name": "punctuation.definition.string.regexp.end.groovy" |
| 655 | + } |
| 656 | + }, |
| 657 | + "name": "string.regexp.compiled.groovy", |
| 658 | + "patterns": [ |
| 659 | + { |
| 660 | + "match": "\\\\.", |
| 661 | + "name": "constant.character.escape.groovy" |
| 662 | + } |
| 663 | + ] |
| 664 | + } |
| 665 | + ] |
| 666 | + }, |
680 | 667 | "strings": {
|
681 | 668 | "patterns": [
|
682 | 669 | {
|
|
692 | 679 | "include": "#string-quoted-single"
|
693 | 680 | },
|
694 | 681 | {
|
695 |
| - "include": "#regexp" |
| 682 | + "include": "#string-slashy" |
696 | 683 | }
|
697 | 684 | ]
|
698 | 685 | },
|
|
720 | 707 | }
|
721 | 708 | ]
|
722 | 709 | },
|
723 |
| - "support-functions": { |
724 |
| - "patterns": [ |
725 |
| - { |
726 |
| - "match": "(?x)\\b(?:sprintf|print(?:f|ln)?)\\b", |
727 |
| - "name": "support.function.print.groovy" |
728 |
| - } |
729 |
| - ] |
730 |
| - }, |
731 | 710 | "types": {
|
732 | 711 | "patterns": [
|
733 | 712 | {
|
|
0 commit comments