tm-grammars 1.13.0 → 1.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,7 +57,7 @@
57
57
  }
58
58
  },
59
59
  "comment": "(class name) (\"multiplicity relationship\")? (relationship) (\"multiplicity relationship\")? (class name) :? (labelText)?",
60
- "match": "([\\w-]+)\\s(\"(?:\\d+|\\*|0..\\d+|1..\\d+|1..\\*)\")?\\s?(--o|--\\*|\\<--|--\\>|<\\.\\.|\\.\\.\\>|\\<\\|\\.\\.|\\.\\.\\|\\>|\\<\\|--|--\\|>|--\\*|--|\\.\\.|\\*--|o--)\\s(\"(?:\\d+|\\*|0..\\d+|1..\\d+|1..\\*)\")?\\s?([\\w-]+)\\s?(:)?\\s(.*)$"
60
+ "match": "(?i)([\\w-]+)\\s(\"(?:\\d+|\\*|0..\\d+|1..\\d+|1..\\*)\")?\\s?(--o|--\\*|\\<--|--\\>|<\\.\\.|\\.\\.\\>|\\<\\|\\.\\.|\\.\\.\\|\\>|\\<\\|--|--\\|>|--\\*|--|\\.\\.|\\*--|o--)\\s(\"(?:\\d+|\\*|0..\\d+|1..\\d+|1..\\*)\")?\\s?([\\w-]+)\\s?(:)?\\s(.*)$"
61
61
  },
62
62
  {
63
63
  "captures": {
@@ -111,7 +111,7 @@
111
111
  }
112
112
  },
113
113
  "comment": "(class name) : (visibility)?(function)( (function param/generic param)? )(classifier)? (return/generic return)?$",
114
- "match": "([\\w-]+)\\s?(:)\\s([\\+~#-])?([\\w-]+)(\\()([\\w-]+)?(~)?([\\w-]+)?(~)?\\s?([\\w-]+)?(\\))([*\\$]{0,2})\\s?([\\w-]+)?(~)?([\\w-]+)?(~)?$"
114
+ "match": "(?i)([\\w-]+)\\s?(:)\\s([\\+~#-])?([\\w-]+)(\\()([\\w-]+)?(~)?([\\w-]+)?(~)?\\s?([\\w-]+)?(\\))([*\\$]{0,2})\\s?([\\w-]+)?(~)?([\\w-]+)?(~)?$"
115
115
  },
116
116
  {
117
117
  "captures": {
@@ -141,7 +141,7 @@
141
141
  }
142
142
  },
143
143
  "comment": "(class name) : (visibility)?(datatype/generic data type) (attribute name)$",
144
- "match": "([\\w-]+)\\s?(:)\\s([\\+~#-])?([\\w-]+)(~)?([\\w-]+)?(~)?\\s([\\w-]+)?$"
144
+ "match": "(?i)([\\w-]+)\\s?(:)\\s([\\+~#-])?([\\w-]+)(~)?([\\w-]+)?(~)?\\s([\\w-]+)?$"
145
145
  },
146
146
  {
147
147
  "captures": {
@@ -159,10 +159,10 @@
159
159
  }
160
160
  },
161
161
  "comment": "<<(Annotation)>> (class name)",
162
- "match": "(<<)([\\w-]+)(>>)\\s?([\\w-]+)?"
162
+ "match": "(?i)(<<)([\\w-]+)(>>)\\s?([\\w-]+)?"
163
163
  },
164
164
  {
165
- "begin": "(class)\\s+([\\w-]+)(~)?([\\w-]+)?(~)?\\s?({)",
165
+ "begin": "(?i)(class)\\s+([\\w-]+)(~)?([\\w-]+)?(~)?\\s?({)",
166
166
  "beginCaptures": {
167
167
  "1": {
168
168
  "name": "keyword.control.mermaid"
@@ -196,7 +196,7 @@
196
196
  "name": "comment"
197
197
  },
198
198
  {
199
- "begin": "\\s([\\+~#-])?([\\w-]+)(\\()",
199
+ "begin": "(?i)\\s([\\+~#-])?([\\w-]+)(\\()",
200
200
  "beginCaptures": {
201
201
  "1": {
202
202
  "name": "keyword.control.mermaid"
@@ -209,7 +209,7 @@
209
209
  }
210
210
  },
211
211
  "comment": "(visibility)?(function)( (function param/generic param)? )(classifier)? (return/generic return)?$",
212
- "end": "(\\))([*\\$]{0,2})\\s?([\\w-]+)?(~)?([\\w-]+)?(~)?$",
212
+ "end": "(?i)(\\))([*\\$]{0,2})\\s?([\\w-]+)?(~)?([\\w-]+)?(~)?$",
213
213
  "endCaptures": {
214
214
  "1": {
215
215
  "name": "punctuation.parenthesis.closed.mermaid"
@@ -250,7 +250,7 @@
250
250
  }
251
251
  },
252
252
  "comment": "(TBD)",
253
- "match": "\\s*,?\\s*([\\w-]+)?(~)?([\\w-]+)?(~)?\\s?([\\w-]+)?"
253
+ "match": "(?i)\\s*,?\\s*([\\w-]+)?(~)?([\\w-]+)?(~)?\\s?([\\w-]+)?"
254
254
  }
255
255
  ]
256
256
  },
@@ -276,7 +276,7 @@
276
276
  }
277
277
  },
278
278
  "comment": "(visibility)?(datatype/generic data type) (attribute name)$",
279
- "match": "\\s([\\+~#-])?([\\w-]+)(~)?([\\w-]+)?(~)?\\s([\\w-]+)?$"
279
+ "match": "(?i)\\s([\\+~#-])?([\\w-]+)(~)?([\\w-]+)?(~)?\\s([\\w-]+)?$"
280
280
  },
281
281
  {
282
282
  "captures": {
@@ -294,7 +294,7 @@
294
294
  }
295
295
  },
296
296
  "comment": "<<(Annotation)>> (class name)",
297
- "match": "(<<)([\\w-]+)(>>)\\s?([\\w-]+)?"
297
+ "match": "(?i)(<<)([\\w-]+)(>>)\\s?([\\w-]+)?"
298
298
  }
299
299
  ]
300
300
  },
