cucumber-gherkin 30.1.0 → 30.1.1

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.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # This file is generated. Do not edit! Edit gherkin-ruby.razor instead.
4
2
  require_relative 'ast_builder'
5
3
  require_relative 'token_matcher'
@@ -7,6 +5,7 @@ require_relative 'token_scanner'
7
5
  require_relative 'errors'
8
6
 
9
7
  module Gherkin
8
+
10
9
  RULE_TYPE = [
11
10
  :None,
12
11
  :_EOF, # #EOF
@@ -39,8 +38,8 @@ module Gherkin
39
38
  :DataTable, # DataTable! := #TableRow+
40
39
  :DocString, # DocString! := #DocStringSeparator #Other* #DocStringSeparator
41
40
  :Tags, # Tags! := #TagLine+
42
- :DescriptionHelper, # DescriptionHelper := #Empty* Description?
43
- :Description, # Description! := (#Other | #Comment)+
41
+ :DescriptionHelper, # DescriptionHelper := #Empty* Description? #Comment*
42
+ :Description, # Description! := #Other+
44
43
  ]
45
44
 
46
45
  class ParserContext
@@ -287,6 +286,8 @@ module Gherkin
287
286
  match_token_at_state32(token, context)
288
287
  when 33
289
288
  match_token_at_state33(token, context)
289
+ when 34
290
+ match_token_at_state34(token, context)
290
291
  when 35
291
292
  match_token_at_state35(token, context)
292
293
  when 36
@@ -301,8 +302,22 @@ module Gherkin
301
302
  match_token_at_state40(token, context)
302
303
  when 41
303
304
  match_token_at_state41(token, context)
304
- when 42
305
- match_token_at_state42(token, context)
305
+ when 43
306
+ match_token_at_state43(token, context)
307
+ when 44
308
+ match_token_at_state44(token, context)
309
+ when 45
310
+ match_token_at_state45(token, context)
311
+ when 46
312
+ match_token_at_state46(token, context)
313
+ when 47
314
+ match_token_at_state47(token, context)
315
+ when 48
316
+ match_token_at_state48(token, context)
317
+ when 49
318
+ match_token_at_state49(token, context)
319
+ when 50
320
+ match_token_at_state50(token, context)
306
321
  else
307
322
  raise InvalidOperationException, "Unknown state: #{state}"
308
323
  end
@@ -313,7 +328,7 @@ module Gherkin
313
328
  def match_token_at_state0(token, context)
314
329
  if match_EOF(context, token)
315
330
  build(context, token);
316
- return 34
331
+ return 42
317
332
  end
318
333
  if match_Language(context, token)
319
334
  start_rule(context, :Feature);
@@ -413,22 +428,21 @@ module Gherkin
413
428
  end_rule(context, :FeatureHeader);
414
429
  end_rule(context, :Feature);
415
430
  build(context, token);
416
- return 34
431
+ return 42
417
432
  end
418
433
  if match_Empty(context, token)
419
434
  build(context, token);
420
435
  return 3
421
436
  end
422
437
  if match_Comment(context, token)
423
- start_rule(context, :Description);
424
438
  build(context, token);
425
- return 4
439
+ return 5
426
440
  end
427
441
  if match_BackgroundLine(context, token)
428
442
  end_rule(context, :FeatureHeader);
429
443
  start_rule(context, :Background);
430
444
  build(context, token);
431
- return 5
445
+ return 6
432
446
  end
433
447
  if match_TagLine(context, token)
434
448
  if lookahead0(context, token)
@@ -436,7 +450,7 @@ module Gherkin
436
450
  start_rule(context, :ScenarioDefinition);
437
451
  start_rule(context, :Tags);
438
452
  build(context, token);
439
- return 9
453
+ return 11
440
454
  end
441
455
  end
442
456
  if match_TagLine(context, token)
@@ -445,21 +459,21 @@ module Gherkin
445
459
  start_rule(context, :RuleHeader);
446
460
  start_rule(context, :Tags);
447
461
  build(context, token);
448
- return 18
462
+ return 22
449
463
  end
450
464
  if match_ScenarioLine(context, token)
451
465
  end_rule(context, :FeatureHeader);
452
466
  start_rule(context, :ScenarioDefinition);
453
467
  start_rule(context, :Scenario);
454
468
  build(context, token);
455
- return 10
469
+ return 12
456
470
  end
457
471
  if match_RuleLine(context, token)
458
472
  end_rule(context, :FeatureHeader);
459
473
  start_rule(context, :Rule);
460
474
  start_rule(context, :RuleHeader);
461
475
  build(context, token);
462
- return 19
476
+ return 23
463
477
  end
464
478
  if match_Other(context, token)
465
479
  start_rule(context, :Description);
@@ -475,25 +489,26 @@ module Gherkin
475
489
  add_error(context, error)
476
490
  return 3
477
491
  end
478
- # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
492
+ # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0
479
493
  def match_token_at_state4(token, context)
480
494
  if match_EOF(context, token)
481
495
  end_rule(context, :Description);
482
496
  end_rule(context, :FeatureHeader);
483
497
  end_rule(context, :Feature);
484
498
  build(context, token);
485
- return 34
499
+ return 42
486
500
  end
487
501
  if match_Comment(context, token)
502
+ end_rule(context, :Description);
488
503
  build(context, token);
489
- return 4
504
+ return 5
490
505
  end
491
506
  if match_BackgroundLine(context, token)
492
507
  end_rule(context, :Description);
493
508
  end_rule(context, :FeatureHeader);
494
509
  start_rule(context, :Background);
495
510
  build(context, token);
496
- return 5
511
+ return 6
497
512
  end
498
513
  if match_TagLine(context, token)
499
514
  if lookahead0(context, token)
@@ -502,7 +517,7 @@ module Gherkin
502
517
  start_rule(context, :ScenarioDefinition);
503
518
  start_rule(context, :Tags);
504
519
  build(context, token);
505
- return 9
520
+ return 11
506
521
  end
507
522
  end
508
523
  if match_TagLine(context, token)
@@ -512,7 +527,7 @@ module Gherkin
512
527
  start_rule(context, :RuleHeader);
513
528
  start_rule(context, :Tags);
514
529
  build(context, token);
515
- return 18
530
+ return 22
516
531
  end
517
532
  if match_ScenarioLine(context, token)
518
533
  end_rule(context, :Description);
@@ -520,7 +535,7 @@ module Gherkin
520
535
  start_rule(context, :ScenarioDefinition);
521
536
  start_rule(context, :Scenario);
522
537
  build(context, token);
523
- return 10
538
+ return 12
524
539
  end
525
540
  if match_RuleLine(context, token)
526
541
  end_rule(context, :Description);
@@ -528,14 +543,14 @@ module Gherkin
528
543
  start_rule(context, :Rule);
529
544
  start_rule(context, :RuleHeader);
530
545
  build(context, token);
531
- return 19
546
+ return 23
532
547
  end
533
548
  if match_Other(context, token)
534
549
  build(context, token);
535
550
  return 4
536
551
  end
537
552
 
538
- state_comment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
553
+ state_comment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0"
539
554
  token.detach
540
555
  expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
541
556
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
@@ -543,27 +558,88 @@ module Gherkin
543
558
  add_error(context, error)
544
559
  return 4
545
560
  end
546
- # GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0
561
+ # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0
547
562
  def match_token_at_state5(token, context)
548
563
  if match_EOF(context, token)
549
- end_rule(context, :Background);
564
+ end_rule(context, :FeatureHeader);
550
565
  end_rule(context, :Feature);
551
566
  build(context, token);
552
- return 34
567
+ return 42
568
+ end
569
+ if match_Comment(context, token)
570
+ build(context, token);
571
+ return 5
572
+ end
573
+ if match_BackgroundLine(context, token)
574
+ end_rule(context, :FeatureHeader);
575
+ start_rule(context, :Background);
576
+ build(context, token);
577
+ return 6
578
+ end
579
+ if match_TagLine(context, token)
580
+ if lookahead0(context, token)
581
+ end_rule(context, :FeatureHeader);
582
+ start_rule(context, :ScenarioDefinition);
583
+ start_rule(context, :Tags);
584
+ build(context, token);
585
+ return 11
586
+ end
587
+ end
588
+ if match_TagLine(context, token)
589
+ end_rule(context, :FeatureHeader);
590
+ start_rule(context, :Rule);
591
+ start_rule(context, :RuleHeader);
592
+ start_rule(context, :Tags);
593
+ build(context, token);
594
+ return 22
595
+ end
596
+ if match_ScenarioLine(context, token)
597
+ end_rule(context, :FeatureHeader);
598
+ start_rule(context, :ScenarioDefinition);
599
+ start_rule(context, :Scenario);
600
+ build(context, token);
601
+ return 12
602
+ end
603
+ if match_RuleLine(context, token)
604
+ end_rule(context, :FeatureHeader);
605
+ start_rule(context, :Rule);
606
+ start_rule(context, :RuleHeader);
607
+ build(context, token);
608
+ return 23
553
609
  end
554
610
  if match_Empty(context, token)
555
611
  build(context, token);
556
612
  return 5
557
613
  end
558
- if match_Comment(context, token)
559
- start_rule(context, :Description);
614
+
615
+ state_comment = "State: 5 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0"
616
+ token.detach
617
+ expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]
618
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
619
+ raise error if (stop_at_first_error)
620
+ add_error(context, error)
621
+ return 5
622
+ end
623
+ # GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0
624
+ def match_token_at_state6(token, context)
625
+ if match_EOF(context, token)
626
+ end_rule(context, :Background);
627
+ end_rule(context, :Feature);
628
+ build(context, token);
629
+ return 42
630
+ end
631
+ if match_Empty(context, token)
560
632
  build(context, token);
561
633
  return 6
562
634
  end
635
+ if match_Comment(context, token)
636
+ build(context, token);
637
+ return 8
638
+ end
563
639
  if match_StepLine(context, token)
564
640
  start_rule(context, :Step);
565
641
  build(context, token);
566
- return 7
642
+ return 9
567
643
  end
568
644
  if match_TagLine(context, token)
569
645
  if lookahead0(context, token)
@@ -571,7 +647,7 @@ module Gherkin
571
647
  start_rule(context, :ScenarioDefinition);
572
648
  start_rule(context, :Tags);
573
649
  build(context, token);
574
- return 9
650
+ return 11
575
651
  end
576
652
  end
577
653
  if match_TagLine(context, token)
@@ -580,54 +656,55 @@ module Gherkin
580
656
  start_rule(context, :RuleHeader);
581
657
  start_rule(context, :Tags);
582
658
  build(context, token);
583
- return 18
659
+ return 22
584
660
  end
585
661
  if match_ScenarioLine(context, token)
586
662
  end_rule(context, :Background);
587
663
  start_rule(context, :ScenarioDefinition);
588
664
  start_rule(context, :Scenario);
589
665
  build(context, token);
590
- return 10
666
+ return 12
591
667
  end
592
668
  if match_RuleLine(context, token)
593
669
  end_rule(context, :Background);
594
670
  start_rule(context, :Rule);
595
671
  start_rule(context, :RuleHeader);
596
672
  build(context, token);
597
- return 19
673
+ return 23
598
674
  end
599
675
  if match_Other(context, token)
600
676
  start_rule(context, :Description);
601
677
  build(context, token);
602
- return 6
678
+ return 7
603
679
  end
604
680
 
605
- state_comment = "State: 5 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0"
681
+ state_comment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0"
606
682
  token.detach
607
683
  expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
608
684
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
609
685
  raise error if (stop_at_first_error)
610
686
  add_error(context, error)
611
- return 5
687
+ return 6
612
688
  end
613
- # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
614
- def match_token_at_state6(token, context)
689
+ # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0
690
+ def match_token_at_state7(token, context)
615
691
  if match_EOF(context, token)
616
692
  end_rule(context, :Description);
617
693
  end_rule(context, :Background);
618
694
  end_rule(context, :Feature);
619
695
  build(context, token);
620
- return 34
696
+ return 42
621
697
  end
622
698
  if match_Comment(context, token)
699
+ end_rule(context, :Description);
623
700
  build(context, token);
624
- return 6
701
+ return 8
625
702
  end
626
703
  if match_StepLine(context, token)
627
704
  end_rule(context, :Description);
628
705
  start_rule(context, :Step);
629
706
  build(context, token);
630
- return 7
707
+ return 9
631
708
  end
632
709
  if match_TagLine(context, token)
633
710
  if lookahead0(context, token)
@@ -636,7 +713,7 @@ module Gherkin
636
713
  start_rule(context, :ScenarioDefinition);
637
714
  start_rule(context, :Tags);
638
715
  build(context, token);
639
- return 9
716
+ return 11
640
717
  end
641
718
  end
642
719
  if match_TagLine(context, token)
@@ -646,7 +723,7 @@ module Gherkin
646
723
  start_rule(context, :RuleHeader);
647
724
  start_rule(context, :Tags);
648
725
  build(context, token);
649
- return 18
726
+ return 22
650
727
  end
651
728
  if match_ScenarioLine(context, token)
652
729
  end_rule(context, :Description);
@@ -654,7 +731,7 @@ module Gherkin
654
731
  start_rule(context, :ScenarioDefinition);
655
732
  start_rule(context, :Scenario);
656
733
  build(context, token);
657
- return 10
734
+ return 12
658
735
  end
659
736
  if match_RuleLine(context, token)
660
737
  end_rule(context, :Description);
@@ -662,45 +739,106 @@ module Gherkin
662
739
  start_rule(context, :Rule);
663
740
  start_rule(context, :RuleHeader);
664
741
  build(context, token);
665
- return 19
742
+ return 23
666
743
  end
667
744
  if match_Other(context, token)
668
745
  build(context, token);
669
- return 6
746
+ return 7
670
747
  end
671
748
 
672
- state_comment = "State: 6 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
749
+ state_comment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"
673
750
  token.detach
674
751
  expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
675
752
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
676
753
  raise error if (stop_at_first_error)
677
754
  add_error(context, error)
678
- return 6
755
+ return 7
756
+ end
757
+ # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0
758
+ def match_token_at_state8(token, context)
759
+ if match_EOF(context, token)
760
+ end_rule(context, :Background);
761
+ end_rule(context, :Feature);
762
+ build(context, token);
763
+ return 42
764
+ end
765
+ if match_Comment(context, token)
766
+ build(context, token);
767
+ return 8
768
+ end
769
+ if match_StepLine(context, token)
770
+ start_rule(context, :Step);
771
+ build(context, token);
772
+ return 9
773
+ end
774
+ if match_TagLine(context, token)
775
+ if lookahead0(context, token)
776
+ end_rule(context, :Background);
777
+ start_rule(context, :ScenarioDefinition);
778
+ start_rule(context, :Tags);
779
+ build(context, token);
780
+ return 11
781
+ end
782
+ end
783
+ if match_TagLine(context, token)
784
+ end_rule(context, :Background);
785
+ start_rule(context, :Rule);
786
+ start_rule(context, :RuleHeader);
787
+ start_rule(context, :Tags);
788
+ build(context, token);
789
+ return 22
790
+ end
791
+ if match_ScenarioLine(context, token)
792
+ end_rule(context, :Background);
793
+ start_rule(context, :ScenarioDefinition);
794
+ start_rule(context, :Scenario);
795
+ build(context, token);
796
+ return 12
797
+ end
798
+ if match_RuleLine(context, token)
799
+ end_rule(context, :Background);
800
+ start_rule(context, :Rule);
801
+ start_rule(context, :RuleHeader);
802
+ build(context, token);
803
+ return 23
804
+ end
805
+ if match_Empty(context, token)
806
+ build(context, token);
807
+ return 8
808
+ end
809
+
810
+ state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0"
811
+ token.detach
812
+ expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]
813
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
814
+ raise error if (stop_at_first_error)
815
+ add_error(context, error)
816
+ return 8
679
817
  end
680
818
  # GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0
681
- def match_token_at_state7(token, context)
819
+ def match_token_at_state9(token, context)
682
820
  if match_EOF(context, token)
683
821
  end_rule(context, :Step);
684
822
  end_rule(context, :Background);
685
823
  end_rule(context, :Feature);
686
824
  build(context, token);
687
- return 34
825
+ return 42
688
826
  end
689
827
  if match_TableRow(context, token)
