|
112 | 112 | }, |
113 | 113 | "imaginaryKeywords": { |
114 | 114 | "name": "storage.type", |
115 | | - "match": "\\b(int|uint|uintptr|i8|i16|i32|i64|u8|u16|u32|u64|f32|f64|bool|str|any|byte|rune)\\b" |
| 115 | + "match": "\\b(int|uint|uintptr|i8|i16|i32|i64|u8|u16|u32|u64|f32|f64|cmplx64|cmplx128|bool|str|any|byte|rune)\\b" |
116 | 116 | }, |
117 | 117 | "storage": { |
118 | 118 | "name": "storage.modifier.jule", |
|
344 | 344 | ] |
345 | 345 | }, |
346 | 346 | "numbers": { |
| 347 | + "match": "(?<!\\w)\\.?\\d(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])*", |
347 | 348 | "captures": { |
348 | 349 | "0": { |
349 | 350 | "patterns": [ |
|
352 | 353 | "end": "(?:\\n|$)", |
353 | 354 | "patterns": [ |
354 | 355 | { |
| 356 | + "match": "(?:(?:(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?:(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$)|\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|\\G((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?:(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))", |
355 | 357 | "captures": { |
356 | 358 | "1": { |
357 | 359 | "name": "constant.numeric.decimal.jule", |
|
362 | 364 | } |
363 | 365 | ] |
364 | 366 | }, |
| 367 | + "2": { |
| 368 | + "name": "punctuation.separator.constant.numeric.jule" |
| 369 | + }, |
| 370 | + "3": { |
| 371 | + "name": "constant.numeric.decimal.point.jule" |
| 372 | + }, |
| 373 | + "4": { |
| 374 | + "name": "constant.numeric.decimal.jule", |
| 375 | + "patterns": [ |
| 376 | + { |
| 377 | + "match": "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", |
| 378 | + "name": "punctuation.separator.constant.numeric.jule" |
| 379 | + } |
| 380 | + ] |
| 381 | + }, |
| 382 | + "5": { |
| 383 | + "name": "punctuation.separator.constant.numeric.jule" |
| 384 | + }, |
| 385 | + "6": { |
| 386 | + "name": "keyword.other.unit.exponent.decimal.jule" |
| 387 | + }, |
| 388 | + "7": { |
| 389 | + "name": "keyword.operator.plus.exponent.decimal.jule" |
| 390 | + }, |
| 391 | + "8": { |
| 392 | + "name": "keyword.operator.minus.exponent.decimal.jule" |
| 393 | + }, |
| 394 | + "9": { |
| 395 | + "name": "constant.numeric.exponent.decimal.jule", |
| 396 | + "patterns": [ |
| 397 | + { |
| 398 | + "match": "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", |
| 399 | + "name": "punctuation.separator.constant.numeric.jule" |
| 400 | + } |
| 401 | + ] |
| 402 | + }, |
| 403 | + "10": { |
| 404 | + "name": "keyword.other.unit.imaginary.jule" |
| 405 | + }, |
365 | 406 | "11": { |
366 | 407 | "name": "constant.numeric.decimal.jule", |
367 | 408 | "patterns": [ |
|
392 | 433 | } |
393 | 434 | ] |
394 | 435 | }, |
| 436 | + "17": { |
| 437 | + "name": "keyword.other.unit.imaginary.jule" |
| 438 | + }, |
395 | 439 | "18": { |
396 | 440 | "name": "constant.numeric.decimal.point.jule" |
397 | 441 | }, |
|
404 | 448 | } |
405 | 449 | ] |
406 | 450 | }, |
407 | | - "2": { |
408 | | - "name": "punctuation.separator.constant.numeric.jule" |
409 | | - }, |
410 | 451 | "20": { |
411 | 452 | "name": "punctuation.separator.constant.numeric.jule" |
412 | 453 | }, |
|
428 | 469 | } |
429 | 470 | ] |
430 | 471 | }, |
| 472 | + "25": { |
| 473 | + "name": "keyword.other.unit.imaginary.jule" |
| 474 | + }, |
431 | 475 | "26": { |
432 | 476 | "name": "keyword.other.unit.hexadecimal.jule" |
433 | 477 | }, |
|
446 | 490 | "29": { |
447 | 491 | "name": "constant.numeric.hexadecimal.jule" |
448 | 492 | }, |
449 | | - "3": { |
450 | | - "name": "constant.numeric.decimal.point.jule" |
451 | | - }, |
452 | 493 | "30": { |
453 | 494 | "name": "constant.numeric.hexadecimal.jule", |
454 | 495 | "patterns": [ |
|
479 | 520 | } |
480 | 521 | ] |
481 | 522 | }, |
| 523 | + "36": { |
| 524 | + "name": "keyword.other.unit.imaginary.jule" |
| 525 | + }, |
482 | 526 | "37": { |
483 | 527 | "name": "keyword.other.unit.hexadecimal.jule" |
484 | 528 | }, |
|
494 | 538 | "39": { |
495 | 539 | "name": "punctuation.separator.constant.numeric.jule" |
496 | 540 | }, |
497 | | - "4": { |
498 | | - "name": "constant.numeric.decimal.jule", |
499 | | - "patterns": [ |
500 | | - { |
501 | | - "match": "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", |
502 | | - "name": "punctuation.separator.constant.numeric.jule" |
503 | | - } |
504 | | - ] |
505 | | - }, |
506 | 541 | "40": { |
507 | 542 | "name": "keyword.other.unit.exponent.hexadecimal.jule" |
508 | 543 | }, |
|
521 | 556 | } |
522 | 557 | ] |
523 | 558 | }, |
| 559 | + "44": { |
| 560 | + "name": "keyword.other.unit.imaginary.jule" |
| 561 | + }, |
524 | 562 | "45": { |
525 | 563 | "name": "keyword.other.unit.hexadecimal.jule" |
526 | 564 | }, |
|
542 | 580 | "49": { |
543 | 581 | "name": "keyword.other.unit.exponent.hexadecimal.jule" |
544 | 582 | }, |
545 | | - "5": { |
546 | | - "name": "punctuation.separator.constant.numeric.jule" |
547 | | - }, |
548 | 583 | "50": { |
549 | 584 | "name": "keyword.operator.plus.exponent.hexadecimal.jule" |
550 | 585 | }, |
|
560 | 595 | } |
561 | 596 | ] |
562 | 597 | }, |
563 | | - "6": { |
564 | | - "name": "keyword.other.unit.exponent.decimal.jule" |
565 | | - }, |
566 | | - "7": { |
567 | | - "name": "keyword.operator.plus.exponent.decimal.jule" |
568 | | - }, |
569 | | - "8": { |
570 | | - "name": "keyword.operator.minus.exponent.decimal.jule" |
571 | | - }, |
572 | | - "9": { |
573 | | - "name": "constant.numeric.exponent.decimal.jule", |
574 | | - "patterns": [ |
575 | | - { |
576 | | - "match": "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", |
577 | | - "name": "punctuation.separator.constant.numeric.jule" |
578 | | - } |
579 | | - ] |
| 598 | + "53": { |
| 599 | + "name": "keyword.other.unit.imaginary.jule" |
580 | 600 | } |
581 | | - }, |
582 | | - "match": "(?:(?:(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])(\\d(?:\\d|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=\\d)\\.|\\.(?=\\d)))(\\d(?:\\d|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?:(?<!_)([eE])(\\+?)(-?)((?:\\d(?:\\d|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$)|\\G(?=[0-9.])(?!0[xXbBoO])(\\d(?:\\d|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([eE])(\\+?)(-?)((?:\\d(?:\\d|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|\\G((?:(?<=\\d)\\.|\\.(?=\\d)))(\\d(?:\\d|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?:(?<!_)([eE])(\\+?)(-?)((?:\\d(?:\\d|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?<!_)([pP])(\\+?)(-?)((?:\\d(?:\\d|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(-?)((?:\\d(?:\\d|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(-?)((?:\\d(?:\\d|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))" |
| 601 | + } |
583 | 602 | }, |
584 | 603 | { |
| 604 | + "match": "(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$)|(\\G0[bB])_?([01](?:[01]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))|(\\G0[oO]?)_?((?:[0-7]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))+)(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))", |
585 | 605 | "captures": { |
586 | 606 | "1": { |
587 | 607 | "name": "constant.numeric.decimal.jule", |
|
592 | 612 | } |
593 | 613 | ] |
594 | 614 | }, |
595 | | - "10": { |
| 615 | + "2": { |
596 | 616 | "name": "punctuation.separator.constant.numeric.jule" |
597 | 617 | }, |
598 | | - "12": { |
599 | | - "name": "keyword.other.unit.hexadecimal.jule" |
| 618 | + "3": { |
| 619 | + "name": "keyword.other.unit.imaginary.jule" |
600 | 620 | }, |
601 | | - "13": { |
602 | | - "name": "constant.numeric.hexadecimal.jule", |
| 621 | + "4": { |
| 622 | + "name": "keyword.other.unit.binary.jule" |
| 623 | + }, |
| 624 | + "5": { |
| 625 | + "name": "constant.numeric.binary.jule", |
603 | 626 | "patterns": [ |
604 | 627 | { |
605 | 628 | "match": "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", |
606 | 629 | "name": "punctuation.separator.constant.numeric.jule" |
607 | 630 | } |
608 | 631 | ] |
609 | 632 | }, |
610 | | - "14": { |
| 633 | + "6": { |
611 | 634 | "name": "punctuation.separator.constant.numeric.jule" |
612 | 635 | }, |
613 | | - "2": { |
614 | | - "name": "punctuation.separator.constant.numeric.jule" |
| 636 | + "7": { |
| 637 | + "name": "keyword.other.unit.imaginary.jule" |
615 | 638 | }, |
616 | | - "4": { |
617 | | - "name": "keyword.other.unit.binary.jule" |
| 639 | + "8": { |
| 640 | + "name": "keyword.other.unit.octal.jule" |
618 | 641 | }, |
619 | | - "5": { |
620 | | - "name": "constant.numeric.binary.jule", |
| 642 | + "9": { |
| 643 | + "name": "constant.numeric.octal.jule", |
621 | 644 | "patterns": [ |
622 | 645 | { |
623 | 646 | "match": "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", |
624 | 647 | "name": "punctuation.separator.constant.numeric.jule" |
625 | 648 | } |
626 | 649 | ] |
627 | 650 | }, |
628 | | - "6": { |
| 651 | + "10": { |
629 | 652 | "name": "punctuation.separator.constant.numeric.jule" |
630 | 653 | }, |
631 | | - "8": { |
632 | | - "name": "keyword.other.unit.octal.jule" |
| 654 | + "11": { |
| 655 | + "name": "keyword.other.unit.imaginary.jule" |
633 | 656 | }, |
634 | | - "9": { |
635 | | - "name": "constant.numeric.octal.jule", |
| 657 | + "12": { |
| 658 | + "name": "keyword.other.unit.hexadecimal.jule" |
| 659 | + }, |
| 660 | + "13": { |
| 661 | + "name": "constant.numeric.hexadecimal.jule", |
636 | 662 | "patterns": [ |
637 | 663 | { |
638 | 664 | "match": "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", |
639 | 665 | "name": "punctuation.separator.constant.numeric.jule" |
640 | 666 | } |
641 | 667 | ] |
| 668 | + }, |
| 669 | + "14": { |
| 670 | + "name": "punctuation.separator.constant.numeric.jule" |
| 671 | + }, |
| 672 | + "15": { |
| 673 | + "name": "keyword.other.unit.imaginary.jule" |
642 | 674 | } |
643 | | - }, |
644 | | - "match": "(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])(\\d(?:\\d|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$)|(\\G0[bB])_?([01](?:[01]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))|(\\G0[oO]?)_?((?:[0-7]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))+)(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))" |
| 675 | + } |
645 | 676 | }, |
646 | 677 | { |
647 | 678 | "match": "(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])+", |
|
651 | 682 | } |
652 | 683 | ] |
653 | 684 | } |
654 | | - }, |
655 | | - "match": "(?<!\\w)\\.?\\d(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])*" |
| 685 | + } |
656 | 686 | }, |
657 | 687 | "operators": { |
658 | 688 | "patterns": [ |
|
0 commit comments