@@ -317,7 +317,7 @@
317
317
  }
318
318
  },
319
319
  "comment": "class (class name) ~?(generic type)?~?",
320
- "match": "(class)\\s+([\\w-]+)(~)?([\\w-]+)?(~)?"
320
+ "match": "(?i)(class)\\s+([\\w-]+)(~)?([\\w-]+)?(~)?"
321
321
  }
322
322
  ]
323
323
  },
@@ -341,7 +341,7 @@
341
341
  "name": "variable"
342
342
  },
343
343
  {
344
- "begin": "\\s+([\\w-]+)\\s*({)",
344
+ "begin": "(?i)\\s+([\\w-]+)\\s*({)",
345
345
  "beginCaptures": {
346
346
  "1": {
347
347
  "name": "variable"
@@ -374,7 +374,7 @@
374
374
  }
375
375
  },
376
376
  "comment": "(type) (name) (PK|FK)? (\"comment\")?",
377
- "match": "\\s*([\\w-]+)\\s+([\\w-]+)\\s+(PK|FK)?\\s*(\"[\"\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*\")?\\s*"
377
+ "match": "(?i)\\s*([\\w-]+)\\s+([\\w-]+)\\s+(PK|FK)?\\s*(\"[\"\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*\")?\\s*"
378
378
  },
379
379
  {
380
380
  "match": "\\%%.*",
@@ -401,7 +401,7 @@
401
401
  }
402
402
  },
403
403
  "comment": "(entity) (relationship) (entity) : (label)",
404
- "match": "\\s*([\\w-]+)\\s*((?:\\|o|\\|\\||}o|}\\||one or (?:zero|more|many)|zero or (?:one|more|many)|many\\((?:0|1)\\)|only one|0\\+|1\\+?)(?:..|--)(?:o\\||\\|\\||o{|\\|{|one or (?:zero|more|many)|zero or (?:one|more|many)|many\\((?:0|1)\\)|only one|0\\+|1\\+?))\\s*([\\w-]+)\\s*(:)\\s*((?:\"[\\w\\s]*\")|(?:[\\w-]+))"
404
+ "match": "(?i)\\s*([\\w-]+)\\s*((?:\\|o|\\|\\||}o|}\\||one or (?:zero|more|many)|zero or (?:one|more|many)|many\\((?:0|1)\\)|only one|0\\+|1\\+?)(?:..|--)(?:o\\||\\|\\||o{|\\|{|one or (?:zero|more|many)|zero or (?:one|more|many)|many\\((?:0|1)\\)|only one|0\\+|1\\+?))\\s*([\\w-]+)\\s*(:)\\s*((?:\"[\\w\\s]*\")|(?:[\\w-]+))"
405
405
  }
406
406
  ]
407
407
  },
@@ -428,7 +428,7 @@
428
428
  "name": "entity.name.function.mermaid"
429
429
  }
430
430
  },
431
- "match": "(dateFormat)\\s+([\\w\\-\\.]+)"
431
+ "match": "(?i)^\\s*(dateFormat)\\s+([\\w\\-\\.]+)"
432
432
  },
433
433
  {
434
434
  "captures": {
@@ -439,7 +439,7 @@
439
439
  "name": "entity.name.function.mermaid"
440
440
  }
441
441
  },
442
- "match": "(axisFormat)\\s+([\\w\\%\\/\\\\\\-\\.]+)"
442
+ "match": "(?i)^\\s*(axisFormat)\\s+([\\w\\%\\/\\\\\\-\\.]+)"
443
443
  },
444
444
  {
445
445
  "captures": {
@@ -450,7 +450,7 @@
450
450
  "name": "string"
451
451
  }
452
452
  },
453
- "match": "(tickInterval)\\s+(([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month))"
453
+ "match": "(?i)(tickInterval)\\s+(([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month))"
454
454
  },
455
455
  {
456
456
  "captures": {
@@ -461,7 +461,7 @@
461
461
  "name": "string"
462
462
  }
463
463
  },
464
- "match": "(title)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
464
+ "match": "(?i)^\\s*(title)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
465
465
  },
466
466
  {
467
467
  "captures": {
@@ -472,7 +472,7 @@
472
472
  "name": "string"
473
473
  }
474
474
  },
475
- "match": "(excludes)\\s+((?:[\\d\\-,\\s]+|monday|tuesday|wednesday|thursday|friday|saturday|sunday|weekends)+)"
475
+ "match": "(?i)^\\s*(excludes)\\s+((?:[\\d\\-,\\s]+|monday|tuesday|wednesday|thursday|friday|saturday|sunday|weekends)+)"
476
476
  },
477
477
  {
478
478
  "captures": {
@@ -483,7 +483,7 @@
483
483
  "name": "string"
484
484
  }
485
485
  },
486
- "match": "^\\s+(todayMarker)\\s+(.*)$"
486
+ "match": "(?i)^\\s+(todayMarker)\\s+(.*)$"
487
487
  },
488
488
  {
489
489
  "captures": {
@@ -494,10 +494,10 @@
494
494
  "name": "string"
495
495
  }
496
496
  },
497
- "match": "(section)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
497
+ "match": "(?i)^\\s*(section)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
498
498
  },
499
499
  {
500
- "begin": "^\\s(.*)(:)",
500
+ "begin": "(?i)^\\s(.*)(:)",
501
501
  "beginCaptures": {
502
502
  "1": {
503
503
  "name": "string"
@@ -535,7 +535,7 @@
535
535
  "name": "comment"
536
536
  },
537
537
  {
538
- "begin": "\\s*(commit)",
538
+ "begin": "(?i)^\\s*(commit)",
539
539
  "beginCaptures": {
540
540
  "1": {
541
541
  "name": "keyword.control.mermaid"
@@ -557,7 +557,7 @@
557
557
  }
558
558
  },
559
559
  "comment": "(id)(:) (\"id\")",
560
- "match": "\\s*(id)(:)\\s?(\"[^\"\\n]*\")"
560
+ "match": "(?i)\\s*(id)(:)\\s?(\"[^\"\\n]*\")"
561
561
  },
562
562
  {
563
563
  "captures": {
@@ -572,7 +572,7 @@
572
572
  }
573
573
  },
574
574
  "comment": "(type)(:) (COMMIT_TYPE)",
575
- "match": "\\s*(type)(:)\\s?(NORMAL|REVERSE|HIGHLIGHT)"
575
+ "match": "(?i)\\s*(type)(:)\\s?(NORMAL|REVERSE|HIGHLIGHT)"
576
576
  },
577
577
  {
578
578
  "captures": {
@@ -587,7 +587,7 @@
587
587
  }
588
588
  },
589
589
  "comment": "(tag)(:) (\"tag\")",
590
- "match": "\\s*(tag)(:)\\s?(\"[\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*\")"
590
+ "match": "(?i)\\s*(tag)(:)\\s?(\"[\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*\")"
591
591
  }