690
828
  start_rule(context, :DataTable);
691
829
  build(context, token);
692
- return 8
830
+ return 10
693
831
  end
694
832
  if match_DocStringSeparator(context, token)
695
833
  start_rule(context, :DocString);
696
834
  build(context, token);
697
- return 41
835
+ return 49
698
836
  end
699
837
  if match_StepLine(context, token)
700
838
  end_rule(context, :Step);
701
839
  start_rule(context, :Step);
702
840
  build(context, token);
703
- return 7
841
+ return 9
704
842
  end
705
843
  if match_TagLine(context, token)
706
844
  if lookahead0(context, token)
@@ -709,7 +847,7 @@ module Gherkin
709
847
  start_rule(context, :ScenarioDefinition);
710
848
  start_rule(context, :Tags);
711
849
  build(context, token);
712
- return 9
850
+ return 11
713
851
  end
714
852
  end
715
853
  if match_TagLine(context, token)
@@ -719,7 +857,7 @@ module Gherkin
719
857
  start_rule(context, :RuleHeader);
720
858
  start_rule(context, :Tags);
721
859
  build(context, token);
722
- return 18
860
+ return 22
723
861
  end
724
862
  if match_ScenarioLine(context, token)
725
863
  end_rule(context, :Step);
@@ -727,7 +865,7 @@ module Gherkin
727
865
  start_rule(context, :ScenarioDefinition);
728
866
  start_rule(context, :Scenario);
729
867
  build(context, token);
730
- return 10
868
+ return 12
731
869
  end
732
870
  if match_RuleLine(context, token)
733
871
  end_rule(context, :Step);
@@ -735,45 +873,45 @@ module Gherkin
735
873
  start_rule(context, :Rule);
736
874
  start_rule(context, :RuleHeader);
737
875
  build(context, token);
738
- return 19
876
+ return 23
739
877
  end
740
878
  if match_Comment(context, token)
741
879
  build(context, token);
742
- return 7
880
+ return 9
743
881
  end
744
882
  if match_Empty(context, token)
745
883
  build(context, token);
746
- return 7
884
+ return 9
747
885
  end
748
886
 
749
- state_comment = "State: 7 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0"
887
+ state_comment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0"
750
888
  token.detach
751
889
  expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
752
890
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
753
891
  raise error if (stop_at_first_error)
754
892
  add_error(context, error)
755
- return 7
893
+ return 9
756
894
  end
757
895
  # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
758
- def match_token_at_state8(token, context)
896
+ def match_token_at_state10(token, context)
759
897
  if match_EOF(context, token)
760
898
  end_rule(context, :DataTable);
761
899
  end_rule(context, :Step);
762
900
  end_rule(context, :Background);
763
901
  end_rule(context, :Feature);
764
902
  build(context, token);
765
- return 34
903
+ return 42
766
904
  end
767
905
  if match_TableRow(context, token)
768
906
  build(context, token);
769
- return 8
907
+ return 10
770
908
  end
771
909
  if match_StepLine(context, token)
772
910
  end_rule(context, :DataTable);
773
911
  end_rule(context, :Step);
774
912
  start_rule(context, :Step);
775
913
  build(context, token);
776
- return 7
914
+ return 9
777
915
  end
778
916
  if match_TagLine(context, token)
779
917
  if lookahead0(context, token)
@@ -783,7 +921,7 @@ module Gherkin
783
921
  start_rule(context, :ScenarioDefinition);
784
922
  start_rule(context, :Tags);
785
923
  build(context, token);
786
- return 9
924
+ return 11
787
925
  end
788
926
  end
789
927
  if match_TagLine(context, token)
@@ -794,7 +932,7 @@ module Gherkin
794
932
  start_rule(context, :RuleHeader);
795
933
  start_rule(context, :Tags);
796
934
  build(context, token);
797
- return 18
935
+ return 22
798
936
  end
799
937
  if match_ScenarioLine(context, token)
800
938
  end_rule(context, :DataTable);
@@ -803,7 +941,7 @@ module Gherkin
803
941
  start_rule(context, :ScenarioDefinition);
804
942
  start_rule(context, :Scenario);
805
943
  build(context, token);
806
- return 10
944
+ return 12
807
945
  end
808
946
  if match_RuleLine(context, token)
809
947
  end_rule(context, :DataTable);
@@ -812,83 +950,82 @@ module Gherkin
812
950
  start_rule(context, :Rule);
813
951
  start_rule(context, :RuleHeader);
814
952
  build(context, token);
815
- return 19
953
+ return 23
816
954
  end
817
955
  if match_Comment(context, token)
818
956
  build(context, token);
819
- return 8
957
+ return 10
820
958
  end
821
959
  if match_Empty(context, token)
822
960
  build(context, token);
823
- return 8
961
+ return 10
824
962
  end
825
963
 
826
- state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
964
+ state_comment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
827
965
  token.detach
828
966
  expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
829
967
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
830
968
  raise error if (stop_at_first_error)
831
969
  add_error(context, error)
832
- return 8
970
+ return 10
833
971
  end
834
972
  # GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0
835
- def match_token_at_state9(token, context)
973
+ def match_token_at_state11(token, context)
836
974
  if match_TagLine(context, token)
837
975
  build(context, token);
838
- return 9
976
+ return 11
839
977
  end
840
978
  if match_ScenarioLine(context, token)
841
979
  end_rule(context, :Tags);
842
980
  start_rule(context, :Scenario);
843
981
  build(context, token);
844
- return 10
982
+ return 12
845
983
  end
846
984
  if match_Comment(context, token)
847
985
  build(context, token);
848
- return 9
986
+ return 11
849
987
  end
850
988
  if match_Empty(context, token)
851
989
  build(context, token);
852
- return 9
990
+ return 11
853
991
  end
854
992
 
855
- state_comment = "State: 9 - GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0"
993
+ state_comment = "State: 11 - GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0"
856
994
  token.detach
857
995
  expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]
858
996
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
859
997
  raise error if (stop_at_first_error)
860
998
  add_error(context, error)
861
- return 9
999
+ return 11
862
1000
  end
863
1001
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0
864
- def match_token_at_state10(token, context)
1002
+ def match_token_at_state12(token, context)
865
1003
  if match_EOF(context, token)
866
1004
  end_rule(context, :Scenario);
867
1005
  end_rule(context, :ScenarioDefinition);
868
1006
  end_rule(context, :Feature);
869
1007
  build(context, token);
870
- return 34
1008
+ return 42
871
1009
  end
872
1010
  if match_Empty(context, token)
873
1011
  build(context, token);
874
- return 10
1012
+ return 12
875
1013
  end
876
1014
  if match_Comment(context, token)
877
- start_rule(context, :Description);
878
1015
  build(context, token);
879
- return 11
1016
+ return 14
880
1017
  end
881
1018
  if match_StepLine(context, token)
882
1019
  start_rule(context, :Step);
883
1020
  build(context, token);
884
- return 12
1021
+ return 15
885
1022
  end
886
1023
  if match_TagLine(context, token)
887
1024
  if lookahead1(context, token)
888
1025
  start_rule(context, :ExamplesDefinition);
889
1026
  start_rule(context, :Tags);
890
1027
  build(context, token);
891
- return 14
1028
+ return 17
892
1029
  end
893
1030
  end
894
1031
  if match_TagLine(context, token)
@@ -898,7 +1035,7 @@ module Gherkin
898
1035
  start_rule(context, :ScenarioDefinition);
899
1036
  start_rule(context, :Tags);
900
1037
  build(context, token);
901
- return 9
1038
+ return 11
902
1039
  end
903
1040
  end
904
1041
  if match_TagLine(context, token)
@@ -908,13 +1045,13 @@ module Gherkin
908
1045
  start_rule(context, :RuleHeader);
909
1046
  start_rule(context, :Tags);
910
1047
  build(context, token);
911
- return 18
1048
+ return 22
912
1049
  end
913
1050
  if match_ExamplesLine(context, token)
914
1051
  start_rule(context, :ExamplesDefinition);
915
1052
  start_rule(context, :Examples);
916
1053
  build(context, token);
917
- return 15
1054
+ return 18
918
1055
  end
919
1056
  if match_ScenarioLine(context, token)
920
1057
  end_rule(context, :Scenario);
@@ -922,7 +1059,7 @@ module Gherkin
922
1059
  start_rule(context, :ScenarioDefinition);
923
1060
  start_rule(context, :Scenario);
924
1061
  build(context, token);
925
- return 10
1062
+ return 12
926
1063
  end
927
1064
  if match_RuleLine(context, token)
928
1065
  end_rule(context, :Scenario);
@@ -930,41 +1067,42 @@ module Gherkin
930
1067
  start_rule(context, :Rule);
931
1068
  start_rule(context, :RuleHeader);
932
1069
  build(context, token);
933
- return 19
1070
+ return 23
934
1071
  end
935
1072
  if match_Other(context, token)
936
1073
  start_rule(context, :Description);
937
1074
  build(context, token);
938
- return 11
1075
+ return 13
939
1076
  end
940
1077
 
941
- state_comment = "State: 10 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"
1078
+ state_comment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"
942
1079
  token.detach
943
1080
  expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
944
1081
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
945
1082
  raise error if (stop_at_first_error)
946
1083
  add_error(context, error)
947
- return 10
1084
+ return 12
948
1085
  end
949
- # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
950
- def match_token_at_state11(token, context)
1086
+ # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0
1087
+ def match_token_at_state13(token, context)
951
1088
  if match_EOF(context, token)
952
1089
  end_rule(context, :Description);
953
1090
  end_rule(context, :Scenario);
954
1091
  end_rule(context, :ScenarioDefinition);
955
1092
  end_rule(context, :Feature);
956
1093
  build(context, token);
957
- return 34
1094
+ return 42
958
1095
  end
959
1096
  if match_Comment(context, token)
1097
+ end_rule(context, :Description);
960
1098
  build(context, token);
961
- return 11
1099
+ return 14
962
1100
  end
963
1101
  if match_StepLine(context, token)
964
1102
  end_rule(context, :Description);
965
1103
  start_rule(context, :Step);
966
1104
  build(context, token);
967
- return 12
1105
+ return 15
968
1106
  end
969
1107
  if match_TagLine(context, token)
970
1108
  if lookahead1(context, token)
@@ -972,7 +1110,7 @@ module Gherkin
972
1110
  start_rule(context, :ExamplesDefinition);
973
1111
  start_rule(context, :Tags);
974
1112
  build(context, token);
975
- return 14
1113
+ return 17
976
1114
  end
977
1115
  end
978
1116
  if match_TagLine(context, token)
@@ -983,7 +1121,7 @@ module Gherkin
983
1121
  start_rule(context, :ScenarioDefinition);
984
1122
  start_rule(context, :Tags);
985
1123
  build(context, token);
986
- return 9
1124
+ return 11
987
1125
  end
988
1126
  end
989
1127
  if match_TagLine(context, token)
@@ -994,14 +1132,14 @@ module Gherkin
994
1132
  start_rule(context, :RuleHeader);
995
1133
  start_rule(context, :Tags);
996
1134
  build(context, token);
997
- return 18
1135
+ return 22
998
1136
  end
999
1137
  if match_ExamplesLine(context, token)
1000
1138
  end_rule(context, :Description);
1001
1139
  start_rule(context, :ExamplesDefinition);
1002
1140
  start_rule(context, :Examples);
1003
1141
  build(context, token);
1004
- return 15
1142
+ return 18
1005
1143
  end
1006
1144
  if match_ScenarioLine(context, token)
1007
1145
  end_rule(context, :Description);
@@ -1010,7 +1148,7 @@ module Gherkin
1010
1148
  start_rule(context, :ScenarioDefinition);
1011
1149
  start_rule(context, :Scenario);
1012
1150
  build(context, token);
1013
- return 10
1151
+ return 12
1014
1152
  end
1015
1153
  if match_RuleLine(context, token)
1016
1154
  end_rule(context, :Description);
@@ -1019,46 +1157,126 @@ module Gherkin
1019
1157
  start_rule(context, :Rule);
1020
1158
  start_rule(context, :RuleHeader);
1021
1159
  build(context, token);
1022
- return 19
1160
+ return 23
1023
1161
  end
1024
1162
  if match_Other(context, token)
1025
1163
  build(context, token);
1026
- return 11
1164
+ return 13
1027
1165
  end
1028
1166
 
1029
- state_comment = "State: 11 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
1167
+ state_comment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"
1030
1168
  token.detach
1031
1169
  expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
1032
1170
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1033
1171
  raise error if (stop_at_first_error)
1034
1172
  add_error(context, error)
1035
- return 11
1173
+ return 13
1174
+ end
1175
+ # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0
1176
+ def match_token_at_state14(token, context)
1177
+ if match_EOF(context, token)
1178
+ end_rule(context, :Scenario);
1179
+ end_rule(context, :ScenarioDefinition);
1180
+ end_rule(context, :Feature);
1181
+ build(context, token);
1182
+ return 42
1183
+ end
1184
+ if match_Comment(context, token)
1185
+ build(context, token);
1186
+ return 14
1187
+ end
1188
+ if match_StepLine(context, token)
1189
+ start_rule(context, :Step);
1190
+ build(context, token);
1191
+ return 15
1192
+ end
1193
+ if match_TagLine(context, token)
1194
+ if lookahead1(context, token)
1195
+ start_rule(context, :ExamplesDefinition);
1196
+ start_rule(context, :Tags);
1197
+ build(context, token);
1198
+ return 17
1199
+ end
1200
+ end
1201
+ if match_TagLine(context, token)
1202
+ if lookahead0(context, token)
1203
+ end_rule(context, :Scenario);
1204
+ end_rule(context, :ScenarioDefinition);
1205
+ start_rule(context, :ScenarioDefinition);
1206
+ start_rule(context, :Tags);
1207
+ build(context, token);
1208
+ return 11
1209
+ end
1210
+ end
1211
+ if match_TagLine(context, token)
1212
+ end_rule(context, :Scenario);
1213
+ end_rule(context, :ScenarioDefinition);
1214
+ start_rule(context, :Rule);
1215
+ start_rule(context, :RuleHeader);
1216
+ start_rule(context, :Tags);
1217
+ build(context, token);
1218
+ return 22
1219
+ end
1220
+ if match_ExamplesLine(context, token)
1221
+ start_rule(context, :ExamplesDefinition);
1222
+ start_rule(context, :Examples);
1223
+ build(context, token);
1224
+ return 18
1225
+ end
1226
+ if match_ScenarioLine(context, token)
1227
+ end_rule(context, :Scenario);
1228
+ end_rule(context, :ScenarioDefinition);
1229
+ start_rule(context, :ScenarioDefinition);
1230
+ start_rule(context, :Scenario);
1231
+ build(context, token);
1232
+ return 12
1233
+ end
1234
+ if match_RuleLine(context, token)
1235
+ end_rule(context, :Scenario);
1236
+ end_rule(context, :ScenarioDefinition);
1237
+ start_rule(context, :Rule);
1238
+ start_rule(context, :RuleHeader);
1239
+ build(context, token);
1240
+ return 23
1241
+ end
1242
+ if match_Empty(context, token)
1243
+ build(context, token);
1244
+ return 14
1245
+ end
1246
+
1247
+ state_comment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"
1248
+ token.detach
1249
+ expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]
1250
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1251
+ raise error if (stop_at_first_error)
1252
+ add_error(context, error)
1253
+ return 14
1036
1254
  end
1037
1255
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0
1038
- def match_token_at_state12(token, context)
1256
+ def match_token_at_state15(token, context)
1039
1257
  if match_EOF(context, token)
1040
1258
  end_rule(context, :Step);
1041
1259
  end_rule(context, :Scenario);
1042
1260
  end_rule(context, :ScenarioDefinition);
1043
1261
  end_rule(context, :Feature);
1044
1262
  build(context, token);
1045
- return 34
1263
+ return 42
1046
1264
  end
1047
1265
  if match_TableRow(context, token)
1048
1266
  start_rule(context, :DataTable);
1049
1267
  build(context, token);
1050
- return 13
1268
+ return 16
1051
1269
  end
1052
1270
  if match_DocStringSeparator(context, token)
1053
1271
  start_rule(context, :DocString);
1054
1272
  build(context, token);
1055
- return 39
1273
+ return 47
1056
1274
  end
