|
350 | 350 | { |
351 | 351 | "include": "#behavior-targetingreticledecal" |
352 | 352 | }, |
| 353 | + { |
| 354 | + "include": "#behavior-griddecaltempalte" |
| 355 | + }, |
353 | 356 | { |
354 | 357 | "include": "#assignment" |
355 | 358 | }, |
|
412 | 415 | "name": "keyword.control.ini" |
413 | 416 | } |
414 | 417 | }, |
415 | | - "end": "\\s*\\b(End)\\b", |
| 418 | + "end": "\\s*\\b(End)", |
| 419 | + "endCaptures": { |
| 420 | + "1": { |
| 421 | + "name": "keyword.control.ini" |
| 422 | + } |
| 423 | + }, |
| 424 | + "patterns": [ |
| 425 | + { |
| 426 | + "include": "#assignment" |
| 427 | + }, |
| 428 | + { |
| 429 | + "include": "#inline-comment" |
| 430 | + } |
| 431 | + ] |
| 432 | + }, |
| 433 | + "behavior-griddecaltempalte": { |
| 434 | + "begin": "\\s*\\b(GridDecalTemplate)", |
| 435 | + "beginCaptures": { |
| 436 | + "1": { |
| 437 | + "name": "keyword.control.ini" |
| 438 | + } |
| 439 | + }, |
| 440 | + "end": "\\s*\\b(End)", |
416 | 441 | "endCaptures": { |
417 | 442 | "1": { |
418 | 443 | "name": "keyword.control.ini" |
|
677 | 702 | ] |
678 | 703 | }, |
679 | 704 | "locomotor-types": { |
680 | | - "begin": "\\s*\\b(SET_NORMAL|SET_SUPERSONIC|SET_SLUGGISH|SET_TAXIING|SET_PANIC|SET_WANDER|SET_FREEFALL|SET_NORMAL_UPGRADED)\\s*", |
| 705 | + "begin": "\\s*\\b(SET_NORMAL|SET_SUPERSONIC|SET_SLUGGISH|SET_TAXIING|SET_PANIC|SET_WANDER|SET_FREEFALL|SET_NORMAL_UPGRADED)\\s*([a-zA-Z][\\w_]+)?$", |
681 | 706 | "beginCaptures": { |
682 | 707 | "1": { |
683 | 708 | "name": "variable.other.constant.ini" |
684 | 709 | }, |
685 | 710 | "2": { |
686 | 711 | "name": "string.unquoted.ini" |
| 712 | + }, |
| 713 | + "3": { |
| 714 | + "name": "string.unquoted.ini" |
687 | 715 | } |
688 | 716 | }, |
689 | | - "end": "(?!\\G)", |
690 | | - "patterns": [ |
691 | | - { |
692 | | - "include": "#string" |
693 | | - } |
694 | | - ] |
| 717 | + "end": "(?!\\G)" |
695 | 718 | }, |
696 | 719 | "weapon-types-turret": { |
697 | 720 | "match": "\\s*([a-zA-Z][\\w%]+)\\s*(\\=)(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))+", |
|
706 | 729 | "name": "variable.other.constant.ini" |
707 | 730 | }, |
708 | 731 | "weapon-types": { |
709 | | - "begin": "(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))+\\s*", |
| 732 | + "begin": "(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))\\s*", |
710 | 733 | "beginCaptures": { |
711 | 734 | "1": { |
712 | 735 | "name": "variable.other.constant.ini" |
|
773 | 796 | ] |
774 | 797 | }, |
775 | 798 | "inline-comment": { |
776 | | - "begin": "(^[ \\t]+)?(?=;)", |
| 799 | + "begin": "(^[ \\t]+)?(?=(;|//))", |
777 | 800 | "beginCaptures": { |
778 | 801 | "1": { |
779 | 802 | "name": "punctuation.whitespace.ini" |
|
790 | 813 | }, |
791 | 814 | "end": "\\n", |
792 | 815 | "name": "comment.line.ini" |
| 816 | + }, |
| 817 | + { |
| 818 | + "begin": "//", |
| 819 | + "beginCaptures": { |
| 820 | + "0": { |
| 821 | + "name": "punctuation.definition.comment.ini" |
| 822 | + } |
| 823 | + }, |
| 824 | + "end": "\\n", |
| 825 | + "name": "comment.line.ini" |
793 | 826 | } |
794 | 827 | ] |
795 | 828 | } |
|
0 commit comments