|
4 | 4 | "If you want to provide a fix or improvement, please create a pull request against the original repository.", |
5 | 5 | "Once accepted there, we are happy to receive an update request." |
6 | 6 | ], |
7 | | - "version": "https://github.com/ionide/ionide-fsgrammar/commit/b4f43aafa6f843707410fabe9f904ec04fa536dc", |
| 7 | + "version": "https://github.com/ionide/ionide-fsgrammar/commit/af2a9a88639f384c6e5d1340d510dc6fb743d514", |
8 | 8 | "name": "fsharp", |
9 | 9 | "scopeName": "source.fsharp", |
10 | 10 | "patterns": [ |
|
476 | 476 | }, |
477 | 477 | "endCaptures": { |
478 | 478 | "1": { |
479 | | - "name": "keyword.fsharp" |
| 479 | + "name": "keyword.symbol.arrow.fsharp" |
480 | 480 | } |
481 | 481 | }, |
482 | 482 | "patterns": [ |
|
488 | 488 | "end": "\\s*(?=(->))", |
489 | 489 | "beginCaptures": { |
490 | 490 | "1": { |
491 | | - "name": "keyword.symbol.fsharp" |
| 491 | + "name": "keyword.symbol.arrow.fsharp" |
492 | 492 | } |
493 | 493 | }, |
494 | 494 | "endCaptures": { |
495 | 495 | "1": { |
496 | | - "name": "keyword.symbol.fsharp" |
| 496 | + "name": "keyword.symbol.arrow.fsharp" |
497 | 497 | } |
498 | 498 | }, |
499 | 499 | "patterns": [ |
|
545 | 545 | } |
546 | 546 | ] |
547 | 547 | }, |
548 | | - { |
549 | | - "name": "comment.block.markdown.fsharp.end", |
550 | | - "match": "^(\\s*\\*\\)$)", |
551 | | - "captures": { |
552 | | - "1": { |
553 | | - "name": "comment.block.fsharp" |
554 | | - } |
555 | | - } |
556 | | - }, |
557 | 548 | { |
558 | 549 | "name": "comment.block.fsharp", |
559 | 550 | "begin": "(\\(\\*(?!\\)))", |
|
567 | 558 | "1": { |
568 | 559 | "name": "comment.block.fsharp" |
569 | 560 | } |
| 561 | + }, |
| 562 | + "patterns": [ |
| 563 | + { |
| 564 | + "include": "#comments" |
| 565 | + } |
| 566 | + ] |
| 567 | + }, |
| 568 | + { |
| 569 | + "name": "comment.block.markdown.fsharp.end", |
| 570 | + "match": "(\\*\\))", |
| 571 | + "captures": { |
| 572 | + "1": { |
| 573 | + "name": "comment.block.fsharp" |
| 574 | + } |
570 | 575 | } |
571 | 576 | }, |
572 | 577 | { |
|
592 | 597 | "match": "\\(\\)" |
593 | 598 | }, |
594 | 599 | { |
595 | | - "name": "constant.numeric.floating-point.fsharp", |
| 600 | + "name": "constant.numeric.float.fsharp", |
596 | 601 | "match": "\\b-?[0-9][0-9_]*((\\.([0-9][0-9_]*([eE][+-]??[0-9][0-9_]*)?)?)|([eE][+-]??[0-9][0-9_]*))" |
597 | 602 | }, |
598 | 603 | { |
599 | 604 | "name": "constant.numeric.integer.nativeint.fsharp", |
600 | 605 | "match": "\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))" |
601 | 606 | }, |
602 | 607 | { |
603 | | - "name": "constant.others.fsharp", |
| 608 | + "name": "constant.other.fsharp", |
604 | 609 | "match": "\\b(true|false|null|unit|void)\\b" |
605 | 610 | } |
606 | 611 | ] |
|
918 | 923 | "name": "support.function.attribute.fsharp" |
919 | 924 | }, |
920 | 925 | "4": { |
921 | | - "name": "keyword.fsharp" |
| 926 | + "name": "storage.modifier.fsharp" |
922 | 927 | }, |
923 | 928 | "5": { |
924 | 929 | "name": "variable.fsharp" |
|
970 | 975 | "name": "support.function.attribute.fsharp" |
971 | 976 | }, |
972 | 977 | "4": { |
973 | | - "name": "keyword.fsharp" |
| 978 | + "name": "storage.modifier.fsharp" |
974 | 979 | }, |
975 | 980 | "5": { |
976 | 981 | "name": "variable.fsharp" |
|
1061 | 1066 | }, |
1062 | 1067 | "keywords": { |
1063 | 1068 | "patterns": [ |
| 1069 | + { |
| 1070 | + "name": "storage.modifier", |
| 1071 | + "match": "\\b(private|public|internal)\\b" |
| 1072 | + }, |
1064 | 1073 | { |
1065 | 1074 | "name": "keyword.fsharp", |
1066 | | - "match": "\\b(private|to|public|internal|function|yield!|yield|class|exception|match|delegate|of|new|in|as|if|then|else|elif|for|begin|end|inherit|do|let\\!|return\\!|return|interface|with|abstract|enum|member|try|finally|and|when|or|use|use\\!|struct|while|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!')\\b" |
| 1075 | + "match": "\\b(private|to|public|internal|function|class|exception|delegate|of|as|begin|end|inherit|let!|interface|abstract|enum|member|and|when|or|use|use\\!|struct|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!')\\b" |
| 1076 | + }, |
| 1077 | + { |
| 1078 | + "name": "keyword.control", |
| 1079 | + "match": "\\b(match|yield|yield!|with|if|then|else|elif|for|in|return!|return|try|finally|while|do)(?!')\\b" |
| 1080 | + }, |
| 1081 | + { |
| 1082 | + "name": "keyword.symbol.new", |
| 1083 | + "match": "\\b(new)\\b" |
1067 | 1084 | }, |
1068 | 1085 | { |
1069 | 1086 | "name": "keyword.symbol.fsharp", |
|
1075 | 1092 | "patterns": [ |
1076 | 1093 | { |
1077 | 1094 | "name": "entity.name.section.fsharp", |
1078 | | - "begin": "\\b(namespace global)|(namespace|module)\\s*(public|internal|private|rec)?\\s+([[:alpha:]][[:alpha:]0-9'_. ]*)", |
| 1095 | + "begin": "\\b(namespace global)|\\b(namespace|module)\\s*(public|internal|private|rec)?\\s+([[:alpha:]][[:alpha:]0-9'_. ]*)", |
1079 | 1096 | "end": "(\\s?=|\\s|$)", |
1080 | 1097 | "beginCaptures": { |
1081 | 1098 | "1": { |
|
1085 | 1102 | "name": "keyword.fsharp" |
1086 | 1103 | }, |
1087 | 1104 | "3": { |
1088 | | - "name": "keyword.fsharp" |
| 1105 | + "name": "storage.modifier.fsharp" |
1089 | 1106 | }, |
1090 | 1107 | "4": { |
1091 | 1108 | "name": "entity.name.section.fsharp" |
|
1507 | 1524 | "name": "keyword.fsharp" |
1508 | 1525 | }, |
1509 | 1526 | "2": { |
1510 | | - "name": "keyword.fsharp" |
| 1527 | + "name": "storage.modifier.fsharp" |
1511 | 1528 | } |
1512 | 1529 | }, |
1513 | 1530 | "endCaptures": { |
|
1619 | 1636 | "name": "keyword.symbol.fsharp" |
1620 | 1637 | }, |
1621 | 1638 | "2": { |
1622 | | - "name": "keyword.fsharp" |
| 1639 | + "name": "storage.modifier.fsharp" |
1623 | 1640 | } |
1624 | 1641 | } |
1625 | 1642 | }, |
|
1770 | 1787 | "compiler_directives": { |
1771 | 1788 | "patterns": [ |
1772 | 1789 | { |
1773 | | - "name": "compiler_directive.fsharp", |
1774 | | - "match": "\\s?(#if|#elif|#else|#elseif|#endif|#light|#nowarn)", |
| 1790 | + "name": "keyword.control.directive.fsharp", |
| 1791 | + "match": "\\s?(#if|#elif|#elseif|#else|#endif|#light|#nowarn)", |
1775 | 1792 | "captures": {} |
1776 | 1793 | } |
1777 | 1794 | ] |
|
0 commit comments