1057
1275
  if match_StepLine(context, token)
1058
1276
  end_rule(context, :Step);
1059
1277
  start_rule(context, :Step);
1060
1278
  build(context, token);
1061
- return 12
1279
+ return 15
1062
1280
  end
1063
1281
  if match_TagLine(context, token)
1064
1282
  if lookahead1(context, token)
@@ -1066,7 +1284,7 @@ module Gherkin
1066
1284
  start_rule(context, :ExamplesDefinition);
1067
1285
  start_rule(context, :Tags);
1068
1286
  build(context, token);
1069
- return 14
1287
+ return 17
1070
1288
  end
1071
1289
  end
1072
1290
  if match_TagLine(context, token)
@@ -1077,7 +1295,7 @@ module Gherkin
1077
1295
  start_rule(context, :ScenarioDefinition);
1078
1296
  start_rule(context, :Tags);
1079
1297
  build(context, token);
1080
- return 9
1298
+ return 11
1081
1299
  end
1082
1300
  end
1083
1301
  if match_TagLine(context, token)
@@ -1088,14 +1306,14 @@ module Gherkin
1088
1306
  start_rule(context, :RuleHeader);
1089
1307
  start_rule(context, :Tags);
1090
1308
  build(context, token);
1091
- return 18
1309
+ return 22
1092
1310
  end
1093
1311
  if match_ExamplesLine(context, token)
1094
1312
  end_rule(context, :Step);
1095
1313
  start_rule(context, :ExamplesDefinition);
1096
1314
  start_rule(context, :Examples);
1097
1315
  build(context, token);
1098
- return 15
1316
+ return 18
1099
1317
  end
1100
1318
  if match_ScenarioLine(context, token)
1101
1319
  end_rule(context, :Step);
@@ -1104,7 +1322,7 @@ module Gherkin
1104
1322
  start_rule(context, :ScenarioDefinition);
1105
1323
  start_rule(context, :Scenario);
1106
1324
  build(context, token);
1107
- return 10
1325
+ return 12
1108
1326
  end
1109
1327
  if match_RuleLine(context, token)
1110
1328
  end_rule(context, :Step);
@@ -1113,27 +1331,27 @@ module Gherkin
1113
1331
  start_rule(context, :Rule);
1114
1332
  start_rule(context, :RuleHeader);
1115
1333
  build(context, token);
1116
- return 19
1334
+ return 23
1117
1335
  end
1118
1336
  if match_Comment(context, token)
1119
1337
  build(context, token);
1120
- return 12
1338
+ return 15
1121
1339
  end
1122
1340
  if match_Empty(context, token)
1123
1341
  build(context, token);
1124
- return 12
1342
+ return 15
1125
1343
  end
1126
1344
 
1127
- state_comment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"
1345
+ state_comment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"
1128
1346
  token.detach
1129
1347
  expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
1130
1348
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1131
1349
  raise error if (stop_at_first_error)
1132
1350
  add_error(context, error)
1133
- return 12
1351
+ return 15
1134
1352
  end
1135
1353
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
1136
- def match_token_at_state13(token, context)
1354
+ def match_token_at_state16(token, context)
1137
1355
  if match_EOF(context, token)
1138
1356
  end_rule(context, :DataTable);
1139
1357
  end_rule(context, :Step);
@@ -1141,18 +1359,18 @@ module Gherkin
1141
1359
  end_rule(context, :ScenarioDefinition);
1142
1360
  end_rule(context, :Feature);
1143
1361
  build(context, token);
1144
- return 34
1362
+ return 42
1145
1363
  end
1146
1364
  if match_TableRow(context, token)
1147
1365
  build(context, token);
1148
- return 13
1366
+ return 16
1149
1367
  end
1150
1368
  if match_StepLine(context, token)
1151
1369
  end_rule(context, :DataTable);
1152
1370
  end_rule(context, :Step);
1153
1371
  start_rule(context, :Step);
1154
1372
  build(context, token);
1155
- return 12
1373
+ return 15
1156
1374
  end
1157
1375
  if match_TagLine(context, token)
1158
1376
  if lookahead1(context, token)
@@ -1161,7 +1379,7 @@ module Gherkin
1161
1379
  start_rule(context, :ExamplesDefinition);
1162
1380
  start_rule(context, :Tags);
1163
1381
  build(context, token);
1164
- return 14
1382
+ return 17
1165
1383
  end
1166
1384
  end
1167
1385
  if match_TagLine(context, token)
@@ -1173,7 +1391,7 @@ module Gherkin
1173
1391
  start_rule(context, :ScenarioDefinition);
1174
1392
  start_rule(context, :Tags);
1175
1393
  build(context, token);
1176
- return 9
1394
+ return 11
1177
1395
  end
1178
1396
  end
1179
1397
  if match_TagLine(context, token)
@@ -1185,7 +1403,7 @@ module Gherkin
1185
1403
  start_rule(context, :RuleHeader);
1186
1404
  start_rule(context, :Tags);
1187
1405
  build(context, token);
1188
- return 18
1406
+ return 22
1189
1407
  end
1190
1408
  if match_ExamplesLine(context, token)
1191
1409
  end_rule(context, :DataTable);
@@ -1193,7 +1411,7 @@ module Gherkin
1193
1411
  start_rule(context, :ExamplesDefinition);
1194
1412
  start_rule(context, :Examples);
1195
1413
  build(context, token);
1196
- return 15
1414
+ return 18
1197
1415
  end
1198
1416
  if match_ScenarioLine(context, token)
1199
1417
  end_rule(context, :DataTable);
@@ -1203,7 +1421,7 @@ module Gherkin
1203
1421
  start_rule(context, :ScenarioDefinition);
1204
1422
  start_rule(context, :Scenario);
1205
1423
  build(context, token);
1206
- return 10
1424
+ return 12
1207
1425
  end
1208
1426
  if match_RuleLine(context, token)
1209
1427
  end_rule(context, :DataTable);
@@ -1213,56 +1431,56 @@ module Gherkin
1213
1431
  start_rule(context, :Rule);
1214
1432
  start_rule(context, :RuleHeader);
1215
1433
  build(context, token);
1216
- return 19
1434
+ return 23
1217
1435
  end
1218
1436
  if match_Comment(context, token)
1219
1437
  build(context, token);
1220
- return 13
1438
+ return 16
1221
1439
  end
1222
1440
  if match_Empty(context, token)
1223
1441
  build(context, token);
1224
- return 13
1442
+ return 16
1225
1443
  end
1226
1444
 
1227
- state_comment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
1445
+ state_comment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
1228
1446
  token.detach
1229
1447
  expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
1230
1448
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1231
1449
  raise error if (stop_at_first_error)
1232
1450
  add_error(context, error)
1233
- return 13
1451
+ return 16
1234
1452
  end
1235
1453
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0
1236
- def match_token_at_state14(token, context)
1454
+ def match_token_at_state17(token, context)
1237
1455
  if match_TagLine(context, token)
1238
1456
  build(context, token);
1239
- return 14
1457
+ return 17
1240
1458
  end
1241
1459
  if match_ExamplesLine(context, token)
1242
1460
  end_rule(context, :Tags);
1243
1461
  start_rule(context, :Examples);
1244
1462
  build(context, token);
1245
- return 15
1463
+ return 18
1246
1464
  end
1247
1465
  if match_Comment(context, token)
1248
1466
  build(context, token);
1249
- return 14
1467
+ return 17
1250
1468
  end
1251
1469
  if match_Empty(context, token)
1252
1470
  build(context, token);
1253
- return 14
1471
+ return 17
1254
1472
  end
1255
1473
 
1256
- state_comment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"
1474
+ state_comment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"
1257
1475
  token.detach
1258
1476
  expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]
1259
1477
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1260
1478
  raise error if (stop_at_first_error)
1261
1479
  add_error(context, error)
1262
- return 14
1480
+ return 17
1263
1481
  end
1264
1482
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0
1265
- def match_token_at_state15(token, context)
1483
+ def match_token_at_state18(token, context)
1266
1484
  if match_EOF(context, token)
1267
1485
  end_rule(context, :Examples);
1268
1486
  end_rule(context, :ExamplesDefinition);
@@ -1270,21 +1488,20 @@ module Gherkin
1270
1488
  end_rule(context, :ScenarioDefinition);
1271
1489
  end_rule(context, :Feature);
1272
1490
  build(context, token);
1273
- return 34
1491
+ return 42
1274
1492
  end
1275
1493
  if match_Empty(context, token)
1276
1494
  build(context, token);
1277
- return 15
1495
+ return 18
1278
1496
  end
1279
1497
  if match_Comment(context, token)
1280
- start_rule(context, :Description);
1281
1498
  build(context, token);
1282
- return 16
1499
+ return 20
1283
1500
  end
1284
1501
  if match_TableRow(context, token)
1285
1502
  start_rule(context, :ExamplesTable);
1286
1503
  build(context, token);
1287
- return 17
1504
+ return 21
1288
1505
  end
1289
1506
  if match_TagLine(context, token)
1290
1507
  if lookahead1(context, token)
@@ -1293,7 +1510,7 @@ module Gherkin
1293
1510
  start_rule(context, :ExamplesDefinition);
1294
1511
  start_rule(context, :Tags);
1295
1512
  build(context, token);
1296
- return 14
1513
+ return 17
1297
1514
  end
1298
1515
  end
1299
1516
  if match_TagLine(context, token)
@@ -1305,7 +1522,7 @@ module Gherkin
1305
1522
  start_rule(context, :ScenarioDefinition);
1306
1523
  start_rule(context, :Tags);
1307
1524
  build(context, token);
1308
- return 9
1525
+ return 11
1309
1526
  end
1310
1527
  end
1311
1528
  if match_TagLine(context, token)
@@ -1317,7 +1534,7 @@ module Gherkin
1317
1534
  start_rule(context, :RuleHeader);
1318
1535
  start_rule(context, :Tags);
1319
1536
  build(context, token);
1320
- return 18
1537
+ return 22
1321
1538
  end
1322
1539
  if match_ExamplesLine(context, token)
1323
1540
  end_rule(context, :Examples);
@@ -1325,7 +1542,7 @@ module Gherkin
1325
1542
  start_rule(context, :ExamplesDefinition);
1326
1543
  start_rule(context, :Examples);
1327
1544
  build(context, token);
1328
- return 15
1545
+ return 18
1329
1546
  end
1330
1547
  if match_ScenarioLine(context, token)
1331
1548
  end_rule(context, :Examples);
@@ -1335,7 +1552,7 @@ module Gherkin
1335
1552
  start_rule(context, :ScenarioDefinition);
1336
1553
  start_rule(context, :Scenario);
1337
1554
  build(context, token);
1338
- return 10
1555
+ return 12
1339
1556
  end
1340
1557
  if match_RuleLine(context, token)
1341
1558
  end_rule(context, :Examples);
@@ -1345,24 +1562,24 @@ module Gherkin
1345
1562
  start_rule(context, :Rule);
1346
1563
  start_rule(context, :RuleHeader);
1347
1564
  build(context, token);
1348
- return 19
1565
+ return 23
1349
1566
  end
1350
1567
  if match_Other(context, token)
1351
1568
  start_rule(context, :Description);
1352
1569
  build(context, token);
1353
- return 16
1570
+ return 19
1354
1571
  end
1355
1572
 
1356
- state_comment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"
1573
+ state_comment = "State: 18 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"
1357
1574
  token.detach
1358
1575
  expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
1359
1576
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1360
1577
  raise error if (stop_at_first_error)
1361
1578
  add_error(context, error)
1362
- return 15
1579
+ return 18
1363
1580
  end
1364
- # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
1365
- def match_token_at_state16(token, context)
1581
+ # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0
1582
+ def match_token_at_state19(token, context)
1366
1583
  if match_EOF(context, token)
1367
1584
  end_rule(context, :Description);
1368
1585
  end_rule(context, :Examples);
@@ -1371,17 +1588,18 @@ module Gherkin
1371
1588
  end_rule(context, :ScenarioDefinition);
1372
1589
  end_rule(context, :Feature);
1373
1590
  build(context, token);
1374
- return 34
1591
+ return 42
1375
1592
  end
1376
1593
  if match_Comment(context, token)
1594
+ end_rule(context, :Description);
1377
1595
  build(context, token);
1378
- return 16
1596
+ return 20
1379
1597
  end
1380
1598
  if match_TableRow(context, token)
1381
1599
  end_rule(context, :Description);
1382
1600
  start_rule(context, :ExamplesTable);
1383
1601
  build(context, token);
1384
- return 17
1602
+ return 21
1385
1603
  end
1386
1604
  if match_TagLine(context, token)
1387
1605
  if lookahead1(context, token)
@@ -1391,7 +1609,7 @@ module Gherkin
1391
1609
  start_rule(context, :ExamplesDefinition);
1392
1610
  start_rule(context, :Tags);
1393
1611
  build(context, token);
1394
- return 14
1612
+ return 17
1395
1613
  end
1396
1614
  end
1397
1615
  if match_TagLine(context, token)
@@ -1404,7 +1622,7 @@ module Gherkin
1404
1622
  start_rule(context, :ScenarioDefinition);
1405
1623
  start_rule(context, :Tags);
1406
1624
  build(context, token);
1407
- return 9
1625
+ return 11
1408
1626
  end
1409
1627
  end
1410
1628
  if match_TagLine(context, token)
@@ -1417,7 +1635,7 @@ module Gherkin
1417
1635
  start_rule(context, :RuleHeader);
1418
1636
  start_rule(context, :Tags);
1419
1637
  build(context, token);
1420
- return 18
1638
+ return 22
1421
1639
  end
1422
1640
  if match_ExamplesLine(context, token)
1423
1641
  end_rule(context, :Description);
@@ -1426,7 +1644,7 @@ module Gherkin
1426
1644
  start_rule(context, :ExamplesDefinition);
1427
1645
  start_rule(context, :Examples);
1428
1646
  build(context, token);
1429
- return 15
1647
+ return 18
1430
1648
  end
1431
1649
  if match_ScenarioLine(context, token)
1432
1650
  end_rule(context, :Description);
@@ -1437,7 +1655,7 @@ module Gherkin
1437
1655
  start_rule(context, :ScenarioDefinition);
1438
1656
  start_rule(context, :Scenario);
1439
1657
  build(context, token);
1440
- return 10
1658
+ return 12
1441
1659
  end
1442
1660
  if match_RuleLine(context, token)
1443
1661
  end_rule(context, :Description);
@@ -1448,23 +1666,117 @@ module Gherkin
1448
1666
  start_rule(context, :Rule);
1449
1667
  start_rule(context, :RuleHeader);
1450
1668
  build(context, token);
1451
- return 19
1669
+ return 23
1452
1670
  end
1453
1671
  if match_Other(context, token)
1454
1672
  build(context, token);
1455
- return 16
1673
+ return 19
1456
1674
  end
1457
1675
 
1458
- state_comment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
1676
+ state_comment = "State: 19 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"
1459
1677
  token.detach
1460
1678
  expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
1461
1679
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1462
1680
  raise error if (stop_at_first_error)
1463
1681
  add_error(context, error)
