|
5 | 5 | <key>fileTypes</key> |
6 | 6 | <array> |
7 | 7 | <string>mcfunction</string> |
| 8 | + <string>bolt</string> |
8 | 9 | </array> |
9 | 10 | <key>name</key> |
10 | | - <string>Mcfunction</string> |
| 11 | + <string>Syntax Mcfunction</string> |
11 | 12 | <key>patterns</key> |
12 | 13 | <array> |
13 | 14 | <dict> |
|
245 | 246 | <key>0</key> |
246 | 247 | <dict> |
247 | 248 | <key>name</key> |
248 | | - <string>keyword.other.psuedo.mcfunction</string> |
| 249 | + <string>constant.numeric.boolean.mcfunction</string> |
249 | 250 | </dict> |
250 | 251 | </dict> |
251 | 252 | <key>match</key> |
252 | | - <string>(true|false)</string> |
| 253 | + <string>(true|false|True|False)</string> |
253 | 254 | <key>name</key> |
254 | 255 | <string>meta.literals</string> |
255 | 256 | </dict> |
|
259 | 260 | <key>0</key> |
260 | 261 | <dict> |
261 | 262 | <key>name</key> |
262 | | - <string>entity.name.class.mcfunction</string> |
| 263 | + <string>variable.uuid.mcfunction</string> |
263 | 264 | </dict> |
264 | 265 | </dict> |
265 | 266 | <key>match</key> |
266 | | - <string>[A-Za-z_]+</string> |
| 267 | + <string>\b[0-9a-fA-F]+(?:-[0-9a-fA-F]+){4}\b</string> |
267 | 268 | <key>name</key> |
268 | | - <string>meta.literals</string> |
| 269 | + <string>meta.names</string> |
269 | 270 | </dict> |
270 | 271 | <dict> |
271 | 272 | <key>captures</key> |
272 | 273 | <dict> |
273 | 274 | <key>0</key> |
274 | 275 | <dict> |
275 | 276 | <key>name</key> |
276 | | - <string>constant.numeric.byte.mcfunction</string> |
| 277 | + <string>constant.numeric.float.mcfunction</string> |
277 | 278 | </dict> |
278 | 279 | </dict> |
279 | 280 | <key>match</key> |
280 | | - <string>[0-9]b</string> |
| 281 | + <string>[+-]?\d*\.?\d+([eE]?[+-]?\d+)?[df]?\b</string> |
281 | 282 | <key>name</key> |
282 | 283 | <string>meta.literals</string> |
283 | 284 | </dict> |
|
287 | 288 | <key>0</key> |
288 | 289 | <dict> |
289 | 290 | <key>name</key> |
290 | | - <string>constant.numeric.float.mcfunction</string> |
| 291 | + <string>constant.numeric.integer.mcfunction</string> |
291 | 292 | </dict> |
292 | 293 | </dict> |
293 | 294 | <key>match</key> |
294 | | - <string>[+-]?\d*\.?\d+([eE]?[+-]?\d+)?[df]?\b</string> |
| 295 | + <string>[+-]?\d+(b|B|L|l)\b</string> |
295 | 296 | <key>name</key> |
296 | 297 | <string>meta.literals</string> |
297 | 298 | </dict> |
|
461 | 462 | </dict> |
462 | 463 | </dict> |
463 | 464 | <key>match</key> |
464 | | - <string>(\$\()([A-Za-z0-9_]+)(\))</string> |
| 465 | + <string>(\$\()([A-Za-z0-9_]*)(\))</string> |
465 | 466 | <key>name</key> |
466 | 467 | <string>meta.macro-name</string> |
467 | 468 | </dict> |
|
488 | 489 | <key>match</key> |
489 | 490 | <string>^(\s*)([a-z_]+)(?=\s)</string> |
490 | 491 | <key>name</key> |
491 | | - <string>meta.names.mcfunction</string> |
| 492 | + <string>meta.names</string> |
492 | 493 | </dict> |
493 | 494 | <dict> |
494 | 495 | <key>captures</key> |
|
504 | 505 | <string>markup.italic.mcfunction</string> |
505 | 506 | </dict> |
506 | 507 | <key>3</key> |
| 508 | + <dict> |
| 509 | + <key>name</key> |
| 510 | + <string>whitespace.mcfunction</string> |
| 511 | + </dict> |
| 512 | + <key>4</key> |
507 | 513 | <dict> |
508 | 514 | <key>name</key> |
509 | 515 | <string>keyword.control.flow.mcfunction</string> |
510 | 516 | </dict> |
511 | 517 | </dict> |
512 | 518 | <key>match</key> |
513 | | - <string>^(\s*)(\$)([a-z_]*)</string> |
| 519 | + <string>^(\s*)(\$)( ?)([a-z_]*)</string> |
514 | 520 | <key>name</key> |
515 | | - <string>meta.names.mcfunction</string> |
| 521 | + <string>meta.names</string> |
516 | 522 | </dict> |
517 | 523 | <dict> |
518 | 524 | <key>captures</key> |
519 | 525 | <dict> |
520 | | - <key>0</key> |
| 526 | + <key>1</key> |
521 | 527 | <dict> |
522 | 528 | <key>name</key> |
523 | | - <string>keyboard.control.flow.mcfunction</string> |
| 529 | + <string>entity.name.mcfunction</string> |
524 | 530 | </dict> |
525 | | - </dict> |
526 | | - <key>match</key> |
527 | | - <string>(?<=run)\s+[a-z_]+(?=\s)</string> |
528 | | - <key>name</key> |
529 | | - <string>meta.names.mcfunction</string> |
530 | | - </dict> |
531 | | - <dict> |
532 | | - <key>captures</key> |
533 | | - <dict> |
534 | | - <key>0</key> |
| 531 | + <key>2</key> |
535 | 532 | <dict> |
536 | 533 | <key>name</key> |
537 | | - <string>variable.uuid.mcfunction</string> |
| 534 | + <string>whitespace.mcfunction</string> |
| 535 | + </dict> |
| 536 | + <key>3</key> |
| 537 | + <dict> |
| 538 | + <key>name</key> |
| 539 | + <string>keyword.control.flow.mcfunction</string> |
538 | 540 | </dict> |
539 | 541 | </dict> |
540 | 542 | <key>match</key> |
541 | | - <string>\b[0-9a-fA-F]+(?:-[0-9a-fA-F]+){4}\b</string> |
| 543 | + <string>(run)(\s+)([a-z_]+)</string> |
542 | 544 | <key>name</key> |
543 | 545 | <string>meta.names</string> |
544 | 546 | </dict> |
|
588 | 590 | </dict> |
589 | 591 | </dict> |
590 | 592 | <key>match</key> |
591 | | - <string>[#%$][A-Za-z0-9_.#%$]+</string> |
| 593 | + <string>([#%$]|((?<=\s)\.))[A-Za-z0-9_.#%$\-]+</string> |
592 | 594 | <key>name</key> |
593 | 595 | <string>meta.names</string> |
594 | 596 | </dict> |
|
608 | 610 | </dict> |
609 | 611 | </dict> |
610 | 612 | <key>match</key> |
611 | | - <string>[\-~%^?!+*<>\\/|&=.:,]</string> |
| 613 | + <string>[\-~%^?!+*<>\\/|&=.:,;]</string> |
612 | 614 | <key>name</key> |
613 | 615 | <string>meta.operators</string> |
614 | 616 | </dict> |
|
637 | 639 | <string>meta.property.curly</string> |
638 | 640 | <key>patterns</key> |
639 | 641 | <array> |
| 642 | + <dict> |
| 643 | + <key>include</key> |
| 644 | + <string>#resource-name</string> |
| 645 | + </dict> |
| 646 | + <dict> |
| 647 | + <key>include</key> |
| 648 | + <string>#literals</string> |
| 649 | + </dict> |
640 | 650 | <dict> |
641 | 651 | <key>include</key> |
642 | 652 | <string>#property_key</string> |
|
665 | 675 | <key>0</key> |
666 | 676 | <dict> |
667 | 677 | <key>name</key> |
668 | | - <string>punctuation.mcfunction</string> |
| 678 | + <string>variable.other.mcfunction</string> |
669 | 679 | </dict> |
670 | 680 | </dict> |
671 | 681 | <key>end</key> |
|
674 | 684 | <string>meta.property.square</string> |
675 | 685 | <key>patterns</key> |
676 | 686 | <array> |
| 687 | + <dict> |
| 688 | + <key>include</key> |
| 689 | + <string>#resource-name</string> |
| 690 | + </dict> |
| 691 | + <dict> |
| 692 | + <key>include</key> |
| 693 | + <string>#literals</string> |
| 694 | + </dict> |
677 | 695 | <dict> |
678 | 696 | <key>include</key> |
679 | 697 | <string>#property_key</string> |
|
715 | 733 | <key>include</key> |
716 | 734 | <string>#resource-name</string> |
717 | 735 | </dict> |
| 736 | + <dict> |
| 737 | + <key>include</key> |
| 738 | + <string>#literals</string> |
| 739 | + </dict> |
718 | 740 | <dict> |
719 | 741 | <key>include</key> |
720 | 742 | <string>#property_key</string> |
|
815 | 837 | <key>name</key> |
816 | 838 | <string>meta.property_value</string> |
817 | 839 | </dict> |
818 | | - <dict> |
819 | | - <key>include</key> |
820 | | - <string>#literals</string> |
821 | | - </dict> |
822 | 840 | </array> |
823 | 841 | </dict> |
824 | 842 | <key>resource-name</key> |
|
859 | 877 | <dict> |
860 | 878 | <key>patterns</key> |
861 | 879 | <array> |
| 880 | + <dict> |
| 881 | + <key>include</key> |
| 882 | + <string>#literals</string> |
| 883 | + </dict> |
862 | 884 | <dict> |
863 | 885 | <key>include</key> |
864 | 886 | <string>#names</string> |
|
869 | 891 | </dict> |
870 | 892 | <dict> |
871 | 893 | <key>include</key> |
872 | | - <string>#literals</string> |
| 894 | + <string>#subcommands</string> |
873 | 895 | </dict> |
874 | 896 | <dict> |
875 | 897 | <key>include</key> |
|
899 | 921 | </dict> |
900 | 922 | </dict> |
901 | 923 | <key>match</key> |
902 | | - <string>@[a-z]</string> |
| 924 | + <string>@[a-z]+</string> |
903 | 925 | <key>name</key> |
904 | 926 | <string>meta.selectors</string> |
905 | 927 | </dict> |
906 | 928 | </array> |
907 | 929 | </dict> |
| 930 | + <key>subcommands</key> |
| 931 | + <dict> |
| 932 | + <key>patterns</key> |
| 933 | + <array> |
| 934 | + <dict> |
| 935 | + <key>captures</key> |
| 936 | + <dict> |
| 937 | + <key>0</key> |
| 938 | + <dict> |
| 939 | + <key>name</key> |
| 940 | + <string>entity.name.class.mcfunction</string> |
| 941 | + </dict> |
| 942 | + </dict> |
| 943 | + <key>match</key> |
| 944 | + <string>[A-Za-z_]+</string> |
| 945 | + <key>name</key> |
| 946 | + <string>meta.literals</string> |
| 947 | + </dict> |
| 948 | + </array> |
| 949 | + </dict> |
908 | 950 | </dict> |
909 | 951 | <key>scopeName</key> |
910 | 952 | <string>source.mcfunction</string> |
|
0 commit comments