592
592
  ]
593
593
  },
@@ -601,7 +601,7 @@
601
601
  }
602
602
  },
603
603
  "comment": "(checkout) (branch-name)",
604
- "match": "\\s*(checkout)\\s*([^\\s\"]*)"
604
+ "match": "(?i)^\\s*(checkout)\\s*([^\\s\"]*)"
605
605
  },
606
606
  {
607
607
  "captures": {
@@ -622,7 +622,7 @@
622
622
  }
623
623
  },
624
624
  "comment": "(branch) (branch-name) (order)?(:) (number)",
625
- "match": "\\s*(branch)\\s*([^\\s\"]*)\\s*(?:(order)(:)\\s?(\\d+))?"
625
+ "match": "(?i)^\\s*(branch)\\s*([^\\s\"]*)\\s*(?:(order)(:)\\s?(\\d+))?"
626
626
  },
627
627
  {
628
628
  "captures": {
@@ -643,7 +643,7 @@
643
643
  }
644
644
  },
645
645
  "comment": "(merge) (branch-name) (tag: \"tag-name\")?",
646
- "match": "\\s*(merge)\\s*([^\\s\"]*)\\s*(?:(tag)(:)\\s?(\"[^\"\\n]*\"))?"
646
+ "match": "(?i)^\\s*(merge)\\s*([^\\s\"]*)\\s*(?:(tag)(:)\\s?(\"[^\"\\n]*\"))?"
647
647
  },
648
648
  {
649
649
  "captures": {
@@ -661,7 +661,7 @@
661
661
  }
662
662
  },
663
663
  "comment": "(cherry-pick) (id)(:)(\"commit-id\")",
664
- "match": "\\s*(cherry-pick)\\s+(id)(:)\\s*(\"[^\"\\n]*\")"
664
+ "match": "(?i)^\\s*(cherry-pick)\\s+(id)(:)\\s*(\"[^\"\\n]*\")"
665
665
  }
666
666
  ]
667
667
  },
@@ -701,7 +701,7 @@
701
701
  }
702
702
  },
703
703
  "comment": "",
704
- "match": "\\b(subgraph)\\s+(\\w+)(\\[)(\"?[\\w\\s*+%=\\\\/:\\.\\-'`,&^#$!?<>]*\"?)(\\])"
704
+ "match": "(?i)^\\s*(subgraph)\\s+(\\w+)(\\[)(\"?[\\w\\s*+%=\\\\/:\\.\\-'`,&^#$!?<>]*\"?)(\\])"
705
705
  },
706
706
  {
707
707
  "captures": {
@@ -712,15 +712,25 @@
712
712
  "name": "entity.name.function.mermaid"
713
713
  }
714
714
  },
715
- "match": "\\b(subgraph)\\s+([\\p{Letter}\\ 0-9<>]+)",
716
- "name": "meta.function.mermaid"
715
+ "match": "^\\s*(subgraph)\\s+([\\p{Letter}\\ 0-9<>]+)"
717
716
  },
718
717
  {
719
- "match": "\\b(end|RB|BT|RL|TD|LR)\\b",
718
+ "captures": {
719
+ "1": {
720
+ "name": "keyword.control.mermaid"
721
+ },
722
+ "2": {
723
+ "name": "entity.name.function.mermaid"
724
+ }
725
+ },
726
+ "match": "^(?i)\\s*(direction)\\s+(RB|BT|RL|TD|LR)"
727
+ },
728
+ {
729
+ "match": "\\b(end)\\b",
720
730
  "name": "keyword.control.mermaid"
721
731
  },
722
732
  {
723
- "begin": "(\\b(?:(?!--|==)[-\\w])+\\b\\s*)(\\(\\[|\\[\\[|\\[\\(|\\[|\\(+|\\>|\\{|\\(\\()",
733
+ "begin": "(?i)(\\b(?:(?!--|==)[-\\w])+\\b\\s*)(\\(\\[|\\[\\[|\\[\\(|\\[|\\(+|\\>|\\{|\\(\\()",
724
734
  "beginCaptures": {
725
735
  "1": {
726
736
  "name": "variable"
@@ -733,7 +743,7 @@
733
743
  }
734
744
  },
735
745
  "comment": "(Entity)(Edge/Shape)(Text)(Edge/Shape)",
736
- "end": "(\\]\\)|\\]\\]|\\)\\]|\\]|\\)+|\\}|\\)\\))",
746
+ "end": "(?i)(\\]\\)|\\]\\]|\\)\\]|\\]|\\)+|\\}|\\)\\))",
737
747
  "endCaptures": {
738
748
  "1": {
739
749
  "name": "keyword.control.mermaid"
@@ -756,7 +766,7 @@
756
766
  },
757
767
  "patterns": [
758
768
  {
759
- "begin": "([^\"]*)",
769
+ "begin": "(?i)([^\"]*)",
760
770
  "beginCaptures": {
761
771
  "1": {
762
772
  "name": "string"
@@ -784,19 +794,19 @@
784
794
  }
785
795
  },
786
796
  "comment": "(single line text)",
787
- "match": "\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
797
+ "match": "(?i)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
788
798
  }
789
799
  ]
790
800
  },
791
801
  {
792
- "begin": "\\s*((?:-{2,5}|={2,5})[xo>]?\\|)",
802
+ "begin": "(?i)\\s*((?:-{2,5}|={2,5})[xo>]?\\|)",
793
803
  "beginCaptures": {
794
804
  "1": {
795
805
  "name": "keyword.control.mermaid"
796
806
  }
797
807
  },
798
808
  "comment": "(Graph Link)(\"Multiline text\")(Graph Link)",
799
- "end": "(\\|)",
809
+ "end": "(?i)(\\|)",
800
810
  "endCaptures": {
801
811
  "1": {
802
812
  "name": "keyword.control.mermaid"
@@ -819,7 +829,7 @@
819
829
  },
820
830
  "patterns": [
821
831
  {
822
- "begin": "([^\"]*)",
832
+ "begin": "(?i)([^\"]*)",
823
833
  "beginCaptures": {
824
834
  "1": {
825
835
  "name": "string"
@@ -847,7 +857,7 @@
847
857
  }
848
858
  },
849
859
  "comment": "(single line text)",
850
- "match": "\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
860
+ "match": "(?i)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
851
861
  }
852
862
  ]
853
863
  },
@@ -864,7 +874,7 @@
864
874
  }
865
875
  },