1464
- return 16
1682
+ return 19
1683
+ end
1684
+ # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0
1685
+ def match_token_at_state20(token, context)
1686
+ if match_EOF(context, token)
1687
+ end_rule(context, :Examples);
1688
+ end_rule(context, :ExamplesDefinition);
1689
+ end_rule(context, :Scenario);
1690
+ end_rule(context, :ScenarioDefinition);
1691
+ end_rule(context, :Feature);
1692
+ build(context, token);
1693
+ return 42
1694
+ end
1695
+ if match_Comment(context, token)
1696
+ build(context, token);
1697
+ return 20
1698
+ end
1699
+ if match_TableRow(context, token)
1700
+ start_rule(context, :ExamplesTable);
1701
+ build(context, token);
1702
+ return 21
1703
+ end
1704
+ if match_TagLine(context, token)
1705
+ if lookahead1(context, token)
1706
+ end_rule(context, :Examples);
1707
+ end_rule(context, :ExamplesDefinition);
1708
+ start_rule(context, :ExamplesDefinition);
1709
+ start_rule(context, :Tags);
1710
+ build(context, token);
1711
+ return 17
1712
+ end
1713
+ end
1714
+ if match_TagLine(context, token)
1715
+ if lookahead0(context, token)
1716
+ end_rule(context, :Examples);
1717
+ end_rule(context, :ExamplesDefinition);
1718
+ end_rule(context, :Scenario);
1719
+ end_rule(context, :ScenarioDefinition);
1720
+ start_rule(context, :ScenarioDefinition);
1721
+ start_rule(context, :Tags);
1722
+ build(context, token);
1723
+ return 11
1724
+ end
1725
+ end
1726
+ if match_TagLine(context, token)
1727
+ end_rule(context, :Examples);
1728
+ end_rule(context, :ExamplesDefinition);
1729
+ end_rule(context, :Scenario);
1730
+ end_rule(context, :ScenarioDefinition);
1731
+ start_rule(context, :Rule);
1732
+ start_rule(context, :RuleHeader);
1733
+ start_rule(context, :Tags);
1734
+ build(context, token);
1735
+ return 22
1736
+ end
1737
+ if match_ExamplesLine(context, token)
1738
+ end_rule(context, :Examples);
1739
+ end_rule(context, :ExamplesDefinition);
1740
+ start_rule(context, :ExamplesDefinition);
1741
+ start_rule(context, :Examples);
1742
+ build(context, token);
1743
+ return 18
1744
+ end
1745
+ if match_ScenarioLine(context, token)
1746
+ end_rule(context, :Examples);
1747
+ end_rule(context, :ExamplesDefinition);
1748
+ end_rule(context, :Scenario);
1749
+ end_rule(context, :ScenarioDefinition);
1750
+ start_rule(context, :ScenarioDefinition);
1751
+ start_rule(context, :Scenario);
1752
+ build(context, token);
1753
+ return 12
1754
+ end
1755
+ if match_RuleLine(context, token)
1756
+ end_rule(context, :Examples);
1757
+ end_rule(context, :ExamplesDefinition);
1758
+ end_rule(context, :Scenario);
1759
+ end_rule(context, :ScenarioDefinition);
1760
+ start_rule(context, :Rule);
1761
+ start_rule(context, :RuleHeader);
1762
+ build(context, token);
1763
+ return 23
1764
+ end
1765
+ if match_Empty(context, token)
1766
+ build(context, token);
1767
+ return 20
1768
+ end
1769
+
1770
+ state_comment = "State: 20 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"
1771
+ token.detach
1772
+ expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]
1773
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1774
+ raise error if (stop_at_first_error)
1775
+ add_error(context, error)
1776
+ return 20
1465
1777
  end
1466
1778
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0
1467
- def match_token_at_state17(token, context)
1779
+ def match_token_at_state21(token, context)
1468
1780
  if match_EOF(context, token)
1469
1781
  end_rule(context, :ExamplesTable);
1470
1782
  end_rule(context, :Examples);
@@ -1473,11 +1785,11 @@ module Gherkin
1473
1785
  end_rule(context, :ScenarioDefinition);
1474
1786
  end_rule(context, :Feature);
1475
1787
  build(context, token);
1476
- return 34
1788
+ return 42
1477
1789
  end
1478
1790
  if match_TableRow(context, token)
1479
1791
  build(context, token);
1480
- return 17
1792
+ return 21
1481
1793
  end
1482
1794
  if match_TagLine(context, token)
1483
1795
  if lookahead1(context, token)
@@ -1487,7 +1799,7 @@ module Gherkin
1487
1799
  start_rule(context, :ExamplesDefinition);
1488
1800
  start_rule(context, :Tags);
1489
1801
  build(context, token);
1490
- return 14
1802
+ return 17
1491
1803
  end
1492
1804
  end
1493
1805
  if match_TagLine(context, token)
@@ -1500,7 +1812,7 @@ module Gherkin
1500
1812
  start_rule(context, :ScenarioDefinition);
1501
1813
  start_rule(context, :Tags);
1502
1814
  build(context, token);
1503
- return 9
1815
+ return 11
1504
1816
  end
1505
1817
  end
1506
1818
  if match_TagLine(context, token)
@@ -1513,7 +1825,7 @@ module Gherkin
1513
1825
  start_rule(context, :RuleHeader);
1514
1826
  start_rule(context, :Tags);
1515
1827
  build(context, token);
1516
- return 18
1828
+ return 22
1517
1829
  end
1518
1830
  if match_ExamplesLine(context, token)
1519
1831
  end_rule(context, :ExamplesTable);
@@ -1522,7 +1834,7 @@ module Gherkin
1522
1834
  start_rule(context, :ExamplesDefinition);
1523
1835
  start_rule(context, :Examples);
1524
1836
  build(context, token);
1525
- return 15
1837
+ return 18
1526
1838
  end
1527
1839
  if match_ScenarioLine(context, token)
1528
1840
  end_rule(context, :ExamplesTable);
@@ -1533,7 +1845,7 @@ module Gherkin
1533
1845
  start_rule(context, :ScenarioDefinition);
1534
1846
  start_rule(context, :Scenario);
1535
1847
  build(context, token);
1536
- return 10
1848
+ return 12
1537
1849
  end
1538
1850
  if match_RuleLine(context, token)
1539
1851
  end_rule(context, :ExamplesTable);
@@ -1544,76 +1856,75 @@ module Gherkin
1544
1856
  start_rule(context, :Rule);
1545
1857
  start_rule(context, :RuleHeader);
1546
1858
  build(context, token);
1547
- return 19
1859
+ return 23
1548
1860
  end
1549
1861
  if match_Comment(context, token)
1550
1862
  build(context, token);
1551
- return 17
1863
+ return 21
1552
1864
  end
1553
1865
  if match_Empty(context, token)
1554
1866
  build(context, token);
1555
- return 17
1867
+ return 21
1556
1868
  end
1557
1869
 
1558
- state_comment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"
1870
+ state_comment = "State: 21 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"
1559
1871
  token.detach
1560
1872
  expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
1561
1873
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1562
1874
  raise error if (stop_at_first_error)
1563
1875
  add_error(context, error)
1564
- return 17
1876
+ return 21
1565
1877
  end
1566
1878
  # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0
1567
- def match_token_at_state18(token, context)
1879
+ def match_token_at_state22(token, context)
1568
1880
  if match_TagLine(context, token)
1569
1881
  build(context, token);
1570
- return 18
1882
+ return 22
1571
1883
  end
1572
1884
  if match_RuleLine(context, token)
1573
1885
  end_rule(context, :Tags);
1574
1886
  build(context, token);
1575
- return 19
1887
+ return 23
1576
1888
  end
1577
1889
  if match_Comment(context, token)
1578
1890
  build(context, token);
1579
- return 18
1891
+ return 22
1580
1892
  end
1581
1893
  if match_Empty(context, token)
1582
1894
  build(context, token);
1583
- return 18
1895
+ return 22
1584
1896
  end
1585
1897
 
1586
- state_comment = "State: 18 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0"
1898
+ state_comment = "State: 22 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0"
1587
1899
  token.detach
1588
1900
  expected_tokens = ["#TagLine", "#RuleLine", "#Comment", "#Empty"]
1589
1901
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1590
1902
  raise error if (stop_at_first_error)
1591
1903
  add_error(context, error)
1592
- return 18
1904
+ return 22
1593
1905
  end
1594
1906
  # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0
1595
- def match_token_at_state19(token, context)
1907
+ def match_token_at_state23(token, context)
1596
1908
  if match_EOF(context, token)
1597
1909
  end_rule(context, :RuleHeader);
1598
1910
  end_rule(context, :Rule);
1599
1911
  end_rule(context, :Feature);
1600
1912
  build(context, token);
1601
- return 34
1913
+ return 42
1602
1914
  end
1603
1915
  if match_Empty(context, token)
1604
1916
  build(context, token);
1605
- return 19
1917
+ return 23
1606
1918
  end
1607
1919
  if match_Comment(context, token)
1608
- start_rule(context, :Description);
1609
1920
  build(context, token);
1610
- return 20
1921
+ return 25
1611
1922
  end
1612
1923
  if match_BackgroundLine(context, token)
1613
1924
  end_rule(context, :RuleHeader);
1614
1925
  start_rule(context, :Background);
1615
1926
  build(context, token);
1616
- return 21
1927
+ return 26
1617
1928
  end
1618
1929
  if match_TagLine(context, token)
1619
1930
  if lookahead0(context, token)
@@ -1621,7 +1932,7 @@ module Gherkin
1621
1932
  start_rule(context, :ScenarioDefinition);
1622
1933
  start_rule(context, :Tags);
1623
1934
  build(context, token);
1624
- return 25
1935
+ return 31
1625
1936
  end
1626
1937
  end
1627
1938
  if match_TagLine(context, token)
@@ -1631,14 +1942,14 @@ module Gherkin
1631
1942
  start_rule(context, :RuleHeader);
1632
1943
  start_rule(context, :Tags);
1633
1944
  build(context, token);
1634
- return 18
1945
+ return 22
1635
1946
  end
1636
1947
  if match_ScenarioLine(context, token)
1637
1948
  end_rule(context, :RuleHeader);
1638
1949
  start_rule(context, :ScenarioDefinition);
1639
1950
  start_rule(context, :Scenario);
1640
1951
  build(context, token);
1641
- return 26
1952
+ return 32
1642
1953
  end
1643
1954
  if match_RuleLine(context, token)
1644
1955
  end_rule(context, :RuleHeader);
@@ -1646,42 +1957,43 @@ module Gherkin
1646
1957
  start_rule(context, :Rule);
1647
1958
  start_rule(context, :RuleHeader);
1648
1959
  build(context, token);
1649
- return 19
1960
+ return 23
1650
1961
  end
1651
1962
  if match_Other(context, token)
1652
1963
  start_rule(context, :Description);
1653
1964
  build(context, token);
1654
- return 20
1965
+ return 24
1655
1966
  end
1656
1967
 
1657
- state_comment = "State: 19 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0"
1968
+ state_comment = "State: 23 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0"
1658
1969
  token.detach
1659
1970
  expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
1660
1971
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1661
1972
  raise error if (stop_at_first_error)
1662
1973
  add_error(context, error)
1663
- return 19
1974
+ return 23
1664
1975
  end
1665
- # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
1666
- def match_token_at_state20(token, context)
1976
+ # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:0
1977
+ def match_token_at_state24(token, context)
1667
1978
  if match_EOF(context, token)
1668
1979
  end_rule(context, :Description);
1669
1980
  end_rule(context, :RuleHeader);
1670
1981
  end_rule(context, :Rule);
1671
1982
  end_rule(context, :Feature);
1672
1983
  build(context, token);
1673
- return 34
1984
+ return 42
1674
1985
  end
1675
1986
  if match_Comment(context, token)
1987
+ end_rule(context, :Description);
1676
1988
  build(context, token);
1677
- return 20
1989
+ return 25
1678
1990
  end
1679
1991
  if match_BackgroundLine(context, token)
1680
1992
  end_rule(context, :Description);
1681
1993
  end_rule(context, :RuleHeader);
1682
1994
  start_rule(context, :Background);
1683
1995
  build(context, token);
1684
- return 21
1996
+ return 26
1685
1997
  end
1686
1998
  if match_TagLine(context, token)
1687
1999
  if lookahead0(context, token)
@@ -1690,7 +2002,7 @@ module Gherkin
1690
2002
  start_rule(context, :ScenarioDefinition);
1691
2003
  start_rule(context, :Tags);
1692
2004
  build(context, token);
1693
- return 25
2005
+ return 31
1694
2006
  end
1695
2007
  end
1696
2008
  if match_TagLine(context, token)
@@ -1701,7 +2013,7 @@ module Gherkin
1701
2013
  start_rule(context, :RuleHeader);
1702
2014
  start_rule(context, :Tags);
1703
2015
  build(context, token);
1704
- return 18
2016
+ return 22
1705
2017
  end
1706
2018
  if match_ScenarioLine(context, token)
1707
2019
  end_rule(context, :Description);
@@ -1709,7 +2021,7 @@ module Gherkin
1709
2021
  start_rule(context, :ScenarioDefinition);
1710
2022
  start_rule(context, :Scenario);
1711
2023
  build(context, token);
1712
- return 26
2024
+ return 32
1713
2025
  end
1714
2026
  if match_RuleLine(context, token)
1715
2027
  end_rule(context, :Description);
@@ -1718,186 +2030,315 @@ module Gherkin
1718
2030
  start_rule(context, :Rule);
1719
2031
  start_rule(context, :RuleHeader);
1720
2032
  build(context, token);
1721
- return 19
2033
+ return 23
1722
2034
  end
1723
2035
  if match_Other(context, token)
1724
2036
  build(context, token);
1725
- return 20
2037
+ return 24
1726
2038
  end
1727
2039
 
1728
- state_comment = "State: 20 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
2040
+ state_comment = "State: 24 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:0"
1729
2041
  token.detach
1730
2042
  expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
1731
2043
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1732
2044
  raise error if (stop_at_first_error)
1733
2045
  add_error(context, error)
1734
- return 20
2046
+ return 24
2047
+ end
2048
+ # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:0
2049
+ def match_token_at_state25(token, context)
2050
+ if match_EOF(context, token)
2051
+ end_rule(context, :RuleHeader);
2052
+ end_rule(context, :Rule);
2053
+ end_rule(context, :Feature);
2054
+ build(context, token);
2055
+ return 42
2056
+ end
2057
+ if match_Comment(context, token)
2058
+ build(context, token);
2059
+ return 25
2060
+ end
2061
+ if match_BackgroundLine(context, token)
2062
+ end_rule(context, :RuleHeader);
2063
+ start_rule(context, :Background);
2064
+ build(context, token);
2065
+ return 26
2066
+ end
2067
+ if match_TagLine(context, token)
2068
+ if lookahead0(context, token)
2069
+ end_rule(context, :RuleHeader);
2070
+ start_rule(context, :ScenarioDefinition);
2071
+ start_rule(context, :Tags);
2072
+ build(context, token);
2073
+ return 31
2074
+ end
2075
+ end
2076
+ if match_TagLine(context, token)
2077
+ end_rule(context, :RuleHeader);
2078
+ end_rule(context, :Rule);
2079
+ start_rule(context, :Rule);
2080
+ start_rule(context, :RuleHeader);
2081
+ start_rule(context, :Tags);
2082
+ build(context, token);
2083
+ return 22
2084
+ end
2085
+ if match_ScenarioLine(context, token)
2086
+ end_rule(context, :RuleHeader);
2087
+ start_rule(context, :ScenarioDefinition);
2088
+ start_rule(context, :Scenario);
2089
+ build(context, token);
2090
+ return 32
2091
+ end
2092
+ if match_RuleLine(context, token)
2093
+ end_rule(context, :RuleHeader);
2094
+ end_rule(context, :Rule);
2095
+ start_rule(context, :Rule);
2096
+ start_rule(context, :RuleHeader);
2097
+ build(context, token);
2098
+ return 23
2099
+ end
2100
+ if match_Empty(context, token)
2101
+ build(context, token);
2102
+ return 25
2103
+ end
2104
+
2105
+ state_comment = "State: 25 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:0"
2106
+ token.detach
2107
+ expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]
2108
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2109
+ raise error if (stop_at_first_error)
2110
+ add_error(context, error)
2111
+ return 25
1735
2112
  end
1736
2113
  # GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0
1737
- def match_token_at_state21(token, context)
2114
+ def match_token_at_state26(token, context)
1738
2115
  if match_EOF(context, token)
1739
2116
  end_rule(context, :Background);
1740
2117
  end_rule(context, :Rule);
1741
2118
  end_rule(context, :Feature);
1742
2119
  build(context, token);
1743
- return 34
2120
+ return 42
1744
2121
  end
1745
2122
  if match_Empty(context, token)
1746
2123
  build(context, token);
