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/tr.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/tr.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -779,7 +779,7 @@ static const int lexer_error = 0;
|
|
779
779
|
static const int lexer_en_main = 1;
|
780
780
|
|
781
781
|
|
782
|
-
#line 258 "/
|
782
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
783
783
|
|
784
784
|
static VALUE
|
785
785
|
unindent(VALUE con, int start_col)
|
@@ -952,7 +952,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
952
952
|
cs = lexer_start;
|
953
953
|
}
|
954
954
|
|
955
|
-
#line 425 "/
|
955
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
956
956
|
|
957
957
|
#line 958 "ext/gherkin_lexer_tr/gherkin_lexer_tr.c"
|
958
958
|
{
|
@@ -1028,7 +1028,7 @@ _match:
|
|
1028
1028
|
switch ( *_acts++ )
|
1029
1029
|
{
|
1030
1030
|
case 0:
|
1031
|
-
#line 83 "/
|
1031
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1032
1032
|
{
|
1033
1033
|
MARK(content_start, p);
|
1034
1034
|
lexer->current_line = lexer->line_number;
|
@@ -1036,20 +1036,20 @@ _match:
|
|
1036
1036
|
}
|
1037
1037
|
break;
|
1038
1038
|
case 1:
|
1039
|
-
#line 89 "/
|
1039
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1040
1040
|
{
|
1041
1041
|
MARK(content_start, p);
|
1042
1042
|
}
|
1043
1043
|
break;
|
1044
1044
|
case 2:
|
1045
|
-
#line 93 "/
|
1045
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1046
1046
|
{
|
1047
1047
|
lexer->current_line = lexer->line_number;
|
1048
1048
|
lexer->start_col = p - data - lexer->last_newline;
|
1049
1049
|
}
|
1050
1050
|
break;
|
1051
1051
|
case 3:
|
1052
|
-
#line 98 "/
|
1052
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1053
1053
|
{
|
1054
1054
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1055
1055
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1061,49 +1061,49 @@ _match:
|
|
1061
1061
|
}
|
1062
1062
|
break;
|
1063
1063
|
case 4:
|
1064
|
-
#line 108 "/
|
1064
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1065
1065
|
{
|
1066
1066
|
MARK(docstring_content_type_start, p);
|
1067
1067
|
}
|
1068
1068
|
break;
|
1069
1069
|
case 5:
|
1070
|
-
#line 112 "/
|
1070
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1071
1071
|
{
|
1072
1072
|
MARK(docstring_content_type_end, p);
|
1073
1073
|
}
|
1074
1074
|
break;
|
1075
1075
|
case 6:
|
1076
|
-
#line 116 "/
|
1076
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1077
1077
|
{
|
1078
1078
|
STORE_KW_END_CON(feature);
|
1079
1079
|
}
|
1080
1080
|
break;
|
1081
1081
|
case 7:
|
1082
|
-
#line 120 "/
|
1082
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1083
1083
|
{
|
1084
1084
|
STORE_KW_END_CON(background);
|
1085
1085
|
}
|
1086
1086
|
break;
|
1087
1087
|
case 8:
|
1088
|
-
#line 124 "/
|
1088
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1089
1089
|
{
|
1090
1090
|
STORE_KW_END_CON(scenario);
|
1091
1091
|
}
|
1092
1092
|
break;
|
1093
1093
|
case 9:
|
1094
|
-
#line 128 "/
|
1094
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1095
1095
|
{
|
1096
1096
|
STORE_KW_END_CON(scenario_outline);
|
1097
1097
|
}
|
1098
1098
|
break;
|
1099
1099
|
case 10:
|
1100
|
-
#line 132 "/
|
1100
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1101
1101
|
{
|
1102
1102
|
STORE_KW_END_CON(examples);
|
1103
1103
|
}
|
1104
1104
|
break;
|
1105
1105
|
case 11:
|
1106
|
-
#line 136 "/
|
1106
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1107
1107
|
{
|
1108
1108
|
store_kw_con(listener, "step",
|
1109
1109
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1112,34 +1112,34 @@ _match:
|
|
1112
1112
|
}
|
1113
1113
|
break;
|
1114
1114
|
case 12:
|
1115
|
-
#line 143 "/
|
1115
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1116
1116
|
{
|
1117
1117
|
STORE_ATTR(comment);
|
1118
1118
|
lexer->mark = 0;
|
1119
1119
|
}
|
1120
1120
|
break;
|
1121
1121
|
case 13:
|
1122
|
-
#line 148 "/
|
1122
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1123
1123
|
{
|
1124
1124
|
STORE_ATTR(tag);
|
1125
1125
|
lexer->mark = 0;
|
1126
1126
|
}
|
1127
1127
|
break;
|
1128
1128
|
case 14:
|
1129
|
-
#line 153 "/
|
1129
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1130
1130
|
{
|
1131
1131
|
lexer->line_number += 1;
|
1132
1132
|
MARK(final_newline, p);
|
1133
1133
|
}
|
1134
1134
|
break;
|
1135
1135
|
case 15:
|
1136
|
-
#line 158 "/
|
1136
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1137
1137
|
{
|
1138
1138
|
MARK(last_newline, p + 1);
|
1139
1139
|
}
|
1140
1140
|
break;
|
1141
1141
|
case 16:
|
1142
|
-
#line 162 "/
|
1142
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1143
1143
|
{
|
1144
1144
|
if (lexer->mark == 0) {
|
1145
1145
|
MARK(mark, p);
|
@@ -1147,7 +1147,7 @@ _match:
|
|
1147
1147
|
}
|
1148
1148
|
break;
|
1149
1149
|
case 17:
|
1150
|
-
#line 168 "/
|
1150
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1151
1151
|
{
|
1152
1152
|
MARK(keyword_end, p);
|
1153
1153
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1156,13 +1156,13 @@ _match:
|
|
1156
1156
|
}
|
1157
1157
|
break;
|
1158
1158
|
case 18:
|
1159
|
-
#line 175 "/
|
1159
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1160
1160
|
{
|
1161
1161
|
MARK(content_end, p);
|
1162
1162
|
}
|
1163
1163
|
break;
|
1164
1164
|
case 19:
|
1165
|
-
#line 179 "/
|
1165
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1166
1166
|
{
|
1167
1167
|
p = p - 1;
|
1168
1168
|
lexer->current_line = lexer->line_number;
|
@@ -1170,13 +1170,13 @@ _match:
|
|
1170
1170
|
}
|
1171
1171
|
break;
|
1172
1172
|
case 20:
|
1173
|
-
#line 185 "/
|
1173
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1174
1174
|
{
|
1175
1175
|
MARK(content_start, p);
|
1176
1176
|
}
|
1177
1177
|
break;
|
1178
1178
|
case 21:
|
1179
|
-
#line 189 "/
|
1179
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1180
1180
|
{
|
1181
1181
|
VALUE re_pipe, re_newline, re_backslash;
|
1182
1182
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1192,13 +1192,13 @@ _match:
|
|
1192
1192
|
}
|
1193
1193
|
break;
|
1194
1194
|
case 22:
|
1195
|
-
#line 203 "/
|
1195
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1196
1196
|
{
|
1197
1197
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1198
1198
|
}
|
1199
1199
|
break;
|
1200
1200
|
case 23:
|
1201
|
-
#line 207 "/
|
1201
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1202
1202
|
{
|
1203
1203
|
int line;
|
1204
1204
|
if (cs < lexer_first_final) {
|
@@ -1261,7 +1261,7 @@ _again:
|
|
1261
1261
|
while ( __nacts-- > 0 ) {
|
1262
1262
|
switch ( *__acts++ ) {
|
1263
1263
|
case 23:
|
1264
|
-
#line 207 "/
|
1264
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1265
1265
|
{
|
1266
1266
|
int line;
|
1267
1267
|
if (cs < lexer_first_final) {
|
@@ -1315,7 +1315,7 @@ _again:
|
|
1315
1315
|
_out: {}
|
1316
1316
|
}
|
1317
1317
|
|
1318
|
-
#line 426 "/
|
1318
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tr.c.rl"
|
1319
1319
|
|
1320
1320
|
assert(p <= pe && "data overflow after parsing execute");
|
1321
1321
|
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/tt.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/tt.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -1368,7 +1368,7 @@ static const int lexer_error = 0;
|
|
1368
1368
|
static const int lexer_en_main = 1;
|
1369
1369
|
|
1370
1370
|
|
1371
|
-
#line 258 "/
|
1371
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1372
1372
|
|
1373
1373
|
static VALUE
|
1374
1374
|
unindent(VALUE con, int start_col)
|
@@ -1541,7 +1541,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1541
1541
|
cs = lexer_start;
|
1542
1542
|
}
|
1543
1543
|
|
1544
|
-
#line 425 "/
|
1544
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1545
1545
|
|
1546
1546
|
#line 1547 "ext/gherkin_lexer_tt/gherkin_lexer_tt.c"
|
1547
1547
|
{
|
@@ -1617,7 +1617,7 @@ _match:
|
|
1617
1617
|
switch ( *_acts++ )
|
1618
1618
|
{
|
1619
1619
|
case 0:
|
1620
|
-
#line 83 "/
|
1620
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1621
1621
|
{
|
1622
1622
|
MARK(content_start, p);
|
1623
1623
|
lexer->current_line = lexer->line_number;
|
@@ -1625,20 +1625,20 @@ _match:
|
|
1625
1625
|
}
|
1626
1626
|
break;
|
1627
1627
|
case 1:
|
1628
|
-
#line 89 "/
|
1628
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1629
1629
|
{
|
1630
1630
|
MARK(content_start, p);
|
1631
1631
|
}
|
1632
1632
|
break;
|
1633
1633
|
case 2:
|
1634
|
-
#line 93 "/
|
1634
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1635
1635
|
{
|
1636
1636
|
lexer->current_line = lexer->line_number;
|
1637
1637
|
lexer->start_col = p - data - lexer->last_newline;
|
1638
1638
|
}
|
1639
1639
|
break;
|
1640
1640
|
case 3:
|
1641
|
-
#line 98 "/
|
1641
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1642
1642
|
{
|
1643
1643
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1644
1644
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1650,49 +1650,49 @@ _match:
|
|
1650
1650
|
}
|
1651
1651
|
break;
|
1652
1652
|
case 4:
|
1653
|
-
#line 108 "/
|
1653
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1654
1654
|
{
|
1655
1655
|
MARK(docstring_content_type_start, p);
|
1656
1656
|
}
|
1657
1657
|
break;
|
1658
1658
|
case 5:
|
1659
|
-
#line 112 "/
|
1659
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1660
1660
|
{
|
1661
1661
|
MARK(docstring_content_type_end, p);
|
1662
1662
|
}
|
1663
1663
|
break;
|
1664
1664
|
case 6:
|
1665
|
-
#line 116 "/
|
1665
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1666
1666
|
{
|
1667
1667
|
STORE_KW_END_CON(feature);
|
1668
1668
|
}
|
1669
1669
|
break;
|
1670
1670
|
case 7:
|
1671
|
-
#line 120 "/
|
1671
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1672
1672
|
{
|
1673
1673
|
STORE_KW_END_CON(background);
|
1674
1674
|
}
|
1675
1675
|
break;
|
1676
1676
|
case 8:
|
1677
|
-
#line 124 "/
|
1677
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1678
1678
|
{
|
1679
1679
|
STORE_KW_END_CON(scenario);
|
1680
1680
|
}
|
1681
1681
|
break;
|
1682
1682
|
case 9:
|
1683
|
-
#line 128 "/
|
1683
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1684
1684
|
{
|
1685
1685
|
STORE_KW_END_CON(scenario_outline);
|
1686
1686
|
}
|
1687
1687
|
break;
|
1688
1688
|
case 10:
|
1689
|
-
#line 132 "/
|
1689
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1690
1690
|
{
|
1691
1691
|
STORE_KW_END_CON(examples);
|
1692
1692
|
}
|
1693
1693
|
break;
|
1694
1694
|
case 11:
|
1695
|
-
#line 136 "/
|
1695
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1696
1696
|
{
|
1697
1697
|
store_kw_con(listener, "step",
|
1698
1698
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1701,34 +1701,34 @@ _match:
|
|
1701
1701
|
}
|
1702
1702
|
break;
|
1703
1703
|
case 12:
|
1704
|
-
#line 143 "/
|
1704
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1705
1705
|
{
|
1706
1706
|
STORE_ATTR(comment);
|
1707
1707
|
lexer->mark = 0;
|
1708
1708
|
}
|
1709
1709
|
break;
|
1710
1710
|
case 13:
|
1711
|
-
#line 148 "/
|
1711
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1712
1712
|
{
|
1713
1713
|
STORE_ATTR(tag);
|
1714
1714
|
lexer->mark = 0;
|
1715
1715
|
}
|
1716
1716
|
break;
|
1717
1717
|
case 14:
|
1718
|
-
#line 153 "/
|
1718
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1719
1719
|
{
|
1720
1720
|
lexer->line_number += 1;
|
1721
1721
|
MARK(final_newline, p);
|
1722
1722
|
}
|
1723
1723
|
break;
|
1724
1724
|
case 15:
|
1725
|
-
#line 158 "/
|
1725
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1726
1726
|
{
|
1727
1727
|
MARK(last_newline, p + 1);
|
1728
1728
|
}
|
1729
1729
|
break;
|
1730
1730
|
case 16:
|
1731
|
-
#line 162 "/
|
1731
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1732
1732
|
{
|
1733
1733
|
if (lexer->mark == 0) {
|
1734
1734
|
MARK(mark, p);
|
@@ -1736,7 +1736,7 @@ _match:
|
|
1736
1736
|
}
|
1737
1737
|
break;
|
1738
1738
|
case 17:
|
1739
|
-
#line 168 "/
|
1739
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1740
1740
|
{
|
1741
1741
|
MARK(keyword_end, p);
|
1742
1742
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1745,13 +1745,13 @@ _match:
|
|
1745
1745
|
}
|
1746
1746
|
break;
|
1747
1747
|
case 18:
|
1748
|
-
#line 175 "/
|
1748
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1749
1749
|
{
|
1750
1750
|
MARK(content_end, p);
|
1751
1751
|
}
|
1752
1752
|
break;
|
1753
1753
|
case 19:
|
1754
|
-
#line 179 "/
|
1754
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1755
1755
|
{
|
1756
1756
|
p = p - 1;
|
1757
1757
|
lexer->current_line = lexer->line_number;
|
@@ -1759,13 +1759,13 @@ _match:
|
|
1759
1759
|
}
|
1760
1760
|
break;
|
1761
1761
|
case 20:
|
1762
|
-
#line 185 "/
|
1762
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1763
1763
|
{
|
1764
1764
|
MARK(content_start, p);
|
1765
1765
|
}
|
1766
1766
|
break;
|
1767
1767
|
case 21:
|
1768
|
-
#line 189 "/
|
1768
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1769
1769
|
{
|
1770
1770
|
VALUE re_pipe, re_newline, re_backslash;
|
1771
1771
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1781,13 +1781,13 @@ _match:
|
|
1781
1781
|
}
|
1782
1782
|
break;
|
1783
1783
|
case 22:
|
1784
|
-
#line 203 "/
|
1784
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1785
1785
|
{
|
1786
1786
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1787
1787
|
}
|
1788
1788
|
break;
|
1789
1789
|
case 23:
|
1790
|
-
#line 207 "/
|
1790
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1791
1791
|
{
|
1792
1792
|
int line;
|
1793
1793
|
if (cs < lexer_first_final) {
|
@@ -1850,7 +1850,7 @@ _again:
|
|
1850
1850
|
while ( __nacts-- > 0 ) {
|
1851
1851
|
switch ( *__acts++ ) {
|
1852
1852
|
case 23:
|
1853
|
-
#line 207 "/
|
1853
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1854
1854
|
{
|
1855
1855
|
int line;
|
1856
1856
|
if (cs < lexer_first_final) {
|
@@ -1904,7 +1904,7 @@ _again:
|
|
1904
1904
|
_out: {}
|
1905
1905
|
}
|
1906
1906
|
|
1907
|
-
#line 426 "/
|
1907
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tt.c.rl"
|
1908
1908
|
|
1909
1909
|
assert(p <= pe && "data overflow after parsing execute");
|
1910
1910
|
assert(lexer->content_start <= len && "content starts after data end");
|