866
876
  "comment": "(Graph Link Start Arrow)(Text)(Graph Link End Arrow)",
867
- "match": "\\s*([xo<]?(?:-{2,5}|={2,5}|-\\.{1,3}|-\\.))((?:(?!--|==)[\\w\\s*+%=\\\\/:\\.\\-'`,\"&^#$!?<>\\[\\]])*)((?:-{2,5}|={2,5}|\\.{1,3}-|\\.-)[xo>]?)"
877
+ "match": "(?i)\\s*([xo<]?(?:-{2,5}|={2,5}|-\\.{1,3}|-\\.))((?:(?!--|==)[\\w\\s*+%=\\\\/:\\.\\-'`,\"&^#$!?<>\\[\\]])*)((?:-{2,5}|={2,5}|\\.{1,3}-|\\.-)[xo>]?)"
868
878
  },
869
879
  {
870
880
  "captures": {
@@ -873,7 +883,7 @@
873
883
  }
874
884
  },
875
885
  "comment": "(Graph Link)",
876
- "match": "\\s*([ox<]?(?:-.{1,3}-|-{1,3}|={1,3})[ox>]?)"
886
+ "match": "(?i)\\s*([ox<]?(?:-.{1,3}-|-{1,3}|={1,3})[ox>]?)"
877
887
  },
878
888
  {
879
889
  "comment": "Entity",
@@ -893,7 +903,7 @@
893
903
  }
894
904
  },
895
905
  "comment": "(Class)(Node(s))(ClassName)",
896
- "match": "\\s*(class)\\s+(\\b[-,\\w]+)\\s+(\\b\\w+\\b)"
906
+ "match": "(?i)\\s*(class)\\s+(\\b[-,\\w]+)\\s+(\\b\\w+\\b)"
897
907
  },
898
908
  {
899
909
  "captures": {
@@ -908,7 +918,7 @@
908
918
  }
909
919
  },
910
920
  "comment": "(ClassDef)(ClassName)(Styles)",
911
- "match": "\\s*(classDef)\\s+(\\b\\w+\\b)\\s+(\\b[-,:;#\\w]+)"
921
+ "match": "(?i)\\s*(classDef)\\s+(\\b\\w+\\b)\\s+(\\b[-,:;#\\w]+)"
912
922
  },
913
923
  {
914
924
  "captures": {
@@ -926,7 +936,7 @@
926
936
  }
927
937
  },
928
938
  "comment": "(Click)(Entity)(Link)?(Tooltip)",
929
- "match": "\\s*(click)\\s+(\\b[-\\w]+\\b\\s*)(\\b\\w+\\b)?\\s(\"*.*\")"
939
+ "match": "(?i)\\s*(click)\\s+(\\b[-\\w]+\\b\\s*)(\\b\\w+\\b)?\\s(\"*.*\")"
930
940
  }
931
941
  ]
932
942
  },
@@ -953,10 +963,10 @@
953
963
  "name": "string"
954
964
  }
955
965
  },
956
- "match": "(title)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
966
+ "match": "(?i)^\\s*(title)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
957
967
  },
958
968
  {
959
- "begin": "\\s(.*)(:)",
969
+ "begin": "(?i)\\s(.*)(:)",
960
970
  "beginCaptures": {
961
971
  "1": {
962
972
  "name": "string"
@@ -975,6 +985,98 @@
975
985
  }
976
986
  ]
977
987
  },