1747
- return 21
2124
+ return 26
2125
+ end
2126
+ if match_Comment(context, token)
2127
+ build(context, token);
2128
+ return 28
2129
+ end
2130
+ if match_StepLine(context, token)
2131
+ start_rule(context, :Step);
2132
+ build(context, token);
2133
+ return 29
2134
+ end
2135
+ if match_TagLine(context, token)
2136
+ if lookahead0(context, token)
2137
+ end_rule(context, :Background);
2138
+ start_rule(context, :ScenarioDefinition);
2139
+ start_rule(context, :Tags);
2140
+ build(context, token);
2141
+ return 31
2142
+ end
2143
+ end
2144
+ if match_TagLine(context, token)
2145
+ end_rule(context, :Background);
2146
+ end_rule(context, :Rule);
2147
+ start_rule(context, :Rule);
2148
+ start_rule(context, :RuleHeader);
2149
+ start_rule(context, :Tags);
2150
+ build(context, token);
2151
+ return 22
2152
+ end
2153
+ if match_ScenarioLine(context, token)
2154
+ end_rule(context, :Background);
2155
+ start_rule(context, :ScenarioDefinition);
2156
+ start_rule(context, :Scenario);
2157
+ build(context, token);
2158
+ return 32
2159
+ end
2160
+ if match_RuleLine(context, token)
2161
+ end_rule(context, :Background);
2162
+ end_rule(context, :Rule);
2163
+ start_rule(context, :Rule);
2164
+ start_rule(context, :RuleHeader);
2165
+ build(context, token);
2166
+ return 23
2167
+ end
2168
+ if match_Other(context, token)
2169
+ start_rule(context, :Description);
2170
+ build(context, token);
2171
+ return 27
2172
+ end
2173
+
2174
+ state_comment = "State: 26 - GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0"
2175
+ token.detach
2176
+ expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
2177
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2178
+ raise error if (stop_at_first_error)
2179
+ add_error(context, error)
2180
+ return 26
2181
+ end
2182
+ # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0
2183
+ def match_token_at_state27(token, context)
2184
+ if match_EOF(context, token)
2185
+ end_rule(context, :Description);
2186
+ end_rule(context, :Background);
2187
+ end_rule(context, :Rule);
2188
+ end_rule(context, :Feature);
2189
+ build(context, token);
2190
+ return 42
1748
2191
  end
1749
2192
  if match_Comment(context, token)
1750
- start_rule(context, :Description);
2193
+ end_rule(context, :Description);
1751
2194
  build(context, token);
1752
- return 22
2195
+ return 28
1753
2196
  end
1754
2197
  if match_StepLine(context, token)
2198
+ end_rule(context, :Description);
1755
2199
  start_rule(context, :Step);
1756
2200
  build(context, token);
1757
- return 23
2201
+ return 29
1758
2202
  end
1759
2203
  if match_TagLine(context, token)
1760
2204
  if lookahead0(context, token)
2205
+ end_rule(context, :Description);
1761
2206
  end_rule(context, :Background);
1762
2207
  start_rule(context, :ScenarioDefinition);
1763
2208
  start_rule(context, :Tags);
1764
2209
  build(context, token);
1765
- return 25
2210
+ return 31
1766
2211
  end
1767
2212
  end
1768
2213
  if match_TagLine(context, token)
2214
+ end_rule(context, :Description);
1769
2215
  end_rule(context, :Background);
1770
2216
  end_rule(context, :Rule);
1771
2217
  start_rule(context, :Rule);
1772
2218
  start_rule(context, :RuleHeader);
1773
2219
  start_rule(context, :Tags);
1774
2220
  build(context, token);
1775
- return 18
2221
+ return 22
1776
2222
  end
1777
2223
  if match_ScenarioLine(context, token)
2224
+ end_rule(context, :Description);
1778
2225
  end_rule(context, :Background);
1779
2226
  start_rule(context, :ScenarioDefinition);
1780
2227
  start_rule(context, :Scenario);
1781
2228
  build(context, token);
1782
- return 26
2229
+ return 32
1783
2230
  end
1784
2231
  if match_RuleLine(context, token)
2232
+ end_rule(context, :Description);
1785
2233
  end_rule(context, :Background);
1786
2234
  end_rule(context, :Rule);
1787
2235
  start_rule(context, :Rule);
1788
2236
  start_rule(context, :RuleHeader);
1789
2237
  build(context, token);
1790
- return 19
2238
+ return 23
1791
2239
  end
1792
2240
  if match_Other(context, token)
1793
- start_rule(context, :Description);
1794
2241
  build(context, token);
1795
- return 22
2242
+ return 27
1796
2243
  end
1797
2244
 
1798
- state_comment = "State: 21 - GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0"
2245
+ state_comment = "State: 27 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"
1799
2246
  token.detach
1800
- expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
2247
+ expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
1801
2248
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1802
2249
  raise error if (stop_at_first_error)
1803
2250
  add_error(context, error)
1804
- return 21
2251
+ return 27
1805
2252
  end
1806
- # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
1807
- def match_token_at_state22(token, context)
2253
+ # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0
2254
+ def match_token_at_state28(token, context)
1808
2255
  if match_EOF(context, token)
1809
- end_rule(context, :Description);
1810
2256
  end_rule(context, :Background);
1811
2257
  end_rule(context, :Rule);
1812
2258
  end_rule(context, :Feature);
1813
2259
  build(context, token);
1814
- return 34
2260
+ return 42
1815
2261
  end
1816
2262
  if match_Comment(context, token)
1817
2263
  build(context, token);
1818
- return 22
2264
+ return 28
1819
2265
  end
1820
2266
  if match_StepLine(context, token)
1821
- end_rule(context, :Description);
1822
2267
  start_rule(context, :Step);
1823
2268
  build(context, token);
1824
- return 23
2269
+ return 29
1825
2270
  end
1826
2271
  if match_TagLine(context, token)
1827
2272
  if lookahead0(context, token)
1828
- end_rule(context, :Description);
1829
2273
  end_rule(context, :Background);
1830
2274
  start_rule(context, :ScenarioDefinition);
1831
2275
  start_rule(context, :Tags);
1832
2276
  build(context, token);
1833
- return 25
2277
+ return 31
1834
2278
  end
1835
2279
  end
1836
2280
  if match_TagLine(context, token)
1837
- end_rule(context, :Description);
1838
2281
  end_rule(context, :Background);
1839
2282
  end_rule(context, :Rule);
1840
2283
  start_rule(context, :Rule);
1841
2284
  start_rule(context, :RuleHeader);
1842
2285
  start_rule(context, :Tags);
1843
2286
  build(context, token);
1844
- return 18
2287
+ return 22
1845
2288
  end
1846
2289
  if match_ScenarioLine(context, token)
1847
- end_rule(context, :Description);
1848
2290
  end_rule(context, :Background);
1849
2291
  start_rule(context, :ScenarioDefinition);
1850
2292
  start_rule(context, :Scenario);
1851
2293
  build(context, token);
1852
- return 26
2294
+ return 32
1853
2295
  end
1854
2296
  if match_RuleLine(context, token)
1855
- end_rule(context, :Description);
1856
2297
  end_rule(context, :Background);
1857
2298
  end_rule(context, :Rule);
1858
2299
  start_rule(context, :Rule);
1859
2300
  start_rule(context, :RuleHeader);
1860
2301
  build(context, token);
1861
- return 19
2302
+ return 23
1862
2303
  end
1863
- if match_Other(context, token)
2304
+ if match_Empty(context, token)
1864
2305
  build(context, token);
1865
- return 22
2306
+ return 28
1866
2307
  end
1867
2308
 
1868
- state_comment = "State: 22 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
2309
+ state_comment = "State: 28 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0"
1869
2310
  token.detach
1870
- expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]
2311
+ expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]
1871
2312
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1872
2313
  raise error if (stop_at_first_error)
1873
2314
  add_error(context, error)
1874
- return 22
2315
+ return 28
1875
2316
  end
1876
2317
  # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0
1877
- def match_token_at_state23(token, context)
2318
+ def match_token_at_state29(token, context)
1878
2319
  if match_EOF(context, token)
1879
2320
  end_rule(context, :Step);
1880
2321
  end_rule(context, :Background);
1881
2322
  end_rule(context, :Rule);
1882
2323
  end_rule(context, :Feature);
1883
2324
  build(context, token);
1884
- return 34
2325
+ return 42
1885
2326
  end
1886
2327
  if match_TableRow(context, token)
1887
2328
  start_rule(context, :DataTable);
1888
2329
  build(context, token);
1889
- return 24
2330
+ return 30
1890
2331
  end
1891
2332
  if match_DocStringSeparator(context, token)
1892
2333
  start_rule(context, :DocString);
1893
2334
  build(context, token);
1894
- return 37
2335
+ return 45
1895
2336
  end
1896
2337
  if match_StepLine(context, token)
1897
2338
  end_rule(context, :Step);
1898
2339
  start_rule(context, :Step);
1899
2340
  build(context, token);
1900
- return 23
2341
+ return 29
1901
2342
  end
1902
2343
  if match_TagLine(context, token)
1903
2344
  if lookahead0(context, token)
@@ -1906,7 +2347,7 @@ module Gherkin
1906
2347
  start_rule(context, :ScenarioDefinition);
1907
2348
  start_rule(context, :Tags);
1908
2349
  build(context, token);
1909
- return 25
2350
+ return 31
1910
2351
  end
1911
2352
  end
1912
2353
  if match_TagLine(context, token)
@@ -1917,7 +2358,7 @@ module Gherkin
1917
2358
  start_rule(context, :RuleHeader);
1918
2359
  start_rule(context, :Tags);
1919
2360
  build(context, token);
1920
- return 18
2361
+ return 22
1921
2362
  end
1922
2363
  if match_ScenarioLine(context, token)
1923
2364
  end_rule(context, :Step);
@@ -1925,7 +2366,7 @@ module Gherkin
1925
2366
  start_rule(context, :ScenarioDefinition);
1926
2367
  start_rule(context, :Scenario);
1927
2368
  build(context, token);
1928
- return 26
2369
+ return 32
1929
2370
  end
1930
2371
  if match_RuleLine(context, token)
1931
2372
  end_rule(context, :Step);
@@ -1934,27 +2375,27 @@ module Gherkin
1934
2375
  start_rule(context, :Rule);
1935
2376
  start_rule(context, :RuleHeader);
1936
2377
  build(context, token);
1937
- return 19
2378
+ return 23
1938
2379
  end
1939
2380
  if match_Comment(context, token)
1940
2381
  build(context, token);
1941
- return 23
2382
+ return 29
1942
2383
  end
1943
2384
  if match_Empty(context, token)
1944
2385
  build(context, token);
1945
- return 23
2386
+ return 29
1946
2387
  end
1947
2388
 
1948
- state_comment = "State: 23 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0"
2389
+ state_comment = "State: 29 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0"
1949
2390
  token.detach
1950
2391
  expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
1951
2392
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
1952
2393
  raise error if (stop_at_first_error)
1953
2394
  add_error(context, error)
1954
- return 23
2395
+ return 29
1955
2396
  end
1956
2397
  # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
1957
- def match_token_at_state24(token, context)
2398
+ def match_token_at_state30(token, context)
1958
2399
  if match_EOF(context, token)
1959
2400
  end_rule(context, :DataTable);
1960
2401
  end_rule(context, :Step);
@@ -1962,18 +2403,18 @@ module Gherkin
1962
2403
  end_rule(context, :Rule);
1963
2404
  end_rule(context, :Feature);
1964
2405
  build(context, token);
1965
- return 34
2406
+ return 42
1966
2407
  end
1967
2408
  if match_TableRow(context, token)
1968
2409
  build(context, token);
1969
- return 24
2410
+ return 30
1970
2411
  end
1971
2412
  if match_StepLine(context, token)
1972
2413
  end_rule(context, :DataTable);
1973
2414
  end_rule(context, :Step);
1974
2415
  start_rule(context, :Step);
1975
2416
  build(context, token);
1976
- return 23
2417
+ return 29
1977
2418
  end
1978
2419
  if match_TagLine(context, token)
1979
2420
  if lookahead0(context, token)
@@ -1983,7 +2424,7 @@ module Gherkin
1983
2424
  start_rule(context, :ScenarioDefinition);
1984
2425
  start_rule(context, :Tags);
1985
2426
  build(context, token);
1986
- return 25
2427
+ return 31
1987
2428
  end
1988
2429
  end
1989
2430
  if match_TagLine(context, token)
@@ -1995,7 +2436,7 @@ module Gherkin
1995
2436
  start_rule(context, :RuleHeader);
1996
2437
  start_rule(context, :Tags);
1997
2438
  build(context, token);
1998
- return 18
2439
+ return 22
1999
2440
  end
2000
2441
  if match_ScenarioLine(context, token)
2001
2442
  end_rule(context, :DataTable);
@@ -2004,7 +2445,7 @@ module Gherkin
2004
2445
  start_rule(context, :ScenarioDefinition);
2005
2446
  start_rule(context, :Scenario);
2006
2447
  build(context, token);
2007
- return 26
2448
+ return 32
2008
2449
  end
2009
2450
  if match_RuleLine(context, token)
2010
2451
  end_rule(context, :DataTable);
@@ -2014,84 +2455,83 @@ module Gherkin
2014
2455
  start_rule(context, :Rule);
2015
2456
  start_rule(context, :RuleHeader);
2016
2457
  build(context, token);
2017
- return 19
2458
+ return 23
2018
2459
  end
2019
2460
  if match_Comment(context, token)
2020
2461
  build(context, token);
2021
- return 24
2462
+ return 30
2022
2463
  end
2023
2464
  if match_Empty(context, token)
2024
2465
  build(context, token);
2025
- return 24
2466
+ return 30
2026
2467
  end
2027
2468
 
2028
- state_comment = "State: 24 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
2469
+ state_comment = "State: 30 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
2029
2470
  token.detach
2030
2471
  expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
2031
2472
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2032
2473
  raise error if (stop_at_first_error)
2033
2474
  add_error(context, error)
2034
- return 24
2475
+ return 30
2035
2476
  end
2036
2477
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0
2037
- def match_token_at_state25(token, context)
2478
+ def match_token_at_state31(token, context)
2038
2479
  if match_TagLine(context, token)
2039
2480
  build(context, token);
2040
- return 25
2481
+ return 31
2041
2482
  end
2042
2483
  if match_ScenarioLine(context, token)
2043
2484
  end_rule(context, :Tags);
2044
2485
  start_rule(context, :Scenario);
2045
2486
  build(context, token);
2046
- return 26
2487
+ return 32
2047
2488
  end
2048
2489
  if match_Comment(context, token)
2049
2490
  build(context, token);
2050
- return 25
2491
+ return 31
2051
2492
  end
2052
2493
  if match_Empty(context, token)
2053
2494
  build(context, token);
2054
- return 25
2495
+ return 31
2055
2496
  end
2056
2497
 
2057
- state_comment = "State: 25 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0"
2498
+ state_comment = "State: 31 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0"
2058
2499
  token.detach
2059
2500
  expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]
2060
2501
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2061
2502
  raise error if (stop_at_first_error)
2062
2503
  add_error(context, error)
2063
- return 25
2504
+ return 31
2064
2505
  end
2065
2506
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0
2066
- def match_token_at_state26(token, context)
2507
+ def match_token_at_state32(token, context)
2067
2508
  if match_EOF(context, token)
2068
2509
  end_rule(context, :Scenario);
2069
2510
  end_rule(context, :ScenarioDefinition);
2070
2511
  end_rule(context, :Rule);
2071
2512
  end_rule(context, :Feature);
2072
2513
  build(context, token);
2073
- return 34
2514
+ return 42
2074
2515
  end
2075
2516
  if match_Empty(context, token)
2076
2517
  build(context, token);
2077
- return 26
2518
+ return 32
2078
2519
  end
2079
2520
  if match_Comment(context, token)
2080
- start_rule(context, :Description);
2081
2521
  build(context, token);
2082
- return 27
2522
+ return 34
2083
2523
  end
2084
2524
  if match_StepLine(context, token)
2085
2525
  start_rule(context, :Step);
2086
2526
  build(context, token);
2087
- return 28
2527
+ return 35
2088
2528
  end
2089
2529
  if match_TagLine(context, token)
2090
2530
  if lookahead1(context, token)
2091
2531
  start_rule(context, :ExamplesDefinition);
2092
2532
  start_rule(context, :Tags);
2093
2533
  build(context, token);
2094
- return 30
2534
+ return 37
2095
2535
  end
2096
2536
  end
2097
2537
  if match_TagLine(context, token)
@@ -2101,7 +2541,7 @@ module Gherkin
2101
2541
  start_rule(context, :ScenarioDefinition);
2102
2542
  start_rule(context, :Tags);
2103
2543
  build(context, token);
