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_pirate.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_pirate.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -903,7 +903,7 @@ static const int lexer_error = 0;
|
|
903
903
|
static const int lexer_en_main = 1;
|
904
904
|
|
905
905
|
|
906
|
-
#line 258 "/
|
906
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
907
907
|
|
908
908
|
static VALUE
|
909
909
|
unindent(VALUE con, int start_col)
|
@@ -1076,7 +1076,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1076
1076
|
cs = lexer_start;
|
1077
1077
|
}
|
1078
1078
|
|
1079
|
-
#line 425 "/
|
1079
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1080
1080
|
|
1081
1081
|
#line 1082 "ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c"
|
1082
1082
|
{
|
@@ -1152,7 +1152,7 @@ _match:
|
|
1152
1152
|
switch ( *_acts++ )
|
1153
1153
|
{
|
1154
1154
|
case 0:
|
1155
|
-
#line 83 "/
|
1155
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1156
1156
|
{
|
1157
1157
|
MARK(content_start, p);
|
1158
1158
|
lexer->current_line = lexer->line_number;
|
@@ -1160,20 +1160,20 @@ _match:
|
|
1160
1160
|
}
|
1161
1161
|
break;
|
1162
1162
|
case 1:
|
1163
|
-
#line 89 "/
|
1163
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1164
1164
|
{
|
1165
1165
|
MARK(content_start, p);
|
1166
1166
|
}
|
1167
1167
|
break;
|
1168
1168
|
case 2:
|
1169
|
-
#line 93 "/
|
1169
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1170
1170
|
{
|
1171
1171
|
lexer->current_line = lexer->line_number;
|
1172
1172
|
lexer->start_col = p - data - lexer->last_newline;
|
1173
1173
|
}
|
1174
1174
|
break;
|
1175
1175
|
case 3:
|
1176
|
-
#line 98 "/
|
1176
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1177
1177
|
{
|
1178
1178
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1179
1179
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1185,49 +1185,49 @@ _match:
|
|
1185
1185
|
}
|
1186
1186
|
break;
|
1187
1187
|
case 4:
|
1188
|
-
#line 108 "/
|
1188
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1189
1189
|
{
|
1190
1190
|
MARK(docstring_content_type_start, p);
|
1191
1191
|
}
|
1192
1192
|
break;
|
1193
1193
|
case 5:
|
1194
|
-
#line 112 "/
|
1194
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1195
1195
|
{
|
1196
1196
|
MARK(docstring_content_type_end, p);
|
1197
1197
|
}
|
1198
1198
|
break;
|
1199
1199
|
case 6:
|
1200
|
-
#line 116 "/
|
1200
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1201
1201
|
{
|
1202
1202
|
STORE_KW_END_CON(feature);
|
1203
1203
|
}
|
1204
1204
|
break;
|
1205
1205
|
case 7:
|
1206
|
-
#line 120 "/
|
1206
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1207
1207
|
{
|
1208
1208
|
STORE_KW_END_CON(background);
|
1209
1209
|
}
|
1210
1210
|
break;
|
1211
1211
|
case 8:
|
1212
|
-
#line 124 "/
|
1212
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1213
1213
|
{
|
1214
1214
|
STORE_KW_END_CON(scenario);
|
1215
1215
|
}
|
1216
1216
|
break;
|
1217
1217
|
case 9:
|
1218
|
-
#line 128 "/
|
1218
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1219
1219
|
{
|
1220
1220
|
STORE_KW_END_CON(scenario_outline);
|
1221
1221
|
}
|
1222
1222
|
break;
|
1223
1223
|
case 10:
|
1224
|
-
#line 132 "/
|
1224
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1225
1225
|
{
|
1226
1226
|
STORE_KW_END_CON(examples);
|
1227
1227
|
}
|
1228
1228
|
break;
|
1229
1229
|
case 11:
|
1230
|
-
#line 136 "/
|
1230
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1231
1231
|
{
|
1232
1232
|
store_kw_con(listener, "step",
|
1233
1233
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1236,34 +1236,34 @@ _match:
|
|
1236
1236
|
}
|
1237
1237
|
break;
|
1238
1238
|
case 12:
|
1239
|
-
#line 143 "/
|
1239
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1240
1240
|
{
|
1241
1241
|
STORE_ATTR(comment);
|
1242
1242
|
lexer->mark = 0;
|
1243
1243
|
}
|
1244
1244
|
break;
|
1245
1245
|
case 13:
|
1246
|
-
#line 148 "/
|
1246
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1247
1247
|
{
|
1248
1248
|
STORE_ATTR(tag);
|
1249
1249
|
lexer->mark = 0;
|
1250
1250
|
}
|
1251
1251
|
break;
|
1252
1252
|
case 14:
|
1253
|
-
#line 153 "/
|
1253
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1254
1254
|
{
|
1255
1255
|
lexer->line_number += 1;
|
1256
1256
|
MARK(final_newline, p);
|
1257
1257
|
}
|
1258
1258
|
break;
|
1259
1259
|
case 15:
|
1260
|
-
#line 158 "/
|
1260
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1261
1261
|
{
|
1262
1262
|
MARK(last_newline, p + 1);
|
1263
1263
|
}
|
1264
1264
|
break;
|
1265
1265
|
case 16:
|
1266
|
-
#line 162 "/
|
1266
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1267
1267
|
{
|
1268
1268
|
if (lexer->mark == 0) {
|
1269
1269
|
MARK(mark, p);
|
@@ -1271,7 +1271,7 @@ _match:
|
|
1271
1271
|
}
|
1272
1272
|
break;
|
1273
1273
|
case 17:
|
1274
|
-
#line 168 "/
|
1274
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1275
1275
|
{
|
1276
1276
|
MARK(keyword_end, p);
|
1277
1277
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1280,13 +1280,13 @@ _match:
|
|
1280
1280
|
}
|
1281
1281
|
break;
|
1282
1282
|
case 18:
|
1283
|
-
#line 175 "/
|
1283
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1284
1284
|
{
|
1285
1285
|
MARK(content_end, p);
|
1286
1286
|
}
|
1287
1287
|
break;
|
1288
1288
|
case 19:
|
1289
|
-
#line 179 "/
|
1289
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1290
1290
|
{
|
1291
1291
|
p = p - 1;
|
1292
1292
|
lexer->current_line = lexer->line_number;
|
@@ -1294,13 +1294,13 @@ _match:
|
|
1294
1294
|
}
|
1295
1295
|
break;
|
1296
1296
|
case 20:
|
1297
|
-
#line 185 "/
|
1297
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1298
1298
|
{
|
1299
1299
|
MARK(content_start, p);
|
1300
1300
|
}
|
1301
1301
|
break;
|
1302
1302
|
case 21:
|
1303
|
-
#line 189 "/
|
1303
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1304
1304
|
{
|
1305
1305
|
VALUE re_pipe, re_newline, re_backslash;
|
1306
1306
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1316,13 +1316,13 @@ _match:
|
|
1316
1316
|
}
|
1317
1317
|
break;
|
1318
1318
|
case 22:
|
1319
|
-
#line 203 "/
|
1319
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1320
1320
|
{
|
1321
1321
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1322
1322
|
}
|
1323
1323
|
break;
|
1324
1324
|
case 23:
|
1325
|
-
#line 207 "/
|
1325
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1326
1326
|
{
|
1327
1327
|
int line;
|
1328
1328
|
if (cs < lexer_first_final) {
|
@@ -1385,7 +1385,7 @@ _again:
|
|
1385
1385
|
while ( __nacts-- > 0 ) {
|
1386
1386
|
switch ( *__acts++ ) {
|
1387
1387
|
case 23:
|
1388
|
-
#line 207 "/
|
1388
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1389
1389
|
{
|
1390
1390
|
int line;
|
1391
1391
|
if (cs < lexer_first_final) {
|
@@ -1439,7 +1439,7 @@ _again:
|
|
1439
1439
|
_out: {}
|
1440
1440
|
}
|
1441
1441
|
|
1442
|
-
#line 426 "/
|
1442
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_pirate.c.rl"
|
1443
1443
|
|
1444
1444
|
assert(p <= pe && "data overflow after parsing execute");
|
1445
1445
|
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/en_scouse.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_scouse.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -1066,7 +1066,7 @@ static const int lexer_error = 0;
|
|
1066
1066
|
static const int lexer_en_main = 1;
|
1067
1067
|
|
1068
1068
|
|
1069
|
-
#line 258 "/
|
1069
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1070
1070
|
|
1071
1071
|
static VALUE
|
1072
1072
|
unindent(VALUE con, int start_col)
|
@@ -1239,7 +1239,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1239
1239
|
cs = lexer_start;
|
1240
1240
|
}
|
1241
1241
|
|
1242
|
-
#line 425 "/
|
1242
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1243
1243
|
|
1244
1244
|
#line 1245 "ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c"
|
1245
1245
|
{
|
@@ -1315,7 +1315,7 @@ _match:
|
|
1315
1315
|
switch ( *_acts++ )
|
1316
1316
|
{
|
1317
1317
|
case 0:
|
1318
|
-
#line 83 "/
|
1318
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1319
1319
|
{
|
1320
1320
|
MARK(content_start, p);
|
1321
1321
|
lexer->current_line = lexer->line_number;
|
@@ -1323,20 +1323,20 @@ _match:
|
|
1323
1323
|
}
|
1324
1324
|
break;
|
1325
1325
|
case 1:
|
1326
|
-
#line 89 "/
|
1326
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1327
1327
|
{
|
1328
1328
|
MARK(content_start, p);
|
1329
1329
|
}
|
1330
1330
|
break;
|
1331
1331
|
case 2:
|
1332
|
-
#line 93 "/
|
1332
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1333
1333
|
{
|
1334
1334
|
lexer->current_line = lexer->line_number;
|
1335
1335
|
lexer->start_col = p - data - lexer->last_newline;
|
1336
1336
|
}
|
1337
1337
|
break;
|
1338
1338
|
case 3:
|
1339
|
-
#line 98 "/
|
1339
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1340
1340
|
{
|
1341
1341
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1342
1342
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1348,49 +1348,49 @@ _match:
|
|
1348
1348
|
}
|
1349
1349
|
break;
|
1350
1350
|
case 4:
|
1351
|
-
#line 108 "/
|
1351
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1352
1352
|
{
|
1353
1353
|
MARK(docstring_content_type_start, p);
|
1354
1354
|
}
|
1355
1355
|
break;
|
1356
1356
|
case 5:
|
1357
|
-
#line 112 "/
|
1357
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1358
1358
|
{
|
1359
1359
|
MARK(docstring_content_type_end, p);
|
1360
1360
|
}
|
1361
1361
|
break;
|
1362
1362
|
case 6:
|
1363
|
-
#line 116 "/
|
1363
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1364
1364
|
{
|
1365
1365
|
STORE_KW_END_CON(feature);
|
1366
1366
|
}
|
1367
1367
|
break;
|
1368
1368
|
case 7:
|
1369
|
-
#line 120 "/
|
1369
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1370
1370
|
{
|
1371
1371
|
STORE_KW_END_CON(background);
|
1372
1372
|
}
|
1373
1373
|
break;
|
1374
1374
|
case 8:
|
1375
|
-
#line 124 "/
|
1375
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1376
1376
|
{
|
1377
1377
|
STORE_KW_END_CON(scenario);
|
1378
1378
|
}
|
1379
1379
|
break;
|
1380
1380
|
case 9:
|
1381
|
-
#line 128 "/
|
1381
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1382
1382
|
{
|
1383
1383
|
STORE_KW_END_CON(scenario_outline);
|
1384
1384
|
}
|
1385
1385
|
break;
|
1386
1386
|
case 10:
|
1387
|
-
#line 132 "/
|
1387
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1388
1388
|
{
|
1389
1389
|
STORE_KW_END_CON(examples);
|
1390
1390
|
}
|
1391
1391
|
break;
|
1392
1392
|
case 11:
|
1393
|
-
#line 136 "/
|
1393
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1394
1394
|
{
|
1395
1395
|
store_kw_con(listener, "step",
|
1396
1396
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1399,34 +1399,34 @@ _match:
|
|
1399
1399
|
}
|
1400
1400
|
break;
|
1401
1401
|
case 12:
|
1402
|
-
#line 143 "/
|
1402
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1403
1403
|
{
|
1404
1404
|
STORE_ATTR(comment);
|
1405
1405
|
lexer->mark = 0;
|
1406
1406
|
}
|
1407
1407
|
break;
|
1408
1408
|
case 13:
|
1409
|
-
#line 148 "/
|
1409
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1410
1410
|
{
|
1411
1411
|
STORE_ATTR(tag);
|
1412
1412
|
lexer->mark = 0;
|
1413
1413
|
}
|
1414
1414
|
break;
|
1415
1415
|
case 14:
|
1416
|
-
#line 153 "/
|
1416
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1417
1417
|
{
|
1418
1418
|
lexer->line_number += 1;
|
1419
1419
|
MARK(final_newline, p);
|
1420
1420
|
}
|
1421
1421
|
break;
|
1422
1422
|
case 15:
|
1423
|
-
#line 158 "/
|
1423
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1424
1424
|
{
|
1425
1425
|
MARK(last_newline, p + 1);
|
1426
1426
|
}
|
1427
1427
|
break;
|
1428
1428
|
case 16:
|
1429
|
-
#line 162 "/
|
1429
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1430
1430
|
{
|
1431
1431
|
if (lexer->mark == 0) {
|
1432
1432
|
MARK(mark, p);
|
@@ -1434,7 +1434,7 @@ _match:
|
|
1434
1434
|
}
|
1435
1435
|
break;
|
1436
1436
|
case 17:
|
1437
|
-
#line 168 "/
|
1437
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1438
1438
|
{
|
1439
1439
|
MARK(keyword_end, p);
|
1440
1440
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1443,13 +1443,13 @@ _match:
|
|
1443
1443
|
}
|
1444
1444
|
break;
|
1445
1445
|
case 18:
|
1446
|
-
#line 175 "/
|
1446
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1447
1447
|
{
|
1448
1448
|
MARK(content_end, p);
|
1449
1449
|
}
|
1450
1450
|
break;
|
1451
1451
|
case 19:
|
1452
|
-
#line 179 "/
|
1452
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1453
1453
|
{
|
1454
1454
|
p = p - 1;
|
1455
1455
|
lexer->current_line = lexer->line_number;
|
@@ -1457,13 +1457,13 @@ _match:
|
|
1457
1457
|
}
|
1458
1458
|
break;
|
1459
1459
|
case 20:
|
1460
|
-
#line 185 "/
|
1460
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1461
1461
|
{
|
1462
1462
|
MARK(content_start, p);
|
1463
1463
|
}
|
1464
1464
|
break;
|
1465
1465
|
case 21:
|
1466
|
-
#line 189 "/
|
1466
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1467
1467
|
{
|
1468
1468
|
VALUE re_pipe, re_newline, re_backslash;
|
1469
1469
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1479,13 +1479,13 @@ _match:
|
|
1479
1479
|
}
|
1480
1480
|
break;
|
1481
1481
|
case 22:
|
1482
|
-
#line 203 "/
|
1482
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1483
1483
|
{
|
1484
1484
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1485
1485
|
}
|
1486
1486
|
break;
|
1487
1487
|
case 23:
|
1488
|
-
#line 207 "/
|
1488
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1489
1489
|
{
|
1490
1490
|
int line;
|
1491
1491
|
if (cs < lexer_first_final) {
|
@@ -1548,7 +1548,7 @@ _again:
|
|
1548
1548
|
while ( __nacts-- > 0 ) {
|
1549
1549
|
switch ( *__acts++ ) {
|
1550
1550
|
case 23:
|
1551
|
-
#line 207 "/
|
1551
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1552
1552
|
{
|
1553
1553
|
int line;
|
1554
1554
|
if (cs < lexer_first_final) {
|
@@ -1602,7 +1602,7 @@ _again:
|
|
1602
1602
|
_out: {}
|
1603
1603
|
}
|
1604
1604
|
|
1605
|
-
#line 426 "/
|
1605
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_scouse.c.rl"
|
1606
1606
|
|
1607
1607
|
assert(p <= pe && "data overflow after parsing execute");
|
1608
1608
|
assert(lexer->content_start <= len && "content starts after data end");
|