988
+ {
989
+ "begin": "^\\s*(quadrantChart)",
990
+ "beginCaptures": {
991
+ "1": {
992
+ "name": "keyword.control.mermaid"
993
+ }
994
+ },
995
+ "comment": "Quadrant Chart",
996
+ "end": "(^|\\G)(?=\\s*[`:~]{3,}\\s*$)",
997
+ "patterns": [
998
+ {
999
+ "match": "\\%%.*",
1000
+ "name": "comment"
1001
+ },
1002
+ {
1003
+ "captures": {
1004
+ "1": {
1005
+ "name": "keyword.control.mermaid"
1006
+ },
1007
+ "2": {
1008
+ "name": "string"
1009
+ }
1010
+ },
1011
+ "match": "(?i)^\\s*(title)\\s*([\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
1012
+ },
1013
+ {
1014
+ "begin": "(?i)^\\s*([xy]-axis)\\s+((?:(?!-->)[$&%/#.,?!*+=\\'\\\\\\-\\w\\s])*)",
1015
+ "beginCaptures": {
1016
+ "1": {
1017
+ "name": "keyword.control.mermaid"
1018
+ },
1019
+ "2": {
1020
+ "name": "string"
1021
+ }
1022
+ },
1023
+ "comment": "(x|y-axis) (text) (-->)? (text)?",
1024
+ "end": "$",
1025
+ "patterns": [
1026
+ {
1027
+ "captures": {
1028
+ "1": {
1029
+ "name": "keyword.control.mermaid"
1030
+ },
1031
+ "2": {
1032
+ "name": "string"
1033
+ }
1034
+ },
1035
+ "comment": "(-->) (text)",
1036
+ "match": "(?i)\\s*(-->)\\s*([$&%/#.,?!*+=\\'\\\\\\-\\w\\s]*)"
1037
+ }
1038
+ ]
1039
+ },
1040
+ {
1041
+ "captures": {
1042
+ "1": {
1043
+ "name": "keyword.control.mermaid"
1044
+ },
1045
+ "2": {
1046
+ "name": "string"
1047
+ }
1048
+ },
1049
+ "match": "(?i)^\\s*(quadrant-[1234])\\s*([\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
1050
+ },
1051
+ {
1052
+ "captures": {
1053
+ "1": {
1054
+ "name": "string"
1055
+ },
1056
+ "2": {
1057
+ "name": "keyword.control.mermaid"
1058
+ },
1059
+ "3": {
1060
+ "name": "keyword.control.mermaid"
1061
+ },
1062
+ "4": {
1063
+ "name": "constant.numeric.decimal.mermaid"
1064
+ },
1065
+ "5": {
1066
+ "name": "keyword.control.mermaid"
1067
+ },
1068
+ "6": {
1069
+ "name": "constant.numeric.decimal.mermaid"
1070
+ },
1071
+ "7": {
1072
+ "name": "keyword.control.mermaid"
1073
+ }
1074
+ },
1075
+ "comment": "(text)(:) ([)(decimal)(,) (decimal)(])",
1076
+ "match": "(?i)\\s*([$&%/#.,?!*+=\\'\\\\\\-\\w\\s]*)\\s*(:)\\s*(\\[)\\s*(\\d\\.\\d+)\\s*(,)\\s*(\\d\\.\\d+)\\s*(\\])"
1077
+ }
1078
+ ]
1079
+ },
978
1080
  {
979
1081
  "begin": "^\\s*(requirementDiagram)",
980
1082
  "beginCaptures": {
@@ -990,7 +1092,7 @@
990
1092
  "name": "comment"
991
1093
  },
992
1094
  {
993
- "begin": "^\\s*((?i)(?:functional|interface|performance|physical)?requirement|designConstraint)\\s*([\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)\\s*({)",
1095
+ "begin": "(?i)^\\s*((?:functional|interface|performance|physical)?requirement|designConstraint)\\s*([\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)\\s*({)",
994
1096
  "beginCaptures": {
995
1097
  "1": {
996
1098
  "name": "keyword.control.mermaid"
@@ -1003,7 +1105,7 @@
1003
1105
  }
1004
1106
  },
1005
1107
  "comment": "(requirement) (name) ({)",
1006
- "end": "\\s*(})",
1108
+ "end": "(?i)\\s*(})",
1007
1109
  "endCaptures": {
1008
1110
  "1": {
1009
1111
  "name": "keyword.control.mermaid"
@@ -1020,7 +1122,7 @@
1020
1122
  }
1021
1123
  },
1022
1124
  "comment": "(id:) (variable id)",
1023
- "match": "\\s*(id:)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1125
+ "match": "(?i)\\s*(id:)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1024
1126
  },
1025
1127
  {
1026
1128
  "captures": {
@@ -1032,7 +1134,7 @@
1032
1134
  }
1033
1135
  },
1034
1136
  "comment": "(text:) (text string)",
1035
- "match": "\\s*(text:)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1137
+ "match": "(?i)\\s*(text:)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1036
1138
  },
1037
1139
  {
1038
1140
  "captures": {
@@ -1044,7 +1146,7 @@
1044
1146
  }
1045
1147
  },
1046
1148
  "comment": "(risk:) (risk option)",
1047
- "match": "\\s*(risk:)\\s*(low|medium|high)\\s*$"
1149
+ "match": "(?i)\\s*(risk:)\\s*(low|medium|high)\\s*$"
1048
1150
  },
1049
1151
  {
1050
1152
  "captures": {
@@ -1056,12 +1158,12 @@
1056
1158
  }
1057
1159
  },
1058
1160
  "comment": "(verifyMethod)(:) (method)",
1059
- "match": "\\s*(verifymethod:)\\s*(analysis|inspection|test|demonstration)\\s*$"
1161
+ "match": "(?i)\\s*(verifymethod:)\\s*(analysis|inspection|test|demonstration)\\s*$"
1060
1162
  }
1061
1163
  ]
1062
1164
  },
1063
1165
  {
1064
- "begin": "^\\s*(element)\\s*([\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)\\s*({)",
1166
+ "begin": "(?i)^\\s*(element)\\s*([\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)\\s*({)",
1065
1167
  "beginCaptures": {
1066
1168
  "1": {
1067
1169
  "name": "keyword.control.mermaid"
@@ -1074,7 +1176,7 @@
1074
1176
  }
1075
1177
  },
1076
1178
  "comment": "(element) (name) ({)",
1077
- "end": "\\s*(})",
1179
+ "end": "(?i)\\s*(})",
1078
1180
  "endCaptures": {
1079
1181
  "1": {
1080
1182
  "name": "keyword.control.mermaid"
@@ -1091,7 +1193,7 @@
1091
1193
  }
1092
1194
  },
1093
1195
  "comment": "(type:) (user type)",
1094
- "match": "\\s*(type:)\\s*([\"$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1196
+ "match": "(?i)\\s*(type:)\\s*([\"$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1095
1197
  },
1096
1198
  {
1097
1199
  "captures": {
@@ -1103,7 +1205,7 @@
1103
1205
  }
1104
1206
  },
1105
1207
  "comment": "(docref:) (user ref)",
1106
- "match": "\\s*(?i)(docref:)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1208
+ "match": "(?i)\\s*(docref:)\\s*([$&%\\^/#.,?!;:*+<>_\\'\\\\\\w\\s]+)"
1107
1209
  }
1108
1210
  ]
1109
1211
  },
@@ -1126,7 +1228,7 @@
1126
1228
  }
1127
1229
  },
1128
1230
  "comment": "(source) (-) (type) (->) (destination)",
1129
- "match": "^\\s*([\\w]+)\\s*(-)\\s*((?i)contains|copies|derives|satisfies|verifies|refines|traces)\\s*(->)\\s*([\\w]+)\\s*$"
1231
+ "match": "(?i)^\\s*([\\w]+)\\s*(-)\\s*(contains|copies|derives|satisfies|verifies|refines|traces)\\s*(->)\\s*([\\w]+)\\s*$"
1130
1232
  },
1131
1233
  {
1132
1234
  "captures": {
@@ -1147,7 +1249,7 @@
1147
1249
  }
1148
1250
  },
1149
1251
  "comment": "(destination) (<-) (type) (-) (source)",