2104
- return 25
2544
+ return 31
2105
2545
  end
2106
2546
  end
2107
2547
  if match_TagLine(context, token)
@@ -2112,13 +2552,13 @@ module Gherkin
2112
2552
  start_rule(context, :RuleHeader);
2113
2553
  start_rule(context, :Tags);
2114
2554
  build(context, token);
2115
- return 18
2555
+ return 22
2116
2556
  end
2117
2557
  if match_ExamplesLine(context, token)
2118
2558
  start_rule(context, :ExamplesDefinition);
2119
2559
  start_rule(context, :Examples);
2120
2560
  build(context, token);
2121
- return 31
2561
+ return 38
2122
2562
  end
2123
2563
  if match_ScenarioLine(context, token)
2124
2564
  end_rule(context, :Scenario);
@@ -2126,7 +2566,7 @@ module Gherkin
2126
2566
  start_rule(context, :ScenarioDefinition);
2127
2567
  start_rule(context, :Scenario);
2128
2568
  build(context, token);
2129
- return 26
2569
+ return 32
2130
2570
  end
2131
2571
  if match_RuleLine(context, token)
2132
2572
  end_rule(context, :Scenario);
@@ -2135,24 +2575,24 @@ module Gherkin
2135
2575
  start_rule(context, :Rule);
2136
2576
  start_rule(context, :RuleHeader);
2137
2577
  build(context, token);
2138
- return 19
2578
+ return 23
2139
2579
  end
2140
2580
  if match_Other(context, token)
2141
2581
  start_rule(context, :Description);
2142
2582
  build(context, token);
2143
- return 27
2583
+ return 33
2144
2584
  end
2145
2585
 
2146
- state_comment = "State: 26 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"
2586
+ state_comment = "State: 32 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"
2147
2587
  token.detach
2148
2588
  expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
2149
2589
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2150
2590
  raise error if (stop_at_first_error)
2151
2591
  add_error(context, error)
2152
- return 26
2592
+ return 32
2153
2593
  end
2154
- # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
2155
- def match_token_at_state27(token, context)
2594
+ # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0
2595
+ def match_token_at_state33(token, context)
2156
2596
  if match_EOF(context, token)
2157
2597
  end_rule(context, :Description);
2158
2598
  end_rule(context, :Scenario);
@@ -2160,17 +2600,18 @@ module Gherkin
2160
2600
  end_rule(context, :Rule);
2161
2601
  end_rule(context, :Feature);
2162
2602
  build(context, token);
2163
- return 34
2603
+ return 42
2164
2604
  end
2165
2605
  if match_Comment(context, token)
2606
+ end_rule(context, :Description);
2166
2607
  build(context, token);
2167
- return 27
2608
+ return 34
2168
2609
  end
2169
2610
  if match_StepLine(context, token)
2170
2611
  end_rule(context, :Description);
2171
2612
  start_rule(context, :Step);
2172
2613
  build(context, token);
2173
- return 28
2614
+ return 35
2174
2615
  end
2175
2616
  if match_TagLine(context, token)
2176
2617
  if lookahead1(context, token)
@@ -2178,7 +2619,7 @@ module Gherkin
2178
2619
  start_rule(context, :ExamplesDefinition);
2179
2620
  start_rule(context, :Tags);
2180
2621
  build(context, token);
2181
- return 30
2622
+ return 37
2182
2623
  end
2183
2624
  end
2184
2625
  if match_TagLine(context, token)
@@ -2189,7 +2630,7 @@ module Gherkin
2189
2630
  start_rule(context, :ScenarioDefinition);
2190
2631
  start_rule(context, :Tags);
2191
2632
  build(context, token);
2192
- return 25
2633
+ return 31
2193
2634
  end
2194
2635
  end
2195
2636
  if match_TagLine(context, token)
@@ -2201,14 +2642,14 @@ module Gherkin
2201
2642
  start_rule(context, :RuleHeader);
2202
2643
  start_rule(context, :Tags);
2203
2644
  build(context, token);
2204
- return 18
2645
+ return 22
2205
2646
  end
2206
2647
  if match_ExamplesLine(context, token)
2207
2648
  end_rule(context, :Description);
2208
2649
  start_rule(context, :ExamplesDefinition);
2209
2650
  start_rule(context, :Examples);
2210
2651
  build(context, token);
2211
- return 31
2652
+ return 38
2212
2653
  end
2213
2654
  if match_ScenarioLine(context, token)
2214
2655
  end_rule(context, :Description);
@@ -2217,7 +2658,7 @@ module Gherkin
2217
2658
  start_rule(context, :ScenarioDefinition);
2218
2659
  start_rule(context, :Scenario);
2219
2660
  build(context, token);
2220
- return 26
2661
+ return 32
2221
2662
  end
2222
2663
  if match_RuleLine(context, token)
2223
2664
  end_rule(context, :Description);
@@ -2227,23 +2668,106 @@ module Gherkin
2227
2668
  start_rule(context, :Rule);
2228
2669
  start_rule(context, :RuleHeader);
2229
2670
  build(context, token);
2230
- return 19
2671
+ return 23
2231
2672
  end
2232
2673
  if match_Other(context, token)
2233
2674
  build(context, token);
2234
- return 27
2675
+ return 33
2235
2676
  end
2236
2677
 
2237
- state_comment = "State: 27 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
2678
+ state_comment = "State: 33 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"
2238
2679
  token.detach
2239
2680
  expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
2240
2681
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2241
2682
  raise error if (stop_at_first_error)
2242
2683
  add_error(context, error)
2243
- return 27
2684
+ return 33
2685
+ end
2686
+ # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0
2687
+ def match_token_at_state34(token, context)
2688
+ if match_EOF(context, token)
2689
+ end_rule(context, :Scenario);
2690
+ end_rule(context, :ScenarioDefinition);
2691
+ end_rule(context, :Rule);
2692
+ end_rule(context, :Feature);
2693
+ build(context, token);
2694
+ return 42
2695
+ end
2696
+ if match_Comment(context, token)
2697
+ build(context, token);
2698
+ return 34
2699
+ end
2700
+ if match_StepLine(context, token)
2701
+ start_rule(context, :Step);
2702
+ build(context, token);
2703
+ return 35
2704
+ end
2705
+ if match_TagLine(context, token)
2706
+ if lookahead1(context, token)
2707
+ start_rule(context, :ExamplesDefinition);
2708
+ start_rule(context, :Tags);
2709
+ build(context, token);
2710
+ return 37
2711
+ end
2712
+ end
2713
+ if match_TagLine(context, token)
2714
+ if lookahead0(context, token)
2715
+ end_rule(context, :Scenario);
2716
+ end_rule(context, :ScenarioDefinition);
2717
+ start_rule(context, :ScenarioDefinition);
2718
+ start_rule(context, :Tags);
2719
+ build(context, token);
2720
+ return 31
2721
+ end
2722
+ end
2723
+ if match_TagLine(context, token)
2724
+ end_rule(context, :Scenario);
2725
+ end_rule(context, :ScenarioDefinition);
2726
+ end_rule(context, :Rule);
2727
+ start_rule(context, :Rule);
2728
+ start_rule(context, :RuleHeader);
2729
+ start_rule(context, :Tags);
2730
+ build(context, token);
2731
+ return 22
2732
+ end
2733
+ if match_ExamplesLine(context, token)
2734
+ start_rule(context, :ExamplesDefinition);
2735
+ start_rule(context, :Examples);
2736
+ build(context, token);
2737
+ return 38
2738
+ end
2739
+ if match_ScenarioLine(context, token)
2740
+ end_rule(context, :Scenario);
2741
+ end_rule(context, :ScenarioDefinition);
2742
+ start_rule(context, :ScenarioDefinition);
2743
+ start_rule(context, :Scenario);
2744
+ build(context, token);
2745
+ return 32
2746
+ end
2747
+ if match_RuleLine(context, token)
2748
+ end_rule(context, :Scenario);
2749
+ end_rule(context, :ScenarioDefinition);
2750
+ end_rule(context, :Rule);
2751
+ start_rule(context, :Rule);
2752
+ start_rule(context, :RuleHeader);
2753
+ build(context, token);
2754
+ return 23
2755
+ end
2756
+ if match_Empty(context, token)
2757
+ build(context, token);
2758
+ return 34
2759
+ end
2760
+
2761
+ state_comment = "State: 34 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"
2762
+ token.detach
2763
+ expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]
2764
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2765
+ raise error if (stop_at_first_error)
2766
+ add_error(context, error)
2767
+ return 34
2244
2768
  end
2245
2769
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0
2246
- def match_token_at_state28(token, context)
2770
+ def match_token_at_state35(token, context)
2247
2771
  if match_EOF(context, token)
2248
2772
  end_rule(context, :Step);
2249
2773
  end_rule(context, :Scenario);
@@ -2251,23 +2775,23 @@ module Gherkin
2251
2775
  end_rule(context, :Rule);
2252
2776
  end_rule(context, :Feature);
2253
2777
  build(context, token);
2254
- return 34
2778
+ return 42
2255
2779
  end
2256
2780
  if match_TableRow(context, token)
2257
2781
  start_rule(context, :DataTable);
2258
2782
  build(context, token);
2259
- return 29
2783
+ return 36
2260
2784
  end
2261
2785
  if match_DocStringSeparator(context, token)
2262
2786
  start_rule(context, :DocString);
2263
2787
  build(context, token);
2264
- return 35
2788
+ return 43
2265
2789
  end
2266
2790
  if match_StepLine(context, token)
2267
2791
  end_rule(context, :Step);
2268
2792
  start_rule(context, :Step);
2269
2793
  build(context, token);
2270
- return 28
2794
+ return 35
2271
2795
  end
2272
2796
  if match_TagLine(context, token)
2273
2797
  if lookahead1(context, token)
@@ -2275,7 +2799,7 @@ module Gherkin
2275
2799
  start_rule(context, :ExamplesDefinition);
2276
2800
  start_rule(context, :Tags);
2277
2801
  build(context, token);
2278
- return 30
2802
+ return 37
2279
2803
  end
2280
2804
  end
2281
2805
  if match_TagLine(context, token)
@@ -2286,7 +2810,7 @@ module Gherkin
2286
2810
  start_rule(context, :ScenarioDefinition);
2287
2811
  start_rule(context, :Tags);
2288
2812
  build(context, token);
2289
- return 25
2813
+ return 31
2290
2814
  end
2291
2815
  end
2292
2816
  if match_TagLine(context, token)
@@ -2298,14 +2822,14 @@ module Gherkin
2298
2822
  start_rule(context, :RuleHeader);
2299
2823
  start_rule(context, :Tags);
2300
2824
  build(context, token);
2301
- return 18
2825
+ return 22
2302
2826
  end
2303
2827
  if match_ExamplesLine(context, token)
2304
2828
  end_rule(context, :Step);
2305
2829
  start_rule(context, :ExamplesDefinition);
2306
2830
  start_rule(context, :Examples);
2307
2831
  build(context, token);
2308
- return 31
2832
+ return 38
2309
2833
  end
2310
2834
  if match_ScenarioLine(context, token)
2311
2835
  end_rule(context, :Step);
@@ -2314,7 +2838,7 @@ module Gherkin
2314
2838
  start_rule(context, :ScenarioDefinition);
2315
2839
  start_rule(context, :Scenario);
2316
2840
  build(context, token);
2317
- return 26
2841
+ return 32
2318
2842
  end
2319
2843
  if match_RuleLine(context, token)
2320
2844
  end_rule(context, :Step);
@@ -2324,27 +2848,27 @@ module Gherkin
2324
2848
  start_rule(context, :Rule);
2325
2849
  start_rule(context, :RuleHeader);
2326
2850
  build(context, token);
2327
- return 19
2851
+ return 23
2328
2852
  end
2329
2853
  if match_Comment(context, token)
2330
2854
  build(context, token);
2331
- return 28
2855
+ return 35
2332
2856
  end
2333
2857
  if match_Empty(context, token)
2334
2858
  build(context, token);
2335
- return 28
2859
+ return 35
2336
2860
  end
2337
2861
 
2338
- state_comment = "State: 28 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"
2862
+ state_comment = "State: 35 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"
2339
2863
  token.detach
2340
2864
  expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
2341
2865
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2342
2866
  raise error if (stop_at_first_error)
2343
2867
  add_error(context, error)
2344
- return 28
2868
+ return 35
2345
2869
  end
2346
2870
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0
2347
- def match_token_at_state29(token, context)
2871
+ def match_token_at_state36(token, context)
2348
2872
  if match_EOF(context, token)
2349
2873
  end_rule(context, :DataTable);
2350
2874
  end_rule(context, :Step);
@@ -2353,18 +2877,18 @@ module Gherkin
2353
2877
  end_rule(context, :Rule);
2354
2878
  end_rule(context, :Feature);
2355
2879
  build(context, token);
2356
- return 34
2880
+ return 42
2357
2881
  end
2358
2882
  if match_TableRow(context, token)
2359
2883
  build(context, token);
2360
- return 29
2884
+ return 36
2361
2885
  end
2362
2886
  if match_StepLine(context, token)
2363
2887
  end_rule(context, :DataTable);
2364
2888
  end_rule(context, :Step);
2365
2889
  start_rule(context, :Step);
2366
2890
  build(context, token);
2367
- return 28
2891
+ return 35
2368
2892
  end
2369
2893
  if match_TagLine(context, token)
2370
2894
  if lookahead1(context, token)
@@ -2373,7 +2897,7 @@ module Gherkin
2373
2897
  start_rule(context, :ExamplesDefinition);
2374
2898
  start_rule(context, :Tags);
2375
2899
  build(context, token);
2376
- return 30
2900
+ return 37
2377
2901
  end
2378
2902
  end
2379
2903
  if match_TagLine(context, token)
@@ -2385,7 +2909,7 @@ module Gherkin
2385
2909
  start_rule(context, :ScenarioDefinition);
2386
2910
  start_rule(context, :Tags);
2387
2911
  build(context, token);
2388
- return 25
2912
+ return 31
2389
2913
  end
2390
2914
  end
2391
2915
  if match_TagLine(context, token)
@@ -2398,7 +2922,7 @@ module Gherkin
2398
2922
  start_rule(context, :RuleHeader);
2399
2923
  start_rule(context, :Tags);
2400
2924
  build(context, token);
2401
- return 18
2925
+ return 22
2402
2926
  end
2403
2927
  if match_ExamplesLine(context, token)
2404
2928
  end_rule(context, :DataTable);
@@ -2406,7 +2930,7 @@ module Gherkin
2406
2930
  start_rule(context, :ExamplesDefinition);
2407
2931
  start_rule(context, :Examples);
2408
2932
  build(context, token);
2409
- return 31
2933
+ return 38
2410
2934
  end
2411
2935
  if match_ScenarioLine(context, token)
2412
2936
  end_rule(context, :DataTable);
@@ -2416,7 +2940,7 @@ module Gherkin
2416
2940
  start_rule(context, :ScenarioDefinition);
2417
2941
  start_rule(context, :Scenario);
2418
2942
  build(context, token);
2419
- return 26
2943
+ return 32
2420
2944
  end
2421
2945
  if match_RuleLine(context, token)
2422
2946
  end_rule(context, :DataTable);
@@ -2427,56 +2951,56 @@ module Gherkin
2427
2951
  start_rule(context, :Rule);
2428
2952
  start_rule(context, :RuleHeader);
2429
2953
  build(context, token);
2430
- return 19
2954
+ return 23
2431
2955
  end
2432
2956
  if match_Comment(context, token)
2433
2957
  build(context, token);
2434
- return 29
2958
+ return 36
2435
2959
  end
2436
2960
  if match_Empty(context, token)
2437
2961
  build(context, token);
2438
- return 29
2962
+ return 36
2439
2963
  end
2440
2964
 
2441
- state_comment = "State: 29 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
2965
+ state_comment = "State: 36 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"
2442
2966
  token.detach
2443
2967
  expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
2444
2968
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2445
2969
  raise error if (stop_at_first_error)
2446
2970
  add_error(context, error)
2447
- return 29
2971
+ return 36
2448
2972
  end
2449
2973
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0
2450
- def match_token_at_state30(token, context)
2974
+ def match_token_at_state37(token, context)
2451
2975
  if match_TagLine(context, token)
2452
2976
  build(context, token);
