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/fr.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/fr.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -925,7 +925,7 @@ static const int lexer_error = 0;
|
|
925
925
|
static const int lexer_en_main = 1;
|
926
926
|
|
927
927
|
|
928
|
-
#line 258 "/
|
928
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
929
929
|
|
930
930
|
static VALUE
|
931
931
|
unindent(VALUE con, int start_col)
|
@@ -1098,7 +1098,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1098
1098
|
cs = lexer_start;
|
1099
1099
|
}
|
1100
1100
|
|
1101
|
-
#line 425 "/
|
1101
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1102
1102
|
|
1103
1103
|
#line 1104 "ext/gherkin_lexer_fr/gherkin_lexer_fr.c"
|
1104
1104
|
{
|
@@ -1174,7 +1174,7 @@ _match:
|
|
1174
1174
|
switch ( *_acts++ )
|
1175
1175
|
{
|
1176
1176
|
case 0:
|
1177
|
-
#line 83 "/
|
1177
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1178
1178
|
{
|
1179
1179
|
MARK(content_start, p);
|
1180
1180
|
lexer->current_line = lexer->line_number;
|
@@ -1182,20 +1182,20 @@ _match:
|
|
1182
1182
|
}
|
1183
1183
|
break;
|
1184
1184
|
case 1:
|
1185
|
-
#line 89 "/
|
1185
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1186
1186
|
{
|
1187
1187
|
MARK(content_start, p);
|
1188
1188
|
}
|
1189
1189
|
break;
|
1190
1190
|
case 2:
|
1191
|
-
#line 93 "/
|
1191
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1192
1192
|
{
|
1193
1193
|
lexer->current_line = lexer->line_number;
|
1194
1194
|
lexer->start_col = p - data - lexer->last_newline;
|
1195
1195
|
}
|
1196
1196
|
break;
|
1197
1197
|
case 3:
|
1198
|
-
#line 98 "/
|
1198
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1199
1199
|
{
|
1200
1200
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1201
1201
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1207,49 +1207,49 @@ _match:
|
|
1207
1207
|
}
|
1208
1208
|
break;
|
1209
1209
|
case 4:
|
1210
|
-
#line 108 "/
|
1210
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1211
1211
|
{
|
1212
1212
|
MARK(docstring_content_type_start, p);
|
1213
1213
|
}
|
1214
1214
|
break;
|
1215
1215
|
case 5:
|
1216
|
-
#line 112 "/
|
1216
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1217
1217
|
{
|
1218
1218
|
MARK(docstring_content_type_end, p);
|
1219
1219
|
}
|
1220
1220
|
break;
|
1221
1221
|
case 6:
|
1222
|
-
#line 116 "/
|
1222
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1223
1223
|
{
|
1224
1224
|
STORE_KW_END_CON(feature);
|
1225
1225
|
}
|
1226
1226
|
break;
|
1227
1227
|
case 7:
|
1228
|
-
#line 120 "/
|
1228
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1229
1229
|
{
|
1230
1230
|
STORE_KW_END_CON(background);
|
1231
1231
|
}
|
1232
1232
|
break;
|
1233
1233
|
case 8:
|
1234
|
-
#line 124 "/
|
1234
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1235
1235
|
{
|
1236
1236
|
STORE_KW_END_CON(scenario);
|
1237
1237
|
}
|
1238
1238
|
break;
|
1239
1239
|
case 9:
|
1240
|
-
#line 128 "/
|
1240
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1241
1241
|
{
|
1242
1242
|
STORE_KW_END_CON(scenario_outline);
|
1243
1243
|
}
|
1244
1244
|
break;
|
1245
1245
|
case 10:
|
1246
|
-
#line 132 "/
|
1246
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1247
1247
|
{
|
1248
1248
|
STORE_KW_END_CON(examples);
|
1249
1249
|
}
|
1250
1250
|
break;
|
1251
1251
|
case 11:
|
1252
|
-
#line 136 "/
|
1252
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1253
1253
|
{
|
1254
1254
|
store_kw_con(listener, "step",
|
1255
1255
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1258,34 +1258,34 @@ _match:
|
|
1258
1258
|
}
|
1259
1259
|
break;
|
1260
1260
|
case 12:
|
1261
|
-
#line 143 "/
|
1261
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1262
1262
|
{
|
1263
1263
|
STORE_ATTR(comment);
|
1264
1264
|
lexer->mark = 0;
|
1265
1265
|
}
|
1266
1266
|
break;
|
1267
1267
|
case 13:
|
1268
|
-
#line 148 "/
|
1268
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1269
1269
|
{
|
1270
1270
|
STORE_ATTR(tag);
|
1271
1271
|
lexer->mark = 0;
|
1272
1272
|
}
|
1273
1273
|
break;
|
1274
1274
|
case 14:
|
1275
|
-
#line 153 "/
|
1275
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1276
1276
|
{
|
1277
1277
|
lexer->line_number += 1;
|
1278
1278
|
MARK(final_newline, p);
|
1279
1279
|
}
|
1280
1280
|
break;
|
1281
1281
|
case 15:
|
1282
|
-
#line 158 "/
|
1282
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1283
1283
|
{
|
1284
1284
|
MARK(last_newline, p + 1);
|
1285
1285
|
}
|
1286
1286
|
break;
|
1287
1287
|
case 16:
|
1288
|
-
#line 162 "/
|
1288
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1289
1289
|
{
|
1290
1290
|
if (lexer->mark == 0) {
|
1291
1291
|
MARK(mark, p);
|
@@ -1293,7 +1293,7 @@ _match:
|
|
1293
1293
|
}
|
1294
1294
|
break;
|
1295
1295
|
case 17:
|
1296
|
-
#line 168 "/
|
1296
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1297
1297
|
{
|
1298
1298
|
MARK(keyword_end, p);
|
1299
1299
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1302,13 +1302,13 @@ _match:
|
|
1302
1302
|
}
|
1303
1303
|
break;
|
1304
1304
|
case 18:
|
1305
|
-
#line 175 "/
|
1305
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1306
1306
|
{
|
1307
1307
|
MARK(content_end, p);
|
1308
1308
|
}
|
1309
1309
|
break;
|
1310
1310
|
case 19:
|
1311
|
-
#line 179 "/
|
1311
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1312
1312
|
{
|
1313
1313
|
p = p - 1;
|
1314
1314
|
lexer->current_line = lexer->line_number;
|
@@ -1316,13 +1316,13 @@ _match:
|
|
1316
1316
|
}
|
1317
1317
|
break;
|
1318
1318
|
case 20:
|
1319
|
-
#line 185 "/
|
1319
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1320
1320
|
{
|
1321
1321
|
MARK(content_start, p);
|
1322
1322
|
}
|
1323
1323
|
break;
|
1324
1324
|
case 21:
|
1325
|
-
#line 189 "/
|
1325
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1326
1326
|
{
|
1327
1327
|
VALUE re_pipe, re_newline, re_backslash;
|
1328
1328
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1338,13 +1338,13 @@ _match:
|
|
1338
1338
|
}
|
1339
1339
|
break;
|
1340
1340
|
case 22:
|
1341
|
-
#line 203 "/
|
1341
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1342
1342
|
{
|
1343
1343
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1344
1344
|
}
|
1345
1345
|
break;
|
1346
1346
|
case 23:
|
1347
|
-
#line 207 "/
|
1347
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1348
1348
|
{
|
1349
1349
|
int line;
|
1350
1350
|
if (cs < lexer_first_final) {
|
@@ -1407,7 +1407,7 @@ _again:
|
|
1407
1407
|
while ( __nacts-- > 0 ) {
|
1408
1408
|
switch ( *__acts++ ) {
|
1409
1409
|
case 23:
|
1410
|
-
#line 207 "/
|
1410
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1411
1411
|
{
|
1412
1412
|
int line;
|
1413
1413
|
if (cs < lexer_first_final) {
|
@@ -1461,7 +1461,7 @@ _again:
|
|
1461
1461
|
_out: {}
|
1462
1462
|
}
|
1463
1463
|
|
1464
|
-
#line 426 "/
|
1464
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fr.c.rl"
|
1465
1465
|
|
1466
1466
|
assert(p <= pe && "data overflow after parsing execute");
|
1467
1467
|
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/he.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/he.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -806,7 +806,7 @@ static const int lexer_error = 0;
|
|
806
806
|
static const int lexer_en_main = 1;
|
807
807
|
|
808
808
|
|
809
|
-
#line 258 "/
|
809
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
810
810
|
|
811
811
|
static VALUE
|
812
812
|
unindent(VALUE con, int start_col)
|
@@ -979,7 +979,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
979
979
|
cs = lexer_start;
|
980
980
|
}
|
981
981
|
|
982
|
-
#line 425 "/
|
982
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
983
983
|
|
984
984
|
#line 985 "ext/gherkin_lexer_he/gherkin_lexer_he.c"
|
985
985
|
{
|
@@ -1055,7 +1055,7 @@ _match:
|
|
1055
1055
|
switch ( *_acts++ )
|
1056
1056
|
{
|
1057
1057
|
case 0:
|
1058
|
-
#line 83 "/
|
1058
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1059
1059
|
{
|
1060
1060
|
MARK(content_start, p);
|
1061
1061
|
lexer->current_line = lexer->line_number;
|
@@ -1063,20 +1063,20 @@ _match:
|
|
1063
1063
|
}
|
1064
1064
|
break;
|
1065
1065
|
case 1:
|
1066
|
-
#line 89 "/
|
1066
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1067
1067
|
{
|
1068
1068
|
MARK(content_start, p);
|
1069
1069
|
}
|
1070
1070
|
break;
|
1071
1071
|
case 2:
|
1072
|
-
#line 93 "/
|
1072
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1073
1073
|
{
|
1074
1074
|
lexer->current_line = lexer->line_number;
|
1075
1075
|
lexer->start_col = p - data - lexer->last_newline;
|
1076
1076
|
}
|
1077
1077
|
break;
|
1078
1078
|
case 3:
|
1079
|
-
#line 98 "/
|
1079
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1080
1080
|
{
|
1081
1081
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1082
1082
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1088,49 +1088,49 @@ _match:
|
|
1088
1088
|
}
|
1089
1089
|
break;
|
1090
1090
|
case 4:
|
1091
|
-
#line 108 "/
|
1091
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1092
1092
|
{
|
1093
1093
|
MARK(docstring_content_type_start, p);
|
1094
1094
|
}
|
1095
1095
|
break;
|
1096
1096
|
case 5:
|
1097
|
-
#line 112 "/
|
1097
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1098
1098
|
{
|
1099
1099
|
MARK(docstring_content_type_end, p);
|
1100
1100
|
}
|
1101
1101
|
break;
|
1102
1102
|
case 6:
|
1103
|
-
#line 116 "/
|
1103
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1104
1104
|
{
|
1105
1105
|
STORE_KW_END_CON(feature);
|
1106
1106
|
}
|
1107
1107
|
break;
|
1108
1108
|
case 7:
|
1109
|
-
#line 120 "/
|
1109
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1110
1110
|
{
|
1111
1111
|
STORE_KW_END_CON(background);
|
1112
1112
|
}
|
1113
1113
|
break;
|
1114
1114
|
case 8:
|
1115
|
-
#line 124 "/
|
1115
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1116
1116
|
{
|
1117
1117
|
STORE_KW_END_CON(scenario);
|
1118
1118
|
}
|
1119
1119
|
break;
|
1120
1120
|
case 9:
|
1121
|
-
#line 128 "/
|
1121
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1122
1122
|
{
|
1123
1123
|
STORE_KW_END_CON(scenario_outline);
|
1124
1124
|
}
|
1125
1125
|
break;
|
1126
1126
|
case 10:
|
1127
|
-
#line 132 "/
|
1127
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1128
1128
|
{
|
1129
1129
|
STORE_KW_END_CON(examples);
|
1130
1130
|
}
|
1131
1131
|
break;
|
1132
1132
|
case 11:
|
1133
|
-
#line 136 "/
|
1133
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1134
1134
|
{
|
1135
1135
|
store_kw_con(listener, "step",
|
1136
1136
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1139,34 +1139,34 @@ _match:
|
|
1139
1139
|
}
|
1140
1140
|
break;
|
1141
1141
|
case 12:
|
1142
|
-
#line 143 "/
|
1142
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1143
1143
|
{
|
1144
1144
|
STORE_ATTR(comment);
|
1145
1145
|
lexer->mark = 0;
|
1146
1146
|
}
|
1147
1147
|
break;
|
1148
1148
|
case 13:
|
1149
|
-
#line 148 "/
|
1149
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1150
1150
|
{
|
1151
1151
|
STORE_ATTR(tag);
|
1152
1152
|
lexer->mark = 0;
|
1153
1153
|
}
|
1154
1154
|
break;
|
1155
1155
|
case 14:
|
1156
|
-
#line 153 "/
|
1156
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1157
1157
|
{
|
1158
1158
|
lexer->line_number += 1;
|
1159
1159
|
MARK(final_newline, p);
|
1160
1160
|
}
|
1161
1161
|
break;
|
1162
1162
|
case 15:
|
1163
|
-
#line 158 "/
|
1163
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1164
1164
|
{
|
1165
1165
|
MARK(last_newline, p + 1);
|
1166
1166
|
}
|
1167
1167
|
break;
|
1168
1168
|
case 16:
|
1169
|
-
#line 162 "/
|
1169
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1170
1170
|
{
|
1171
1171
|
if (lexer->mark == 0) {
|
1172
1172
|
MARK(mark, p);
|
@@ -1174,7 +1174,7 @@ _match:
|
|
1174
1174
|
}
|
1175
1175
|
break;
|
1176
1176
|
case 17:
|
1177
|
-
#line 168 "/
|
1177
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1178
1178
|
{
|
1179
1179
|
MARK(keyword_end, p);
|
1180
1180
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1183,13 +1183,13 @@ _match:
|
|
1183
1183
|
}
|
1184
1184
|
break;
|
1185
1185
|
case 18:
|
1186
|
-
#line 175 "/
|
1186
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1187
1187
|
{
|
1188
1188
|
MARK(content_end, p);
|
1189
1189
|
}
|
1190
1190
|
break;
|
1191
1191
|
case 19:
|
1192
|
-
#line 179 "/
|
1192
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1193
1193
|
{
|
1194
1194
|
p = p - 1;
|
1195
1195
|
lexer->current_line = lexer->line_number;
|
@@ -1197,13 +1197,13 @@ _match:
|
|
1197
1197
|
}
|
1198
1198
|
break;
|
1199
1199
|
case 20:
|
1200
|
-
#line 185 "/
|
1200
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1201
1201
|
{
|
1202
1202
|
MARK(content_start, p);
|
1203
1203
|
}
|
1204
1204
|
break;
|
1205
1205
|
case 21:
|
1206
|
-
#line 189 "/
|
1206
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1207
1207
|
{
|
1208
1208
|
VALUE re_pipe, re_newline, re_backslash;
|
1209
1209
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1219,13 +1219,13 @@ _match:
|
|
1219
1219
|
}
|
1220
1220
|
break;
|
1221
1221
|
case 22:
|
1222
|
-
#line 203 "/
|
1222
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1223
1223
|
{
|
1224
1224
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1225
1225
|
}
|
1226
1226
|
break;
|
1227
1227
|
case 23:
|
1228
|
-
#line 207 "/
|
1228
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1229
1229
|
{
|
1230
1230
|
int line;
|
1231
1231
|
if (cs < lexer_first_final) {
|
@@ -1288,7 +1288,7 @@ _again:
|
|
1288
1288
|
while ( __nacts-- > 0 ) {
|
1289
1289
|
switch ( *__acts++ ) {
|
1290
1290
|
case 23:
|
1291
|
-
#line 207 "/
|
1291
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1292
1292
|
{
|
1293
1293
|
int line;
|
1294
1294
|
if (cs < lexer_first_final) {
|
@@ -1342,7 +1342,7 @@ _again:
|
|
1342
1342
|
_out: {}
|
1343
1343
|
}
|
1344
1344
|
|
1345
|
-
#line 426 "/
|
1345
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/he.c.rl"
|
1346
1346
|
|
1347
1347
|
assert(p <= pe && "data overflow after parsing execute");
|
1348
1348
|
assert(lexer->content_start <= len && "content starts after data end");
|