1150
- "match": "^\\s*([\\w]+)\\s*(<-)\\s*((?i)contains|copies|derives|satisfies|verifies|refines|traces)\\s*(-)\\s*([\\w]+)\\s*$"
1252
+ "match": "(?i)^\\s*([\\w]+)\\s*(<-)\\s*(contains|copies|derives|satisfies|verifies|refines|traces)\\s*(-)\\s*([\\w]+)\\s*$"
1151
1253
  }
1152
1254
  ]
1153
1255
  },
@@ -1178,7 +1280,7 @@
1178
1280
  }
1179
1281
  },
1180
1282
  "comment": "(title)(title text)",
1181
- "match": "(title)\\s*(:)?\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!:*+=<>\\'\\\\\\-\\w\\s]*)"
1283
+ "match": "(?i)(title)\\s*(:)?\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!:*+=<>\\'\\\\\\-\\w\\s]*)"
1182
1284
  },
1183
1285
  {
1184
1286
  "captures": {
@@ -1196,7 +1298,7 @@
1196
1298
  }
1197
1299
  },
1198
1300
  "comment": "(participant)(Actor)(as)?(Label)?",
1199
- "match": "\\s*(participant|actor)\\s+((?:(?! as )[\"\\(\\)$&%\\^/#.?!*=<>\\'\\\\\\w\\s])+)\\s*(as)?\\s([\"\\(\\)$&%\\^/#.,?!*=<>\\'\\\\\\w\\s]+)?"
1301
+ "match": "(?i)\\s*(participant|actor)\\s+((?:(?! as )[\"\\(\\)$&%\\^/#.?!*=<>\\'\\\\\\w\\s])+)\\s*(as)?\\s([\"\\(\\)$&%\\^/#.,?!*=<>\\'\\\\\\w\\s]+)?"
1200
1302
  },
1201
1303
  {
1202
1304
  "captures": {
@@ -1208,7 +1310,7 @@
1208
1310
  }
1209
1311
  },
1210
1312
  "comment": "(activate/deactivate)(Actor)",
1211
- "match": "\\s*((?:de)?activate)\\s+(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?\\s*)"
1313
+ "match": "(?i)\\s*((?:de)?activate)\\s+(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?\\s*)"
1212
1314
  },
1213
1315
  {
1214
1316
  "captures": {
@@ -1235,7 +1337,7 @@
1235
1337
  }
1236
1338
  },
1237
1339
  "comment": "(Note)(direction)(Actor)(,)?(Actor)?(:)(Message)",
1238
- "match": "\\s*(Note)\\s+((?:left|right)\\sof|over)\\s+(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?\\s*)(,)?(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?\\s*)?(:)(?:\\s+([^;#]*))?"
1340
+ "match": "(?i)\\s*(Note)\\s+((?:left|right)\\sof|over)\\s+(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?\\s*)(,)?(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?\\s*)?(:)(?:\\s+([^;#]*))?"
1239
1341
  },
1240
1342
  {
1241
1343
  "captures": {
@@ -1247,7 +1349,7 @@
1247
1349
  }
1248
1350
  },
1249
1351
  "comment": "(loop)(loop text)",
1250
- "match": "\\s*(loop)(?:\\s+([^;#]*))?"
1352
+ "match": "(?i)\\s*(loop)(?:\\s+([^;#]*))?"
1251
1353
  },
1252
1354
  {
1253
1355
  "captures": {
@@ -1268,7 +1370,7 @@
1268
1370
  }
1269
1371
  },
1270
1372
  "comment": "(alt/else/option/par/and/autonumber/critical/opt)(text)",
1271
- "match": "\\s*(alt|else|option|par|and|rect|autonumber|critical|opt)(?:\\s+([^#;]*))?"
1373
+ "match": "(?i)\\s*(alt|else|option|par|and|rect|autonumber|critical|opt)(?:\\s+([^#;]*))?$"
1272
1374
  },
1273
1375
  {
1274
1376
  "captures": {
@@ -1289,7 +1391,7 @@
1289
1391
  }
1290
1392
  },
1291
1393
  "comment": "(Actor)(Arrow)(Actor)(:)(Message)",
1292
- "match": "\\s*(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?)\\s*(-?-(?:\\>|x|\\))\\>?[+-]?)\\s*([\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?)\\s*(:)\\s*([^;#]*)"
1394
+ "match": "(?i)\\s*(\\b[\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?)\\s*(-?-(?:\\>|x|\\))\\>?[+-]?)\\s*([\"()$&%^/#.?!*=<>'\\\\\\w\\s]+\\b\\)?)\\s*(:)\\s*([^;#]*)"
1293
1395
  },
1294
1396
  {
1295
1397
  "captures": {
@@ -1304,7 +1406,7 @@
1304
1406
  }
1305
1407
  },
1306
1408
  "comment": "(box transparent text)",
1307
- "match": "\\s*(box)\\s+(transparent)(?:\\s+([^;#]*))?"
1409
+ "match": "(?i)\\s*(box)\\s+(transparent)(?:\\s+([^;#]*))?"
1308
1410
  },
1309
1411
  {
1310
1412
  "captures": {
@@ -1316,7 +1418,7 @@
1316
1418
  }
1317
1419
  },
1318
1420
  "comment": "(box text)",
1319
- "match": "\\s*(box)(?:\\s+([^;#]*))?"
1421
+ "match": "(?i)\\s*(box)(?:\\s+([^;#]*))?"
1320
1422
  }
1321
1423
  ]
1322
1424
  },
@@ -1370,10 +1472,10 @@
1370
1472
  }
1371
1473
  },
1372
1474
  "comment": "(state) : (description)",
1373
- "match": "([\\w-]+)\\s+(:)\\s+(\\s*[-\\w\\s]+\\b)"
1475
+ "match": "(?i)([\\w-]+)\\s+(:)\\s+(\\s*[-\\w\\s]+\\b)"
1374
1476
  },
1375
1477
  {
1376
- "begin": "(state)",
1478
+ "begin": "(?i)^\\s*(state)\\s+",
1377
1479
  "beginCaptures": {
1378
1480
  "1": {
1379
1481
  "name": "keyword.control.mermaid"
@@ -1395,7 +1497,7 @@
1395
1497
  }
1396
1498
  },
1397
1499
  "comment": "\"(description)\" as (state)",
1398
- "match": "\\s+(\"[-\\w\\s]+\\b\")\\s+(as)\\s+([\\w-]+)"
1500
+ "match": "(?i)\\s*(\"[-\\w\\s]+\\b\")\\s+(as)\\s+([\\w-]+)"
1399
1501
  },