2453
- return 30
2977
+ return 37
2454
2978
  end
2455
2979
  if match_ExamplesLine(context, token)
2456
2980
  end_rule(context, :Tags);
2457
2981
  start_rule(context, :Examples);
2458
2982
  build(context, token);
2459
- return 31
2983
+ return 38
2460
2984
  end
2461
2985
  if match_Comment(context, token)
2462
2986
  build(context, token);
2463
- return 30
2987
+ return 37
2464
2988
  end
2465
2989
  if match_Empty(context, token)
2466
2990
  build(context, token);
2467
- return 30
2991
+ return 37
2468
2992
  end
2469
2993
 
2470
- state_comment = "State: 30 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"
2994
+ state_comment = "State: 37 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"
2471
2995
  token.detach
2472
2996
  expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]
2473
2997
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2474
2998
  raise error if (stop_at_first_error)
2475
2999
  add_error(context, error)
2476
- return 30
3000
+ return 37
2477
3001
  end
2478
3002
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0
2479
- def match_token_at_state31(token, context)
3003
+ def match_token_at_state38(token, context)
2480
3004
  if match_EOF(context, token)
2481
3005
  end_rule(context, :Examples);
2482
3006
  end_rule(context, :ExamplesDefinition);
@@ -2485,21 +3009,20 @@ module Gherkin
2485
3009
  end_rule(context, :Rule);
2486
3010
  end_rule(context, :Feature);
2487
3011
  build(context, token);
2488
- return 34
3012
+ return 42
2489
3013
  end
2490
3014
  if match_Empty(context, token)
2491
3015
  build(context, token);
2492
- return 31
3016
+ return 38
2493
3017
  end
2494
3018
  if match_Comment(context, token)
2495
- start_rule(context, :Description);
2496
3019
  build(context, token);
2497
- return 32
3020
+ return 40
2498
3021
  end
2499
3022
  if match_TableRow(context, token)
2500
3023
  start_rule(context, :ExamplesTable);
2501
3024
  build(context, token);
2502
- return 33
3025
+ return 41
2503
3026
  end
2504
3027
  if match_TagLine(context, token)
2505
3028
  if lookahead1(context, token)
@@ -2508,7 +3031,7 @@ module Gherkin
2508
3031
  start_rule(context, :ExamplesDefinition);
2509
3032
  start_rule(context, :Tags);
2510
3033
  build(context, token);
2511
- return 30
3034
+ return 37
2512
3035
  end
2513
3036
  end
2514
3037
  if match_TagLine(context, token)
@@ -2520,7 +3043,7 @@ module Gherkin
2520
3043
  start_rule(context, :ScenarioDefinition);
2521
3044
  start_rule(context, :Tags);
2522
3045
  build(context, token);
2523
- return 25
3046
+ return 31
2524
3047
  end
2525
3048
  end
2526
3049
  if match_TagLine(context, token)
@@ -2533,7 +3056,7 @@ module Gherkin
2533
3056
  start_rule(context, :RuleHeader);
2534
3057
  start_rule(context, :Tags);
2535
3058
  build(context, token);
2536
- return 18
3059
+ return 22
2537
3060
  end
2538
3061
  if match_ExamplesLine(context, token)
2539
3062
  end_rule(context, :Examples);
@@ -2541,7 +3064,7 @@ module Gherkin
2541
3064
  start_rule(context, :ExamplesDefinition);
2542
3065
  start_rule(context, :Examples);
2543
3066
  build(context, token);
2544
- return 31
3067
+ return 38
2545
3068
  end
2546
3069
  if match_ScenarioLine(context, token)
2547
3070
  end_rule(context, :Examples);
@@ -2551,7 +3074,7 @@ module Gherkin
2551
3074
  start_rule(context, :ScenarioDefinition);
2552
3075
  start_rule(context, :Scenario);
2553
3076
  build(context, token);
2554
- return 26
3077
+ return 32
2555
3078
  end
2556
3079
  if match_RuleLine(context, token)
2557
3080
  end_rule(context, :Examples);
@@ -2562,24 +3085,24 @@ module Gherkin
2562
3085
  start_rule(context, :Rule);
2563
3086
  start_rule(context, :RuleHeader);
2564
3087
  build(context, token);
2565
- return 19
3088
+ return 23
2566
3089
  end
2567
3090
  if match_Other(context, token)
2568
3091
  start_rule(context, :Description);
2569
3092
  build(context, token);
2570
- return 32
3093
+ return 39
2571
3094
  end
2572
3095
 
2573
- state_comment = "State: 31 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"
3096
+ state_comment = "State: 38 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"
2574
3097
  token.detach
2575
3098
  expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
2576
3099
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2577
3100
  raise error if (stop_at_first_error)
2578
3101
  add_error(context, error)
2579
- return 31
3102
+ return 38
2580
3103
  end
2581
- # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0
2582
- def match_token_at_state32(token, context)
3104
+ # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0
3105
+ def match_token_at_state39(token, context)
2583
3106
  if match_EOF(context, token)
2584
3107
  end_rule(context, :Description);
2585
3108
  end_rule(context, :Examples);
@@ -2589,17 +3112,18 @@ module Gherkin
2589
3112
  end_rule(context, :Rule);
2590
3113
  end_rule(context, :Feature);
2591
3114
  build(context, token);
2592
- return 34
3115
+ return 42
2593
3116
  end
2594
3117
  if match_Comment(context, token)
3118
+ end_rule(context, :Description);
2595
3119
  build(context, token);
2596
- return 32
3120
+ return 40
2597
3121
  end
2598
3122
  if match_TableRow(context, token)
2599
3123
  end_rule(context, :Description);
2600
3124
  start_rule(context, :ExamplesTable);
2601
3125
  build(context, token);
2602
- return 33
3126
+ return 41
2603
3127
  end
2604
3128
  if match_TagLine(context, token)
2605
3129
  if lookahead1(context, token)
@@ -2609,7 +3133,7 @@ module Gherkin
2609
3133
  start_rule(context, :ExamplesDefinition);
2610
3134
  start_rule(context, :Tags);
2611
3135
  build(context, token);
2612
- return 30
3136
+ return 37
2613
3137
  end
2614
3138
  end
2615
3139
  if match_TagLine(context, token)
@@ -2622,7 +3146,7 @@ module Gherkin
2622
3146
  start_rule(context, :ScenarioDefinition);
2623
3147
  start_rule(context, :Tags);
2624
3148
  build(context, token);
2625
- return 25
3149
+ return 31
2626
3150
  end
2627
3151
  end
2628
3152
  if match_TagLine(context, token)
@@ -2636,7 +3160,7 @@ module Gherkin
2636
3160
  start_rule(context, :RuleHeader);
2637
3161
  start_rule(context, :Tags);
2638
3162
  build(context, token);
2639
- return 18
3163
+ return 22
2640
3164
  end
2641
3165
  if match_ExamplesLine(context, token)
2642
3166
  end_rule(context, :Description);
@@ -2645,7 +3169,7 @@ module Gherkin
2645
3169
  start_rule(context, :ExamplesDefinition);
2646
3170
  start_rule(context, :Examples);
2647
3171
  build(context, token);
2648
- return 31
3172
+ return 38
2649
3173
  end
2650
3174
  if match_ScenarioLine(context, token)
2651
3175
  end_rule(context, :Description);
@@ -2656,7 +3180,7 @@ module Gherkin
2656
3180
  start_rule(context, :ScenarioDefinition);
2657
3181
  start_rule(context, :Scenario);
2658
3182
  build(context, token);
2659
- return 26
3183
+ return 32
2660
3184
  end
2661
3185
  if match_RuleLine(context, token)
2662
3186
  end_rule(context, :Description);
@@ -2668,23 +3192,120 @@ module Gherkin
2668
3192
  start_rule(context, :Rule);
2669
3193
  start_rule(context, :RuleHeader);
2670
3194
  build(context, token);
2671
- return 19
3195
+ return 23
2672
3196
  end
2673
3197
  if match_Other(context, token)
2674
3198
  build(context, token);
2675
- return 32
3199
+ return 39
2676
3200
  end
2677
3201
 
2678
- state_comment = "State: 32 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>__alt1:0>#Other:0"
3202
+ state_comment = "State: 39 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"
2679
3203
  token.detach
2680
3204
  expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]
2681
3205
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2682
3206
  raise error if (stop_at_first_error)
2683
3207
  add_error(context, error)
2684
- return 32
3208
+ return 39
3209
+ end
3210
+ # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0
3211
+ def match_token_at_state40(token, context)
3212
+ if match_EOF(context, token)
3213
+ end_rule(context, :Examples);
3214
+ end_rule(context, :ExamplesDefinition);
3215
+ end_rule(context, :Scenario);
3216
+ end_rule(context, :ScenarioDefinition);
3217
+ end_rule(context, :Rule);
3218
+ end_rule(context, :Feature);
3219
+ build(context, token);
3220
+ return 42
3221
+ end
3222
+ if match_Comment(context, token)
3223
+ build(context, token);
3224
+ return 40
3225
+ end
3226
+ if match_TableRow(context, token)
3227
+ start_rule(context, :ExamplesTable);
3228
+ build(context, token);
3229
+ return 41
3230
+ end
3231
+ if match_TagLine(context, token)
3232
+ if lookahead1(context, token)
3233
+ end_rule(context, :Examples);
3234
+ end_rule(context, :ExamplesDefinition);
3235
+ start_rule(context, :ExamplesDefinition);
3236
+ start_rule(context, :Tags);
3237
+ build(context, token);
3238
+ return 37
3239
+ end
3240
+ end
3241
+ if match_TagLine(context, token)
3242
+ if lookahead0(context, token)
3243
+ end_rule(context, :Examples);
3244
+ end_rule(context, :ExamplesDefinition);
3245
+ end_rule(context, :Scenario);
3246
+ end_rule(context, :ScenarioDefinition);
3247
+ start_rule(context, :ScenarioDefinition);
3248
+ start_rule(context, :Tags);
3249
+ build(context, token);
3250
+ return 31
3251
+ end
3252
+ end
3253
+ if match_TagLine(context, token)
3254
+ end_rule(context, :Examples);
3255
+ end_rule(context, :ExamplesDefinition);
3256
+ end_rule(context, :Scenario);
3257
+ end_rule(context, :ScenarioDefinition);
3258
+ end_rule(context, :Rule);
3259
+ start_rule(context, :Rule);
3260
+ start_rule(context, :RuleHeader);
3261
+ start_rule(context, :Tags);
3262
+ build(context, token);
3263
+ return 22
3264
+ end
3265
+ if match_ExamplesLine(context, token)
3266
+ end_rule(context, :Examples);
3267
+ end_rule(context, :ExamplesDefinition);
3268
+ start_rule(context, :ExamplesDefinition);
3269
+ start_rule(context, :Examples);
3270
+ build(context, token);
3271
+ return 38
3272
+ end
3273
+ if match_ScenarioLine(context, token)
3274
+ end_rule(context, :Examples);
3275
+ end_rule(context, :ExamplesDefinition);
3276
+ end_rule(context, :Scenario);
3277
+ end_rule(context, :ScenarioDefinition);
3278
+ start_rule(context, :ScenarioDefinition);
3279
+ start_rule(context, :Scenario);
3280
+ build(context, token);
3281
+ return 32
3282
+ end
3283
+ if match_RuleLine(context, token)
3284
+ end_rule(context, :Examples);
3285
+ end_rule(context, :ExamplesDefinition);
3286
+ end_rule(context, :Scenario);
3287
+ end_rule(context, :ScenarioDefinition);
3288
+ end_rule(context, :Rule);
3289
+ start_rule(context, :Rule);
3290
+ start_rule(context, :RuleHeader);
3291
+ build(context, token);
3292
+ return 23
3293
+ end
3294
+ if match_Empty(context, token)
3295
+ build(context, token);
3296
+ return 40
3297
+ end
3298
+
3299
+ state_comment = "State: 40 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"
3300
+ token.detach
3301
+ expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]
3302
+ error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
3303
+ raise error if (stop_at_first_error)
3304
+ add_error(context, error)
3305
+ return 40
2685
3306
  end
2686
3307
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0
2687
- def match_token_at_state33(token, context)
3308
+ def match_token_at_state41(token, context)
2688
3309
  if match_EOF(context, token)
2689
3310
  end_rule(context, :ExamplesTable);
2690
3311
  end_rule(context, :Examples);
@@ -2694,11 +3315,11 @@ module Gherkin
2694
3315
  end_rule(context, :Rule);
2695
3316
  end_rule(context, :Feature);
2696
3317
  build(context, token);
2697
- return 34
3318
+ return 42
2698
3319
  end
2699
3320
  if match_TableRow(context, token)
2700
3321
  build(context, token);
2701
- return 33
3322
+ return 41
2702
3323
  end
2703
3324
  if match_TagLine(context, token)
2704
3325
  if lookahead1(context, token)
@@ -2708,7 +3329,7 @@ module Gherkin
2708
3329
  start_rule(context, :ExamplesDefinition);
2709
3330
  start_rule(context, :Tags);
2710
3331
  build(context, token);
2711
- return 30
3332
+ return 37
2712
3333
  end
2713
3334
  end
2714
3335
  if match_TagLine(context, token)
@@ -2721,7 +3342,7 @@ module Gherkin
2721
3342
  start_rule(context, :ScenarioDefinition);
2722
3343
  start_rule(context, :Tags);
2723
3344
  build(context, token);
2724
- return 25
3345
+ return 31
2725
3346
  end
2726
3347
  end
2727
3348
  if match_TagLine(context, token)
@@ -2735,7 +3356,7 @@ module Gherkin
2735
3356
  start_rule(context, :RuleHeader);
2736
3357
  start_rule(context, :Tags);
2737
3358
  build(context, token);
2738
- return 18
3359
+ return 22
2739
3360
  end
2740
3361
  if match_ExamplesLine(context, token)
2741
3362
  end_rule(context, :ExamplesTable);
@@ -2744,7 +3365,7 @@ module Gherkin
2744
3365
  start_rule(context, :ExamplesDefinition);
2745
3366
  start_rule(context, :Examples);
2746
3367
  build(context, token);
2747
- return 31
3368
+ return 38
2748
3369
  end
2749
3370
  if match_ScenarioLine(context, token)
2750
3371
  end_rule(context, :ExamplesTable);
@@ -2755,7 +3376,7 @@ module Gherkin
2755
3376
  start_rule(context, :ScenarioDefinition);
2756
3377
  start_rule(context, :Scenario);
2757
3378
  build(context, token);
2758
- return 26
3379
+ return 32
2759
3380
  end
2760
3381
  if match_RuleLine(context, token)
2761
3382
  end_rule(context, :ExamplesTable);
@@ -2767,46 +3388,46 @@ module Gherkin
2767
3388
  start_rule(context, :Rule);
2768
3389
  start_rule(context, :RuleHeader);
2769
3390
  build(context, token);
2770
- return 19
3391
+ return 23
2771
3392
  end
2772
3393
  if match_Comment(context, token)
2773
3394
  build(context, token);
2774
- return 33
3395
+ return 41
2775
3396
  end
2776
3397
  if match_Empty(context, token)
2777
3398
  build(context, token);
2778
- return 33
3399
+ return 41
2779
3400
  end
2780
3401
 
2781
- state_comment = "State: 33 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"
3402
+ state_comment = "State: 41 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"
2782
3403
  token.detach
2783
3404
  expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
2784
3405
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2785
3406
  raise error if (stop_at_first_error)
2786
3407
  add_error(context, error)
2787
- return 33
3408
+ return 41
2788
3409
  end
2789
3410
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
2790
- def match_token_at_state35(token, context)
3411
+ def match_token_at_state43(token, context)
2791
3412
  if match_DocStringSeparator(context, token)
2792
3413
  build(context, token);
2793
- return 36
3414
+ return 44
2794
3415
  end
2795
3416
  if match_Other(context, token)
2796
3417
  build(context, token);
2797
- return 35
3418
+ return 43
2798
3419
  end
2799
3420
 
2800
- state_comment = "State: 35 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
3421
+ state_comment = "State: 43 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
2801
3422
  token.detach
2802
3423
  expected_tokens = ["#DocStringSeparator", "#Other"]
2803
3424
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2804
3425
  raise error if (stop_at_first_error)
