gherkin 2.11.6 → 2.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +0 -1
- data/Gemfile +1 -1
- data/History.md +13 -0
- data/README.md +10 -4
- data/examples/parse_and_output_json.rb +2 -2
- data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +494 -494
- data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +30 -30
- data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +30 -30
- data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +30 -30
- data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +30 -30
- data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +30 -30
- data/ext/gherkin_lexer_da/gherkin_lexer_da.c +30 -30
- data/ext/gherkin_lexer_de/gherkin_lexer_de.c +30 -30
- data/ext/gherkin_lexer_el/extconf.rb +6 -0
- data/ext/gherkin_lexer_el/gherkin_lexer_el.c +1977 -0
- data/ext/gherkin_lexer_en/gherkin_lexer_en.c +30 -30
- data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +30 -30
- data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +30 -30
- data/ext/gherkin_lexer_en_old/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_old/gherkin_lexer_en_old.c +1309 -0
- data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +30 -30
- data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +30 -30
- data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +30 -30
- data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +30 -30
- data/ext/gherkin_lexer_es/gherkin_lexer_es.c +30 -30
- data/ext/gherkin_lexer_et/gherkin_lexer_et.c +30 -30
- data/ext/gherkin_lexer_fa/gherkin_lexer_fa.c +30 -30
- data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +30 -30
- data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +30 -30
- data/ext/gherkin_lexer_he/gherkin_lexer_he.c +30 -30
- data/ext/gherkin_lexer_hi/gherkin_lexer_hi.c +30 -30
- data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +30 -30
- data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +30 -30
- data/ext/gherkin_lexer_id/gherkin_lexer_id.c +30 -30
- data/ext/gherkin_lexer_is/gherkin_lexer_is.c +30 -30
- data/ext/gherkin_lexer_it/gherkin_lexer_it.c +30 -30
- data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +30 -30
- data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +30 -30
- data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +30 -30
- data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +30 -30
- data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +30 -30
- data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +30 -30
- data/ext/gherkin_lexer_no/gherkin_lexer_no.c +30 -30
- data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +30 -30
- data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +30 -30
- data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +30 -30
- data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +30 -30
- data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +30 -30
- data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +30 -30
- data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +617 -614
- data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +30 -30
- data/ext/gherkin_lexer_tl/gherkin_lexer_tl.c +30 -30
- data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +30 -30
- data/ext/gherkin_lexer_tt/gherkin_lexer_tt.c +30 -30
- data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +30 -30
- data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +622 -614
- data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +30 -30
- data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +30 -30
- data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +30 -30
- data/features/.cucumber/stepdefs.json +66 -66
- data/features/step_definitions/json_formatter_steps.rb +4 -4
- data/features/step_definitions/json_parser_steps.rb +2 -1
- data/features/support/env.rb +2 -3
- data/gherkin.gemspec +8 -6
- data/lib/gherkin/formatter/json_formatter.rb +5 -5
- data/lib/gherkin/formatter/tag_filter.rb +2 -2
- data/lib/gherkin/i18n.json +28 -0
- data/lib/gherkin/i18n.rb +6 -6
- data/lib/gherkin/json_parser.rb +4 -4
- data/lib/gherkin/native/java.rb +2 -2
- data/lib/gherkin/parser/parser.rb +1 -0
- data/lib/gherkin/platform.rb +12 -0
- data/lib/gherkin/tag_expression.rb +7 -1
- data/spec/gherkin/formatter/json_formatter_spec.rb +74 -3
- data/spec/gherkin/i18n_spec.rb +2 -0
- data/spec/gherkin/json_parser_spec.rb +11 -10
- data/spec/gherkin/parser/parser_spec.rb +1 -1
- data/spec/gherkin/tag_expression_spec.rb +19 -15
- data/spec/spec_helper.rb +4 -1
- data/tasks/rspec.rake +1 -2
- metadata +139 -226
- data/lib/gherkin/lexer/tl.rb +0 -1723
- data/lib/gherkin/lexer/tt.rb +0 -1640
- data/spec/gherkin/output_stream_string_io.rb +0 -20
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
#line 1 "/
|
2
|
+
#line 1 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
3
3
|
#include <assert.h>
|
4
4
|
#include <ruby.h>
|
5
5
|
|
@@ -80,7 +80,7 @@ static VALUE rb_eGherkinLexingError;
|
|
80
80
|
lexer->line_number)
|
81
81
|
|
82
82
|
|
83
|
-
#line 254 "/
|
83
|
+
#line 254 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -697,7 +697,7 @@ static const int lexer_error = 0;
|
|
697
697
|
static const int lexer_en_main = 1;
|
698
698
|
|
699
699
|
|
700
|
-
#line 258 "/
|
700
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
701
701
|
|
702
702
|
static VALUE
|
703
703
|
unindent(VALUE con, int start_col)
|
@@ -870,7 +870,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
870
870
|
cs = lexer_start;
|
871
871
|
}
|
872
872
|
|
873
|
-
#line 425 "/
|
873
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
874
874
|
|
875
875
|
#line 876 "ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c"
|
876
876
|
{
|
@@ -946,7 +946,7 @@ _match:
|
|
946
946
|
switch ( *_acts++ )
|
947
947
|
{
|
948
948
|
case 0:
|
949
|
-
#line 83 "/
|
949
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
950
950
|
{
|
951
951
|
MARK(content_start, p);
|
952
952
|
lexer->current_line = lexer->line_number;
|
@@ -954,20 +954,20 @@ _match:
|
|
954
954
|
}
|
955
955
|
break;
|
956
956
|
case 1:
|
957
|
-
#line 89 "/
|
957
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
958
958
|
{
|
959
959
|
MARK(content_start, p);
|
960
960
|
}
|
961
961
|
break;
|
962
962
|
case 2:
|
963
|
-
#line 93 "/
|
963
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
964
964
|
{
|
965
965
|
lexer->current_line = lexer->line_number;
|
966
966
|
lexer->start_col = p - data - lexer->last_newline;
|
967
967
|
}
|
968
968
|
break;
|
969
969
|
case 3:
|
970
|
-
#line 98 "/
|
970
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
971
971
|
{
|
972
972
|
int len = LEN(content_start, PTR_TO(final_newline));
|
973
973
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -979,49 +979,49 @@ _match:
|
|
979
979
|
}
|
980
980
|
break;
|
981
981
|
case 4:
|
982
|
-
#line 108 "/
|
982
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
983
983
|
{
|
984
984
|
MARK(docstring_content_type_start, p);
|
985
985
|
}
|
986
986
|
break;
|
987
987
|
case 5:
|
988
|
-
#line 112 "/
|
988
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
989
989
|
{
|
990
990
|
MARK(docstring_content_type_end, p);
|
991
991
|
}
|
992
992
|
break;
|
993
993
|
case 6:
|
994
|
-
#line 116 "/
|
994
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
995
995
|
{
|
996
996
|
STORE_KW_END_CON(feature);
|
997
997
|
}
|
998
998
|
break;
|
999
999
|
case 7:
|
1000
|
-
#line 120 "/
|
1000
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1001
1001
|
{
|
1002
1002
|
STORE_KW_END_CON(background);
|
1003
1003
|
}
|
1004
1004
|
break;
|
1005
1005
|
case 8:
|
1006
|
-
#line 124 "/
|
1006
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1007
1007
|
{
|
1008
1008
|
STORE_KW_END_CON(scenario);
|
1009
1009
|
}
|
1010
1010
|
break;
|
1011
1011
|
case 9:
|
1012
|
-
#line 128 "/
|
1012
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1013
1013
|
{
|
1014
1014
|
STORE_KW_END_CON(scenario_outline);
|
1015
1015
|
}
|
1016
1016
|
break;
|
1017
1017
|
case 10:
|
1018
|
-
#line 132 "/
|
1018
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1019
1019
|
{
|
1020
1020
|
STORE_KW_END_CON(examples);
|
1021
1021
|
}
|
1022
1022
|
break;
|
1023
1023
|
case 11:
|
1024
|
-
#line 136 "/
|
1024
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1025
1025
|
{
|
1026
1026
|
store_kw_con(listener, "step",
|
1027
1027
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1030,34 +1030,34 @@ _match:
|
|
1030
1030
|
}
|
1031
1031
|
break;
|
1032
1032
|
case 12:
|
1033
|
-
#line 143 "/
|
1033
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1034
1034
|
{
|
1035
1035
|
STORE_ATTR(comment);
|
1036
1036
|
lexer->mark = 0;
|
1037
1037
|
}
|
1038
1038
|
break;
|
1039
1039
|
case 13:
|
1040
|
-
#line 148 "/
|
1040
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1041
1041
|
{
|
1042
1042
|
STORE_ATTR(tag);
|
1043
1043
|
lexer->mark = 0;
|
1044
1044
|
}
|
1045
1045
|
break;
|
1046
1046
|
case 14:
|
1047
|
-
#line 153 "/
|
1047
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1048
1048
|
{
|
1049
1049
|
lexer->line_number += 1;
|
1050
1050
|
MARK(final_newline, p);
|
1051
1051
|
}
|
1052
1052
|
break;
|
1053
1053
|
case 15:
|
1054
|
-
#line 158 "/
|
1054
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1055
1055
|
{
|
1056
1056
|
MARK(last_newline, p + 1);
|
1057
1057
|
}
|
1058
1058
|
break;
|
1059
1059
|
case 16:
|
1060
|
-
#line 162 "/
|
1060
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1061
1061
|
{
|
1062
1062
|
if (lexer->mark == 0) {
|
1063
1063
|
MARK(mark, p);
|
@@ -1065,7 +1065,7 @@ _match:
|
|
1065
1065
|
}
|
1066
1066
|
break;
|
1067
1067
|
case 17:
|
1068
|
-
#line 168 "/
|
1068
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1069
1069
|
{
|
1070
1070
|
MARK(keyword_end, p);
|
1071
1071
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1074,13 +1074,13 @@ _match:
|
|
1074
1074
|
}
|
1075
1075
|
break;
|
1076
1076
|
case 18:
|
1077
|
-
#line 175 "/
|
1077
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1078
1078
|
{
|
1079
1079
|
MARK(content_end, p);
|
1080
1080
|
}
|
1081
1081
|
break;
|
1082
1082
|
case 19:
|
1083
|
-
#line 179 "/
|
1083
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1084
1084
|
{
|
1085
1085
|
p = p - 1;
|
1086
1086
|
lexer->current_line = lexer->line_number;
|
@@ -1088,13 +1088,13 @@ _match:
|
|
1088
1088
|
}
|
1089
1089
|
break;
|
1090
1090
|
case 20:
|
1091
|
-
#line 185 "/
|
1091
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1092
1092
|
{
|
1093
1093
|
MARK(content_start, p);
|
1094
1094
|
}
|
1095
1095
|
break;
|
1096
1096
|
case 21:
|
1097
|
-
#line 189 "/
|
1097
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1098
1098
|
{
|
1099
1099
|
VALUE re_pipe, re_newline, re_backslash;
|
1100
1100
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1110,13 +1110,13 @@ _match:
|
|
1110
1110
|
}
|
1111
1111
|
break;
|
1112
1112
|
case 22:
|
1113
|
-
#line 203 "/
|
1113
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1114
1114
|
{
|
1115
1115
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1116
1116
|
}
|
1117
1117
|
break;
|
1118
1118
|
case 23:
|
1119
|
-
#line 207 "/
|
1119
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1120
1120
|
{
|
1121
1121
|
int line;
|
1122
1122
|
if (cs < lexer_first_final) {
|
@@ -1179,7 +1179,7 @@ _again:
|
|
1179
1179
|
while ( __nacts-- > 0 ) {
|
1180
1180
|
switch ( *__acts++ ) {
|
1181
1181
|
case 23:
|
1182
|
-
#line 207 "/
|
1182
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1183
1183
|
{
|
1184
1184
|
int line;
|
1185
1185
|
if (cs < lexer_first_final) {
|
@@ -1233,7 +1233,7 @@ _again:
|
|
1233
1233
|
_out: {}
|
1234
1234
|
}
|
1235
1235
|
|
1236
|
-
#line 426 "/
|
1236
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_tx.c.rl"
|
1237
1237
|
|
1238
1238
|
assert(p <= pe && "data overflow after parsing execute");
|
1239
1239
|
assert(lexer->content_start <= len && "content starts after data end");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
#line 1 "/
|
2
|
+
#line 1 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
3
3
|
#include <assert.h>
|
4
4
|
#include <ruby.h>
|
5
5
|
|
@@ -80,7 +80,7 @@ static VALUE rb_eGherkinLexingError;
|
|
80
80
|
lexer->line_number)
|
81
81
|
|
82
82
|
|
83
|
-
#line 254 "/
|
83
|
+
#line 254 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -673,7 +673,7 @@ static const int lexer_error = 0;
|
|
673
673
|
static const int lexer_en_main = 1;
|
674
674
|
|
675
675
|
|
676
|
-
#line 258 "/
|
676
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
677
677
|
|
678
678
|
static VALUE
|
679
679
|
unindent(VALUE con, int start_col)
|
@@ -846,7 +846,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
846
846
|
cs = lexer_start;
|
847
847
|
}
|
848
848
|
|
849
|
-
#line 425 "/
|
849
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
850
850
|
|
851
851
|
#line 852 "ext/gherkin_lexer_eo/gherkin_lexer_eo.c"
|
852
852
|
{
|
@@ -922,7 +922,7 @@ _match:
|
|
922
922
|
switch ( *_acts++ )
|
923
923
|
{
|
924
924
|
case 0:
|
925
|
-
#line 83 "/
|
925
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
926
926
|
{
|
927
927
|
MARK(content_start, p);
|
928
928
|
lexer->current_line = lexer->line_number;
|
@@ -930,20 +930,20 @@ _match:
|
|
930
930
|
}
|
931
931
|
break;
|
932
932
|
case 1:
|
933
|
-
#line 89 "/
|
933
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
934
934
|
{
|
935
935
|
MARK(content_start, p);
|
936
936
|
}
|
937
937
|
break;
|
938
938
|
case 2:
|
939
|
-
#line 93 "/
|
939
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
940
940
|
{
|
941
941
|
lexer->current_line = lexer->line_number;
|
942
942
|
lexer->start_col = p - data - lexer->last_newline;
|
943
943
|
}
|
944
944
|
break;
|
945
945
|
case 3:
|
946
|
-
#line 98 "/
|
946
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
947
947
|
{
|
948
948
|
int len = LEN(content_start, PTR_TO(final_newline));
|
949
949
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -955,49 +955,49 @@ _match:
|
|
955
955
|
}
|
956
956
|
break;
|
957
957
|
case 4:
|
958
|
-
#line 108 "/
|
958
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
959
959
|
{
|
960
960
|
MARK(docstring_content_type_start, p);
|
961
961
|
}
|
962
962
|
break;
|
963
963
|
case 5:
|
964
|
-
#line 112 "/
|
964
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
965
965
|
{
|
966
966
|
MARK(docstring_content_type_end, p);
|
967
967
|
}
|
968
968
|
break;
|
969
969
|
case 6:
|
970
|
-
#line 116 "/
|
970
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
971
971
|
{
|
972
972
|
STORE_KW_END_CON(feature);
|
973
973
|
}
|
974
974
|
break;
|
975
975
|
case 7:
|
976
|
-
#line 120 "/
|
976
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
977
977
|
{
|
978
978
|
STORE_KW_END_CON(background);
|
979
979
|
}
|
980
980
|
break;
|
981
981
|
case 8:
|
982
|
-
#line 124 "/
|
982
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
983
983
|
{
|
984
984
|
STORE_KW_END_CON(scenario);
|
985
985
|
}
|
986
986
|
break;
|
987
987
|
case 9:
|
988
|
-
#line 128 "/
|
988
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
989
989
|
{
|
990
990
|
STORE_KW_END_CON(scenario_outline);
|
991
991
|
}
|
992
992
|
break;
|
993
993
|
case 10:
|
994
|
-
#line 132 "/
|
994
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
995
995
|
{
|
996
996
|
STORE_KW_END_CON(examples);
|
997
997
|
}
|
998
998
|
break;
|
999
999
|
case 11:
|
1000
|
-
#line 136 "/
|
1000
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1001
1001
|
{
|
1002
1002
|
store_kw_con(listener, "step",
|
1003
1003
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1006,34 +1006,34 @@ _match:
|
|
1006
1006
|
}
|
1007
1007
|
break;
|
1008
1008
|
case 12:
|
1009
|
-
#line 143 "/
|
1009
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1010
1010
|
{
|
1011
1011
|
STORE_ATTR(comment);
|
1012
1012
|
lexer->mark = 0;
|
1013
1013
|
}
|
1014
1014
|
break;
|
1015
1015
|
case 13:
|
1016
|
-
#line 148 "/
|
1016
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1017
1017
|
{
|
1018
1018
|
STORE_ATTR(tag);
|
1019
1019
|
lexer->mark = 0;
|
1020
1020
|
}
|
1021
1021
|
break;
|
1022
1022
|
case 14:
|
1023
|
-
#line 153 "/
|
1023
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1024
1024
|
{
|
1025
1025
|
lexer->line_number += 1;
|
1026
1026
|
MARK(final_newline, p);
|
1027
1027
|
}
|
1028
1028
|
break;
|
1029
1029
|
case 15:
|
1030
|
-
#line 158 "/
|
1030
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1031
1031
|
{
|
1032
1032
|
MARK(last_newline, p + 1);
|
1033
1033
|
}
|
1034
1034
|
break;
|
1035
1035
|
case 16:
|
1036
|
-
#line 162 "/
|
1036
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1037
1037
|
{
|
1038
1038
|
if (lexer->mark == 0) {
|
1039
1039
|
MARK(mark, p);
|
@@ -1041,7 +1041,7 @@ _match:
|
|
1041
1041
|
}
|
1042
1042
|
break;
|
1043
1043
|
case 17:
|
1044
|
-
#line 168 "/
|
1044
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1045
1045
|
{
|
1046
1046
|
MARK(keyword_end, p);
|
1047
1047
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1050,13 +1050,13 @@ _match:
|
|
1050
1050
|
}
|
1051
1051
|
break;
|
1052
1052
|
case 18:
|
1053
|
-
#line 175 "/
|
1053
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1054
1054
|
{
|
1055
1055
|
MARK(content_end, p);
|
1056
1056
|
}
|
1057
1057
|
break;
|
1058
1058
|
case 19:
|
1059
|
-
#line 179 "/
|
1059
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1060
1060
|
{
|
1061
1061
|
p = p - 1;
|
1062
1062
|
lexer->current_line = lexer->line_number;
|
@@ -1064,13 +1064,13 @@ _match:
|
|
1064
1064
|
}
|
1065
1065
|
break;
|
1066
1066
|
case 20:
|
1067
|
-
#line 185 "/
|
1067
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1068
1068
|
{
|
1069
1069
|
MARK(content_start, p);
|
1070
1070
|
}
|
1071
1071
|
break;
|
1072
1072
|
case 21:
|
1073
|
-
#line 189 "/
|
1073
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1074
1074
|
{
|
1075
1075
|
VALUE re_pipe, re_newline, re_backslash;
|
1076
1076
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1086,13 +1086,13 @@ _match:
|
|
1086
1086
|
}
|
1087
1087
|
break;
|
1088
1088
|
case 22:
|
1089
|
-
#line 203 "/
|
1089
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1090
1090
|
{
|
1091
1091
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1092
1092
|
}
|
1093
1093
|
break;
|
1094
1094
|
case 23:
|
1095
|
-
#line 207 "/
|
1095
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1096
1096
|
{
|
1097
1097
|
int line;
|
1098
1098
|
if (cs < lexer_first_final) {
|
@@ -1155,7 +1155,7 @@ _again:
|
|
1155
1155
|
while ( __nacts-- > 0 ) {
|
1156
1156
|
switch ( *__acts++ ) {
|
1157
1157
|
case 23:
|
1158
|
-
#line 207 "/
|
1158
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1159
1159
|
{
|
1160
1160
|
int line;
|
1161
1161
|
if (cs < lexer_first_final) {
|
@@ -1209,7 +1209,7 @@ _again:
|
|
1209
1209
|
_out: {}
|
1210
1210
|
}
|
1211
1211
|
|
1212
|
-
#line 426 "/
|
1212
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/eo.c.rl"
|
1213
1213
|
|
1214
1214
|
assert(p <= pe && "data overflow after parsing execute");
|
1215
1215
|
assert(lexer->content_start <= len && "content starts after data end");
|