1400
1502
  {
1401
1503
  "captures": {
@@ -1407,7 +1509,7 @@
1407
1509
  }
1408
1510
  },
1409
1511
  "comment": "(state name) {",
1410
- "match": "\\s+([\\w-]+)\\s+({)"
1512
+ "match": "(?i)\\s*([\\w-]+)\\s+({)"
1411
1513
  },
1412
1514
  {
1413
1515
  "captures": {
@@ -1419,12 +1521,12 @@
1419
1521
  }
1420
1522
  },
1421
1523
  "comment": "(state name) <<fork|join>>",
1422
- "match": "\\s+([\\w-]+)\\s+(<<(?:fork|join)>>)"
1524
+ "match": "(?i)\\s*([\\w-]+)\\s+(<<(?:fork|join)>>)"
1423
1525
  }
1424
1526
  ]
1425
1527
  },
1426
1528
  {
1427
- "begin": "([\\w-]+)\\s+(-->)",
1529
+ "begin": "(?i)([\\w-]+)\\s+(-->)",
1428
1530
  "beginCaptures": {
1429
1531
  "1": {
1430
1532
  "name": "variable"
@@ -1449,7 +1551,7 @@
1449
1551
  }
1450
1552
  },
1451
1553
  "comment": "(state) (:)? (transition text)?",
1452
- "match": "\\s+([\\w-]+)\\s*(:)?\\s*([^\\n:]+)?"
1554
+ "match": "(?i)\\s+([\\w-]+)\\s*(:)?\\s*([^\\n:]+)?"
1453
1555
  },
1454
1556
  {
1455
1557
  "captures": {
@@ -1464,7 +1566,7 @@
1464
1566
  }
1465
1567
  },
1466
1568
  "comment": "[*] (:)? (transition text)?",
1467
- "match": "(\\[\\*\\])\\s*(:)?\\s*([^\\n:]+)?"
1569
+ "match": "(?i)(\\[\\*\\])\\s*(:)?\\s*([^\\n:]+)?"
1468
1570
  }
1469
1571
  ]
1470
1572
  },
@@ -1487,7 +1589,7 @@
1487
1589
  }
1488
1590
  },
1489
1591
  "comment": "[*] --> (state) (:)? (transition text)?",
1490
- "match": "(\\[\\*\\])\\s+(-->)\\s+([\\w-]+)\\s*(:)?\\s*([^\\n:]+)?"
1592
+ "match": "(?i)(\\[\\*\\])\\s+(-->)\\s+([\\w-]+)\\s*(:)?\\s*([^\\n:]+)?"
1491
1593
  },
1492
1594
  {
1493
1595
  "captures": {
@@ -1505,10 +1607,10 @@
1505
1607
  }
1506
1608
  },
1507
1609
  "comment": "note left|right of (state name)",
1508
- "match": "(note (?:left|right) of)\\s+([\\w-]+)\\s+(:)\\s*([^\\n:]+)"
1610
+ "match": "(?i)^\\s*(note (?:left|right) of)\\s+([\\w-]+)\\s+(:)\\s*([^\\n:]+)"
1509
1611
  },