2805
3426
  add_error(context, error)
2806
- return 35
3427
+ return 43
2807
3428
  end
2808
3429
  # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
2809
- def match_token_at_state36(token, context)
3430
+ def match_token_at_state44(token, context)
2810
3431
  if match_EOF(context, token)
2811
3432
  end_rule(context, :DocString);
2812
3433
  end_rule(context, :Step);
@@ -2815,14 +3436,14 @@ module Gherkin
2815
3436
  end_rule(context, :Rule);
2816
3437
  end_rule(context, :Feature);
2817
3438
  build(context, token);
2818
- return 34
3439
+ return 42
2819
3440
  end
2820
3441
  if match_StepLine(context, token)
2821
3442
  end_rule(context, :DocString);
2822
3443
  end_rule(context, :Step);
2823
3444
  start_rule(context, :Step);
2824
3445
  build(context, token);
2825
- return 28
3446
+ return 35
2826
3447
  end
2827
3448
  if match_TagLine(context, token)
2828
3449
  if lookahead1(context, token)
@@ -2831,7 +3452,7 @@ module Gherkin
2831
3452
  start_rule(context, :ExamplesDefinition);
2832
3453
  start_rule(context, :Tags);
2833
3454
  build(context, token);
2834
- return 30
3455
+ return 37
2835
3456
  end
2836
3457
  end
2837
3458
  if match_TagLine(context, token)
@@ -2843,7 +3464,7 @@ module Gherkin
2843
3464
  start_rule(context, :ScenarioDefinition);
2844
3465
  start_rule(context, :Tags);
2845
3466
  build(context, token);
2846
- return 25
3467
+ return 31
2847
3468
  end
2848
3469
  end
2849
3470
  if match_TagLine(context, token)
@@ -2856,7 +3477,7 @@ module Gherkin
2856
3477
  start_rule(context, :RuleHeader);
2857
3478
  start_rule(context, :Tags);
2858
3479
  build(context, token);
2859
- return 18
3480
+ return 22
2860
3481
  end
2861
3482
  if match_ExamplesLine(context, token)
2862
3483
  end_rule(context, :DocString);
@@ -2864,7 +3485,7 @@ module Gherkin
2864
3485
  start_rule(context, :ExamplesDefinition);
2865
3486
  start_rule(context, :Examples);
2866
3487
  build(context, token);
2867
- return 31
3488
+ return 38
2868
3489
  end
2869
3490
  if match_ScenarioLine(context, token)
2870
3491
  end_rule(context, :DocString);
@@ -2874,7 +3495,7 @@ module Gherkin
2874
3495
  start_rule(context, :ScenarioDefinition);
2875
3496
  start_rule(context, :Scenario);
2876
3497
  build(context, token);
2877
- return 26
3498
+ return 32
2878
3499
  end
2879
3500
  if match_RuleLine(context, token)
2880
3501
  end_rule(context, :DocString);
@@ -2885,46 +3506,46 @@ module Gherkin
2885
3506
  start_rule(context, :Rule);
2886
3507
  start_rule(context, :RuleHeader);
2887
3508
  build(context, token);
2888
- return 19
3509
+ return 23
2889
3510
  end
2890
3511
  if match_Comment(context, token)
2891
3512
  build(context, token);
2892
- return 36
3513
+ return 44
2893
3514
  end
2894
3515
  if match_Empty(context, token)
2895
3516
  build(context, token);
2896
- return 36
3517
+ return 44
2897
3518
  end
2898
3519
 
2899
- state_comment = "State: 36 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
3520
+ state_comment = "State: 44 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
2900
3521
  token.detach
2901
3522
  expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
2902
3523
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2903
3524
  raise error if (stop_at_first_error)
2904
3525
  add_error(context, error)
2905
- return 36
3526
+ return 44
2906
3527
  end
2907
3528
  # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
2908
- def match_token_at_state37(token, context)
3529
+ def match_token_at_state45(token, context)
2909
3530
  if match_DocStringSeparator(context, token)
2910
3531
  build(context, token);
2911
- return 38
3532
+ return 46
2912
3533
  end
2913
3534
  if match_Other(context, token)
2914
3535
  build(context, token);
2915
- return 37
3536
+ return 45
2916
3537
  end
2917
3538
 
2918
- state_comment = "State: 37 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
3539
+ state_comment = "State: 45 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
2919
3540
  token.detach
2920
3541
  expected_tokens = ["#DocStringSeparator", "#Other"]
2921
3542
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2922
3543
  raise error if (stop_at_first_error)
2923
3544
  add_error(context, error)
2924
- return 37
3545
+ return 45
2925
3546
  end
2926
3547
  # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
2927
- def match_token_at_state38(token, context)
3548
+ def match_token_at_state46(token, context)
2928
3549
  if match_EOF(context, token)
2929
3550
  end_rule(context, :DocString);
2930
3551
  end_rule(context, :Step);
@@ -2932,14 +3553,14 @@ module Gherkin
2932
3553
  end_rule(context, :Rule);
2933
3554
  end_rule(context, :Feature);
2934
3555
  build(context, token);
2935
- return 34
3556
+ return 42
2936
3557
  end
2937
3558
  if match_StepLine(context, token)
2938
3559
  end_rule(context, :DocString);
2939
3560
  end_rule(context, :Step);
2940
3561
  start_rule(context, :Step);
2941
3562
  build(context, token);
2942
- return 23
3563
+ return 29
2943
3564
  end
2944
3565
  if match_TagLine(context, token)
2945
3566
  if lookahead0(context, token)
@@ -2949,7 +3570,7 @@ module Gherkin
2949
3570
  start_rule(context, :ScenarioDefinition);
2950
3571
  start_rule(context, :Tags);
2951
3572
  build(context, token);
2952
- return 25
3573
+ return 31
2953
3574
  end
2954
3575
  end
2955
3576
  if match_TagLine(context, token)
@@ -2961,7 +3582,7 @@ module Gherkin
2961
3582
  start_rule(context, :RuleHeader);
2962
3583
  start_rule(context, :Tags);
2963
3584
  build(context, token);
2964
- return 18
3585
+ return 22
2965
3586
  end
2966
3587
  if match_ScenarioLine(context, token)
2967
3588
  end_rule(context, :DocString);
@@ -2970,7 +3591,7 @@ module Gherkin
2970
3591
  start_rule(context, :ScenarioDefinition);
2971
3592
  start_rule(context, :Scenario);
2972
3593
  build(context, token);
2973
- return 26
3594
+ return 32
2974
3595
  end
2975
3596
  if match_RuleLine(context, token)
2976
3597
  end_rule(context, :DocString);
@@ -2980,46 +3601,46 @@ module Gherkin
2980
3601
  start_rule(context, :Rule);
2981
3602
  start_rule(context, :RuleHeader);
2982
3603
  build(context, token);
2983
- return 19
3604
+ return 23
2984
3605
  end
2985
3606
  if match_Comment(context, token)
2986
3607
  build(context, token);
2987
- return 38
3608
+ return 46
2988
3609
  end
2989
3610
  if match_Empty(context, token)
2990
3611
  build(context, token);
2991
- return 38
3612
+ return 46
2992
3613
  end
2993
3614
 
2994
- state_comment = "State: 38 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
3615
+ state_comment = "State: 46 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
2995
3616
  token.detach
2996
3617
  expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
2997
3618
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
2998
3619
  raise error if (stop_at_first_error)
2999
3620
  add_error(context, error)
3000
- return 38
3621
+ return 46
3001
3622
  end
3002
3623
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
3003
- def match_token_at_state39(token, context)
3624
+ def match_token_at_state47(token, context)
3004
3625
  if match_DocStringSeparator(context, token)
3005
3626
  build(context, token);
3006
- return 40
3627
+ return 48
3007
3628
  end
3008
3629
  if match_Other(context, token)
3009
3630
  build(context, token);
3010
- return 39
3631
+ return 47
3011
3632
  end
3012
3633
 
3013
- state_comment = "State: 39 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
3634
+ state_comment = "State: 47 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
3014
3635
  token.detach
3015
3636
  expected_tokens = ["#DocStringSeparator", "#Other"]
3016
3637
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
3017
3638
  raise error if (stop_at_first_error)
3018
3639
  add_error(context, error)
3019
- return 39
3640
+ return 47
3020
3641
  end
3021
3642
  # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
3022
- def match_token_at_state40(token, context)
3643
+ def match_token_at_state48(token, context)
3023
3644
  if match_EOF(context, token)
3024
3645
  end_rule(context, :DocString);
3025
3646
  end_rule(context, :Step);
@@ -3027,14 +3648,14 @@ module Gherkin
3027
3648
  end_rule(context, :ScenarioDefinition);
3028
3649
  end_rule(context, :Feature);
3029
3650
  build(context, token);
3030
- return 34
3651
+ return 42
3031
3652
  end
3032
3653
  if match_StepLine(context, token)
3033
3654
  end_rule(context, :DocString);
3034
3655
  end_rule(context, :Step);
3035
3656
  start_rule(context, :Step);
3036
3657
  build(context, token);
3037
- return 12
3658
+ return 15
3038
3659
  end
3039
3660
  if match_TagLine(context, token)
3040
3661
  if lookahead1(context, token)
@@ -3043,7 +3664,7 @@ module Gherkin
3043
3664
  start_rule(context, :ExamplesDefinition);
3044
3665
  start_rule(context, :Tags);
3045
3666
  build(context, token);
3046
- return 14
3667
+ return 17
3047
3668
  end
3048
3669
  end
3049
3670
  if match_TagLine(context, token)
@@ -3055,7 +3676,7 @@ module Gherkin
3055
3676
  start_rule(context, :ScenarioDefinition);
3056
3677
  start_rule(context, :Tags);
3057
3678
  build(context, token);
3058
- return 9
3679
+ return 11
3059
3680
  end
3060
3681
  end
3061
3682
  if match_TagLine(context, token)
@@ -3067,7 +3688,7 @@ module Gherkin
3067
3688
  start_rule(context, :RuleHeader);
3068
3689
  start_rule(context, :Tags);
3069
3690
  build(context, token);
3070
- return 18
3691
+ return 22
3071
3692
  end
3072
3693
  if match_ExamplesLine(context, token)
3073
3694
  end_rule(context, :DocString);
@@ -3075,7 +3696,7 @@ module Gherkin
3075
3696
  start_rule(context, :ExamplesDefinition);
3076
3697
  start_rule(context, :Examples);
3077
3698
  build(context, token);
3078
- return 15
3699
+ return 18
3079
3700
  end
3080
3701
  if match_ScenarioLine(context, token)
3081
3702
  end_rule(context, :DocString);
@@ -3085,7 +3706,7 @@ module Gherkin
3085
3706
  start_rule(context, :ScenarioDefinition);
3086
3707
  start_rule(context, :Scenario);
3087
3708
  build(context, token);
3088
- return 10
3709
+ return 12
3089
3710
  end
3090
3711
  if match_RuleLine(context, token)
3091
3712
  end_rule(context, :DocString);
@@ -3095,60 +3716,60 @@ module Gherkin
3095
3716
  start_rule(context, :Rule);
3096
3717
  start_rule(context, :RuleHeader);
3097
3718
  build(context, token);
3098
- return 19
3719
+ return 23
3099
3720
  end
3100
3721
  if match_Comment(context, token)
3101
3722
  build(context, token);
3102
- return 40
3723
+ return 48
3103
3724
  end
3104
3725
  if match_Empty(context, token)
3105
3726
  build(context, token);
3106
- return 40
3727
+ return 48
3107
3728
  end
3108
3729
 
3109
- state_comment = "State: 40 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
3730
+ state_comment = "State: 48 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
3110
3731
  token.detach
3111
3732
  expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
3112
3733
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
3113
3734
  raise error if (stop_at_first_error)
3114
3735
  add_error(context, error)
3115
- return 40
3736
+ return 48
3116
3737
  end
3117
3738
  # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0
3118
- def match_token_at_state41(token, context)
3739
+ def match_token_at_state49(token, context)
3119
3740
  if match_DocStringSeparator(context, token)
3120
3741
  build(context, token);
3121
- return 42
3742
+ return 50
3122
3743
  end
3123
3744
  if match_Other(context, token)
3124
3745
  build(context, token);
3125
- return 41
3746
+ return 49
3126
3747
  end
3127
3748
 
3128
- state_comment = "State: 41 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
3749
+ state_comment = "State: 49 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"
3129
3750
  token.detach
3130
3751
  expected_tokens = ["#DocStringSeparator", "#Other"]
3131
3752
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
3132
3753
  raise error if (stop_at_first_error)
3133
3754
  add_error(context, error)
3134
- return 41
3755
+ return 49
3135
3756
  end
3136
3757
  # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0
3137
- def match_token_at_state42(token, context)
3758
+ def match_token_at_state50(token, context)
3138
3759
  if match_EOF(context, token)
3139
3760
  end_rule(context, :DocString);
3140
3761
  end_rule(context, :Step);
3141
3762
  end_rule(context, :Background);
3142
3763
  end_rule(context, :Feature);
3143
3764
  build(context, token);
3144
- return 34
3765
+ return 42
3145
3766
  end
3146
3767
  if match_StepLine(context, token)
3147
3768
  end_rule(context, :DocString);
3148
3769
  end_rule(context, :Step);
3149
3770
  start_rule(context, :Step);
3150
3771
  build(context, token);
3151
- return 7
3772
+ return 9
3152
3773
  end
3153
3774
  if match_TagLine(context, token)
3154
3775
  if lookahead0(context, token)
@@ -3158,7 +3779,7 @@ module Gherkin
3158
3779
  start_rule(context, :ScenarioDefinition);
3159
3780
  start_rule(context, :Tags);
3160
3781
  build(context, token);
3161
- return 9
3782
+ return 11
3162
3783
  end
3163
3784
  end
3164
3785
  if match_TagLine(context, token)
@@ -3169,7 +3790,7 @@ module Gherkin
3169
3790
  start_rule(context, :RuleHeader);
3170
3791
  start_rule(context, :Tags);
3171
3792
  build(context, token);
3172
- return 18
3793
+ return 22
3173
3794
  end
3174
3795
  if match_ScenarioLine(context, token)
3175
3796
  end_rule(context, :DocString);
@@ -3178,7 +3799,7 @@ module Gherkin
3178
3799
  start_rule(context, :ScenarioDefinition);
3179
3800
  start_rule(context, :Scenario);
3180
3801
  build(context, token);
3181
- return 10
3802
+ return 12
3182
3803
  end
3183
3804
  if match_RuleLine(context, token)
3184
3805
  end_rule(context, :DocString);
@@ -3187,24 +3808,24 @@ module Gherkin
3187
3808
  start_rule(context, :Rule);
3188
3809
  start_rule(context, :RuleHeader);
3189
3810
  build(context, token);
3190
- return 19
3811
+ return 23
3191
3812
  end
3192
3813
  if match_Comment(context, token)
3193
3814
  build(context, token);
3194
- return 42
3815
+ return 50
3195
3816
  end
3196
3817
  if match_Empty(context, token)
3197
3818
  build(context, token);
3198
- return 42
3819
+ return 50
3199
3820
  end
3200
3821
 
3201
- state_comment = "State: 42 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
3822
+ state_comment = "State: 50 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"
3202
3823
  token.detach
3203
3824
  expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]
3204
3825
  error = token.eof? ? UnexpectedEOFException.new(token, expected_tokens, state_comment) : UnexpectedTokenException.new(token, expected_tokens, state_comment)
3205
3826
  raise error if (stop_at_first_error)
3206
3827
  add_error(context, error)
3207
- return 42
3828
+ return 50
3208
3829
  end
3209
3830
 
3210
3831
  def lookahead0(context, current_token)
@@ -3255,8 +3876,8 @@ module Gherkin
3255
3876
 
3256
3877
  private
3257
3878
 
3258
- def handle_ast_error(context, &)
3259
- handle_external_error(context, true, &)
3879
+ def handle_ast_error(context, &action)
3880
+ handle_external_error(context, true, &action)
3260
3881
  end
3261
3882
 
3262
3883
  def handle_external_error(context, default_value, &action)
@@ -3271,5 +3892,6 @@ module Gherkin
3271
3892
  end
3272
3893
  default_value
3273
3894
  end
3895
+
3274
3896
  end
3275
3897
  end