1510
1612
  {
1511
- "begin": "(note (?:left|right) of)\\s+([\\w-]+)(.|\\n)",
1613
+ "begin": "(?i)^\\s*(note (?:left|right) of)\\s+([\\w-]+)(.|\\n)",
1512
1614
  "beginCaptures": {
1513
1615
  "1": {
1514
1616
  "name": "keyword.control.mermaid"
@@ -1519,7 +1621,7 @@
1519
1621
  },
1520
1622
  "comment": "note left|right of (state name) (note text) end note",
1521
1623
  "contentName": "string",
1522
- "end": "(end note)",
1624
+ "end": "(?i)(end note)",
1523
1625
  "endCaptures": {
1524
1626
  "1": {
1525
1627
  "name": "keyword.control.mermaid"
@@ -1551,10 +1653,10 @@
1551
1653
  "name": "string"
1552
1654
  }
1553
1655
  },
1554
- "match": "(title|section)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
1656
+ "match": "(?i)^\\s*(title|section)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
1555
1657
  },
1556
1658
  {
1557
- "begin": "\\s*([\"\\(\\)$&%\\^/.,?!*+=<>\\'\\\\\\-\\w\\s]*)\\s*(:)\\s*(\\d+)\\s*(:)",
1659
+ "begin": "(?i)\\s*([\"\\(\\)$&%\\^/.,?!*+=<>\\'\\\\\\-\\w\\s]*)\\s*(:)\\s*(\\d+)\\s*(:)",
1558
1660
  "beginCaptures": {
1559
1661
  "1": {
1560
1662
  "name": "string"
@@ -1578,7 +1680,215 @@
1578
1680
  }
1579
1681
  },
1580
1682
  "comment": "(taskName)",
1581
- "match": "\\s*,?\\s*([^,#\\n]+)"
1683
+ "match": "(?i)\\s*,?\\s*([^,#\\n]+)"
1684
+ }
1685
+ ]
1686
+ }
1687
+ ]
1688
+ },
1689
+ {
1690
+ "begin": "^\\s*(xychart(?:-beta)?(?:\\s+horizontal)?)",
1691
+ "beginCaptures": {
1692
+ "1": {
1693
+ "name": "keyword.control.mermaid"
1694
+ }
1695
+ },
1696
+ "comment": "XY Chart",
1697
+ "end": "(^|\\G)(?=\\s*[`:~]{3,}\\s*$)",
1698
+ "patterns": [
1699
+ {
1700
+ "match": "\\%%.*",
1701
+ "name": "comment"
1702
+ },
1703
+ {
1704
+ "captures": {
1705
+ "1": {
1706
+ "name": "keyword.control.mermaid"
1707
+ },
1708
+ "2": {
1709
+ "name": "string"
1710
+ }
1711
+ },
1712
+ "match": "(?i)^\\s*(title)\\s+(\\s*[\"\\(\\)$&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*)"
1713
+ },
1714
+ {
1715
+ "begin": "(?i)^\\s*(x-axis)",
1716
+ "beginCaptures": {
1717
+ "1": {
1718
+ "name": "keyword.control.mermaid"
1719
+ }
1720
+ },
1721
+ "comment": "(x-axis)",
1722
+ "end": "$",
1723
+ "patterns": [
1724
+ {
1725
+ "captures": {
1726
+ "1": {
1727
+ "name": "constant.numeric.decimal.mermaid"
1728
+ },
1729
+ "2": {
1730
+ "name": "keyword.control.mermaid"
1731
+ },
1732
+ "3": {
1733
+ "name": "constant.numeric.decimal.mermaid"
1734
+ }
1735
+ },
1736
+ "comment": "(decimal) (-->) (decimal)",
1737
+ "match": "(?i)\\s*([-+]?\\d+\\.?\\d*)\\s*(-->)\\s*([-+]?\\d+\\.?\\d*)"
1738
+ },
1739
+ {
1740
+ "captures": {
1741
+ "1": {
1742
+ "name": "string"
1743
+ }
1744
+ },
1745
+ "comment": "(\"text\")",
1746
+ "match": "(?i)\\s+(\"[\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*\")"
1747
+ },
1748
+ {
1749
+ "captures": {
1750
+ "1": {
1751
+ "name": "string"
1752
+ }
1753
+ },
1754
+ "comment": "(text)",
1755
+ "match": "(?i)\\s+([\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w]*)"
1756
+ },
1757
+ {
1758
+ "begin": "\\s*(\\[)",
1759
+ "beginCaptures": {
1760
+ "1": {
1761
+ "name": "keyword.control.mermaid"
1762
+ }
1763
+ },
1764
+ "comment": "([)(text)(,)(text)*(])",
1765
+ "end": "\\s*(\\])",
1766
+ "endCaptures": {
1767
+ "1": {
1768
+ "name": "keyword.control.mermaid"
1769
+ }
1770
+ },
1771
+ "patterns": [
1772
+ {
1773
+ "captures": {
1774
+ "1": {
1775
+ "name": "constant.numeric.decimal.mermaid"
1776
+ }
1777
+ },
1778
+ "comment": "(decimal)",
1779
+ "match": "(?i)\\s*([-+]?\\d+\\.?\\d*)"
1780
+ },
1781
+ {
1782
+ "captures": {
1783
+ "1": {
1784
+ "name": "string"
1785
+ }
1786
+ },
1787
+ "comment": "(\"text\")",
1788
+ "match": "(?i)\\s*(\"[\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*\")"
1789
+ },
1790
+ {
1791
+ "captures": {
1792
+ "1": {
1793
+ "name": "string"
1794
+ }
1795
+ },
1796
+ "comment": "(text)",
1797
+ "match": "(?i)\\s*([\\($&%\\^/#.?!;:*+=<>\\'\\\\\\-\\w\\s]+)"
1798
+ },
1799
+ {
1800
+ "captures": {
1801
+ "1": {
1802
+ "name": "keyword.control.mermaid"
1803
+ }
1804
+ },
1805
+ "comment": "(,)",
1806
+ "match": "(?i)\\s*(,)"
1807
+ }
1808
+ ]
1809
+ }
1810
+ ]
1811
+ },
1812
+ {
1813
+ "begin": "(?i)^\\s*(y-axis)",
1814
+ "beginCaptures": {
1815
+ "1": {
1816
+ "name": "keyword.control.mermaid"
1817
+ }
1818
+ },
1819
+ "comment": "(y-axis)",
1820
+ "end": "$",
1821
+ "patterns": [
1822
+ {
1823
+ "captures": {
1824
+ "1": {
1825
+ "name": "constant.numeric.decimal.mermaid"
1826
+ },
1827
+ "2": {
1828
+ "name": "keyword.control.mermaid"
1829
+ },
1830
+ "3": {
1831
+ "name": "constant.numeric.decimal.mermaid"
1832
+ }
1833
+ },
1834
+ "comment": "(decimal) (-->) (decimal)",
1835
+ "match": "(?i)\\s*([-+]?\\d+\\.?\\d*)\\s*(-->)\\s*([-+]?\\d+\\.?\\d*)"
1836
+ },
1837
+ {
1838
+ "captures": {
1839
+ "1": {
1840
+ "name": "string"
1841
+ }
1842
+ },
1843
+ "comment": "(\"text\")",
1844
+ "match": "(?i)\\s+(\"[\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w\\s]*\")"
1845
+ },
1846
+ {
1847
+ "captures": {
1848
+ "1": {
1849
+ "name": "string"
1850
+ }
1851
+ },
1852
+ "comment": "(text)",
1853
+ "match": "(?i)\\s+([\\($&%\\^/#.,?!;:*+=<>\\'\\\\\\-\\w]*)"
1854
+ }
1855
+ ]
1856
+ },
1857
+ {
1858
+ "begin": "(?i)^\\s*(line|bar)\\s*(\\[)",
1859
+ "beginCaptures": {
1860
+ "1": {
1861
+ "name": "keyword.control.mermaid"
1862
+ },
1863
+ "2": {
1864
+ "name": "keyword.control.mermaid"
1865
+ }
1866
+ },
1867
+ "comment": "(line|bar) ([)(decimal)+(])",
1868
+ "end": "\\s*(\\])",
1869
+ "endCaptures": {
1870
+ "1": {
1871
+ "name": "keyword.control.mermaid"
1872
+ }
1873
+ },
1874
+ "patterns": [
1875
+ {
1876
+ "captures": {
1877
+ "1": {
1878
+ "name": "constant.numeric.decimal.mermaid"
1879
+ }
1880
+ },
1881
+ "comment": "(decimal)",
1882
+ "match": "(?i)\\s*([-+]?\\d+\\.?\\d*)"
1883
+ },
1884
+ {
1885
+ "captures": {
1886
+ "1": {
1887
+ "name": "keyword.control.mermaid"
1888
+ }
1889
+ },
1890
+ "comment": "(,)",
1891
+ "match": "(?i)\\s*(,)"
1582
1892
  }
1583
1893
  ]
1584
1894
  }