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/ca.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/ca.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -1013,7 +1013,7 @@ static const int lexer_error = 0;
|
|
1013
1013
|
static const int lexer_en_main = 1;
|
1014
1014
|
|
1015
1015
|
|
1016
|
-
#line 258 "/
|
1016
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1017
1017
|
|
1018
1018
|
static VALUE
|
1019
1019
|
unindent(VALUE con, int start_col)
|
@@ -1186,7 +1186,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1186
1186
|
cs = lexer_start;
|
1187
1187
|
}
|
1188
1188
|
|
1189
|
-
#line 425 "/
|
1189
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1190
1190
|
|
1191
1191
|
#line 1192 "ext/gherkin_lexer_ca/gherkin_lexer_ca.c"
|
1192
1192
|
{
|
@@ -1262,7 +1262,7 @@ _match:
|
|
1262
1262
|
switch ( *_acts++ )
|
1263
1263
|
{
|
1264
1264
|
case 0:
|
1265
|
-
#line 83 "/
|
1265
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1266
1266
|
{
|
1267
1267
|
MARK(content_start, p);
|
1268
1268
|
lexer->current_line = lexer->line_number;
|
@@ -1270,20 +1270,20 @@ _match:
|
|
1270
1270
|
}
|
1271
1271
|
break;
|
1272
1272
|
case 1:
|
1273
|
-
#line 89 "/
|
1273
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1274
1274
|
{
|
1275
1275
|
MARK(content_start, p);
|
1276
1276
|
}
|
1277
1277
|
break;
|
1278
1278
|
case 2:
|
1279
|
-
#line 93 "/
|
1279
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1280
1280
|
{
|
1281
1281
|
lexer->current_line = lexer->line_number;
|
1282
1282
|
lexer->start_col = p - data - lexer->last_newline;
|
1283
1283
|
}
|
1284
1284
|
break;
|
1285
1285
|
case 3:
|
1286
|
-
#line 98 "/
|
1286
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1287
1287
|
{
|
1288
1288
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1289
1289
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1295,49 +1295,49 @@ _match:
|
|
1295
1295
|
}
|
1296
1296
|
break;
|
1297
1297
|
case 4:
|
1298
|
-
#line 108 "/
|
1298
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1299
1299
|
{
|
1300
1300
|
MARK(docstring_content_type_start, p);
|
1301
1301
|
}
|
1302
1302
|
break;
|
1303
1303
|
case 5:
|
1304
|
-
#line 112 "/
|
1304
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1305
1305
|
{
|
1306
1306
|
MARK(docstring_content_type_end, p);
|
1307
1307
|
}
|
1308
1308
|
break;
|
1309
1309
|
case 6:
|
1310
|
-
#line 116 "/
|
1310
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1311
1311
|
{
|
1312
1312
|
STORE_KW_END_CON(feature);
|
1313
1313
|
}
|
1314
1314
|
break;
|
1315
1315
|
case 7:
|
1316
|
-
#line 120 "/
|
1316
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1317
1317
|
{
|
1318
1318
|
STORE_KW_END_CON(background);
|
1319
1319
|
}
|
1320
1320
|
break;
|
1321
1321
|
case 8:
|
1322
|
-
#line 124 "/
|
1322
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1323
1323
|
{
|
1324
1324
|
STORE_KW_END_CON(scenario);
|
1325
1325
|
}
|
1326
1326
|
break;
|
1327
1327
|
case 9:
|
1328
|
-
#line 128 "/
|
1328
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1329
1329
|
{
|
1330
1330
|
STORE_KW_END_CON(scenario_outline);
|
1331
1331
|
}
|
1332
1332
|
break;
|
1333
1333
|
case 10:
|
1334
|
-
#line 132 "/
|
1334
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1335
1335
|
{
|
1336
1336
|
STORE_KW_END_CON(examples);
|
1337
1337
|
}
|
1338
1338
|
break;
|
1339
1339
|
case 11:
|
1340
|
-
#line 136 "/
|
1340
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1341
1341
|
{
|
1342
1342
|
store_kw_con(listener, "step",
|
1343
1343
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1346,34 +1346,34 @@ _match:
|
|
1346
1346
|
}
|
1347
1347
|
break;
|
1348
1348
|
case 12:
|
1349
|
-
#line 143 "/
|
1349
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1350
1350
|
{
|
1351
1351
|
STORE_ATTR(comment);
|
1352
1352
|
lexer->mark = 0;
|
1353
1353
|
}
|
1354
1354
|
break;
|
1355
1355
|
case 13:
|
1356
|
-
#line 148 "/
|
1356
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1357
1357
|
{
|
1358
1358
|
STORE_ATTR(tag);
|
1359
1359
|
lexer->mark = 0;
|
1360
1360
|
}
|
1361
1361
|
break;
|
1362
1362
|
case 14:
|
1363
|
-
#line 153 "/
|
1363
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1364
1364
|
{
|
1365
1365
|
lexer->line_number += 1;
|
1366
1366
|
MARK(final_newline, p);
|
1367
1367
|
}
|
1368
1368
|
break;
|
1369
1369
|
case 15:
|
1370
|
-
#line 158 "/
|
1370
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1371
1371
|
{
|
1372
1372
|
MARK(last_newline, p + 1);
|
1373
1373
|
}
|
1374
1374
|
break;
|
1375
1375
|
case 16:
|
1376
|
-
#line 162 "/
|
1376
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1377
1377
|
{
|
1378
1378
|
if (lexer->mark == 0) {
|
1379
1379
|
MARK(mark, p);
|
@@ -1381,7 +1381,7 @@ _match:
|
|
1381
1381
|
}
|
1382
1382
|
break;
|
1383
1383
|
case 17:
|
1384
|
-
#line 168 "/
|
1384
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1385
1385
|
{
|
1386
1386
|
MARK(keyword_end, p);
|
1387
1387
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1390,13 +1390,13 @@ _match:
|
|
1390
1390
|
}
|
1391
1391
|
break;
|
1392
1392
|
case 18:
|
1393
|
-
#line 175 "/
|
1393
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1394
1394
|
{
|
1395
1395
|
MARK(content_end, p);
|
1396
1396
|
}
|
1397
1397
|
break;
|
1398
1398
|
case 19:
|
1399
|
-
#line 179 "/
|
1399
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1400
1400
|
{
|
1401
1401
|
p = p - 1;
|
1402
1402
|
lexer->current_line = lexer->line_number;
|
@@ -1404,13 +1404,13 @@ _match:
|
|
1404
1404
|
}
|
1405
1405
|
break;
|
1406
1406
|
case 20:
|
1407
|
-
#line 185 "/
|
1407
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1408
1408
|
{
|
1409
1409
|
MARK(content_start, p);
|
1410
1410
|
}
|
1411
1411
|
break;
|
1412
1412
|
case 21:
|
1413
|
-
#line 189 "/
|
1413
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1414
1414
|
{
|
1415
1415
|
VALUE re_pipe, re_newline, re_backslash;
|
1416
1416
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1426,13 +1426,13 @@ _match:
|
|
1426
1426
|
}
|
1427
1427
|
break;
|
1428
1428
|
case 22:
|
1429
|
-
#line 203 "/
|
1429
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1430
1430
|
{
|
1431
1431
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1432
1432
|
}
|
1433
1433
|
break;
|
1434
1434
|
case 23:
|
1435
|
-
#line 207 "/
|
1435
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1436
1436
|
{
|
1437
1437
|
int line;
|
1438
1438
|
if (cs < lexer_first_final) {
|
@@ -1495,7 +1495,7 @@ _again:
|
|
1495
1495
|
while ( __nacts-- > 0 ) {
|
1496
1496
|
switch ( *__acts++ ) {
|
1497
1497
|
case 23:
|
1498
|
-
#line 207 "/
|
1498
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1499
1499
|
{
|
1500
1500
|
int line;
|
1501
1501
|
if (cs < lexer_first_final) {
|
@@ -1549,7 +1549,7 @@ _again:
|
|
1549
1549
|
_out: {}
|
1550
1550
|
}
|
1551
1551
|
|
1552
|
-
#line 426 "/
|
1552
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ca.c.rl"
|
1553
1553
|
|
1554
1554
|
assert(p <= pe && "data overflow after parsing execute");
|
1555
1555
|
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/cs.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/cs.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -947,7 +947,7 @@ static const int lexer_error = 0;
|
|
947
947
|
static const int lexer_en_main = 1;
|
948
948
|
|
949
949
|
|
950
|
-
#line 258 "/
|
950
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
951
951
|
|
952
952
|
static VALUE
|
953
953
|
unindent(VALUE con, int start_col)
|
@@ -1120,7 +1120,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1120
1120
|
cs = lexer_start;
|
1121
1121
|
}
|
1122
1122
|
|
1123
|
-
#line 425 "/
|
1123
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1124
1124
|
|
1125
1125
|
#line 1126 "ext/gherkin_lexer_cs/gherkin_lexer_cs.c"
|
1126
1126
|
{
|
@@ -1196,7 +1196,7 @@ _match:
|
|
1196
1196
|
switch ( *_acts++ )
|
1197
1197
|
{
|
1198
1198
|
case 0:
|
1199
|
-
#line 83 "/
|
1199
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1200
1200
|
{
|
1201
1201
|
MARK(content_start, p);
|
1202
1202
|
lexer->current_line = lexer->line_number;
|
@@ -1204,20 +1204,20 @@ _match:
|
|
1204
1204
|
}
|
1205
1205
|
break;
|
1206
1206
|
case 1:
|
1207
|
-
#line 89 "/
|
1207
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1208
1208
|
{
|
1209
1209
|
MARK(content_start, p);
|
1210
1210
|
}
|
1211
1211
|
break;
|
1212
1212
|
case 2:
|
1213
|
-
#line 93 "/
|
1213
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1214
1214
|
{
|
1215
1215
|
lexer->current_line = lexer->line_number;
|
1216
1216
|
lexer->start_col = p - data - lexer->last_newline;
|
1217
1217
|
}
|
1218
1218
|
break;
|
1219
1219
|
case 3:
|
1220
|
-
#line 98 "/
|
1220
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1221
1221
|
{
|
1222
1222
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1223
1223
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1229,49 +1229,49 @@ _match:
|
|
1229
1229
|
}
|
1230
1230
|
break;
|
1231
1231
|
case 4:
|
1232
|
-
#line 108 "/
|
1232
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1233
1233
|
{
|
1234
1234
|
MARK(docstring_content_type_start, p);
|
1235
1235
|
}
|
1236
1236
|
break;
|
1237
1237
|
case 5:
|
1238
|
-
#line 112 "/
|
1238
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1239
1239
|
{
|
1240
1240
|
MARK(docstring_content_type_end, p);
|
1241
1241
|
}
|
1242
1242
|
break;
|
1243
1243
|
case 6:
|
1244
|
-
#line 116 "/
|
1244
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1245
1245
|
{
|
1246
1246
|
STORE_KW_END_CON(feature);
|
1247
1247
|
}
|
1248
1248
|
break;
|
1249
1249
|
case 7:
|
1250
|
-
#line 120 "/
|
1250
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1251
1251
|
{
|
1252
1252
|
STORE_KW_END_CON(background);
|
1253
1253
|
}
|
1254
1254
|
break;
|
1255
1255
|
case 8:
|
1256
|
-
#line 124 "/
|
1256
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1257
1257
|
{
|
1258
1258
|
STORE_KW_END_CON(scenario);
|
1259
1259
|
}
|
1260
1260
|
break;
|
1261
1261
|
case 9:
|
1262
|
-
#line 128 "/
|
1262
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1263
1263
|
{
|
1264
1264
|
STORE_KW_END_CON(scenario_outline);
|
1265
1265
|
}
|
1266
1266
|
break;
|
1267
1267
|
case 10:
|
1268
|
-
#line 132 "/
|
1268
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1269
1269
|
{
|
1270
1270
|
STORE_KW_END_CON(examples);
|
1271
1271
|
}
|
1272
1272
|
break;
|
1273
1273
|
case 11:
|
1274
|
-
#line 136 "/
|
1274
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1275
1275
|
{
|
1276
1276
|
store_kw_con(listener, "step",
|
1277
1277
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1280,34 +1280,34 @@ _match:
|
|
1280
1280
|
}
|
1281
1281
|
break;
|
1282
1282
|
case 12:
|
1283
|
-
#line 143 "/
|
1283
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1284
1284
|
{
|
1285
1285
|
STORE_ATTR(comment);
|
1286
1286
|
lexer->mark = 0;
|
1287
1287
|
}
|
1288
1288
|
break;
|
1289
1289
|
case 13:
|
1290
|
-
#line 148 "/
|
1290
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1291
1291
|
{
|
1292
1292
|
STORE_ATTR(tag);
|
1293
1293
|
lexer->mark = 0;
|
1294
1294
|
}
|
1295
1295
|
break;
|
1296
1296
|
case 14:
|
1297
|
-
#line 153 "/
|
1297
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1298
1298
|
{
|
1299
1299
|
lexer->line_number += 1;
|
1300
1300
|
MARK(final_newline, p);
|
1301
1301
|
}
|
1302
1302
|
break;
|
1303
1303
|
case 15:
|
1304
|
-
#line 158 "/
|
1304
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1305
1305
|
{
|
1306
1306
|
MARK(last_newline, p + 1);
|
1307
1307
|
}
|
1308
1308
|
break;
|
1309
1309
|
case 16:
|
1310
|
-
#line 162 "/
|
1310
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1311
1311
|
{
|
1312
1312
|
if (lexer->mark == 0) {
|
1313
1313
|
MARK(mark, p);
|
@@ -1315,7 +1315,7 @@ _match:
|
|
1315
1315
|
}
|
1316
1316
|
break;
|
1317
1317
|
case 17:
|
1318
|
-
#line 168 "/
|
1318
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1319
1319
|
{
|
1320
1320
|
MARK(keyword_end, p);
|
1321
1321
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1324,13 +1324,13 @@ _match:
|
|
1324
1324
|
}
|
1325
1325
|
break;
|
1326
1326
|
case 18:
|
1327
|
-
#line 175 "/
|
1327
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1328
1328
|
{
|
1329
1329
|
MARK(content_end, p);
|
1330
1330
|
}
|
1331
1331
|
break;
|
1332
1332
|
case 19:
|
1333
|
-
#line 179 "/
|
1333
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1334
1334
|
{
|
1335
1335
|
p = p - 1;
|
1336
1336
|
lexer->current_line = lexer->line_number;
|
@@ -1338,13 +1338,13 @@ _match:
|
|
1338
1338
|
}
|
1339
1339
|
break;
|
1340
1340
|
case 20:
|
1341
|
-
#line 185 "/
|
1341
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1342
1342
|
{
|
1343
1343
|
MARK(content_start, p);
|
1344
1344
|
}
|
1345
1345
|
break;
|
1346
1346
|
case 21:
|
1347
|
-
#line 189 "/
|
1347
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1348
1348
|
{
|
1349
1349
|
VALUE re_pipe, re_newline, re_backslash;
|
1350
1350
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1360,13 +1360,13 @@ _match:
|
|
1360
1360
|
}
|
1361
1361
|
break;
|
1362
1362
|
case 22:
|
1363
|
-
#line 203 "/
|
1363
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1364
1364
|
{
|
1365
1365
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1366
1366
|
}
|
1367
1367
|
break;
|
1368
1368
|
case 23:
|
1369
|
-
#line 207 "/
|
1369
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1370
1370
|
{
|
1371
1371
|
int line;
|
1372
1372
|
if (cs < lexer_first_final) {
|
@@ -1429,7 +1429,7 @@ _again:
|
|
1429
1429
|
while ( __nacts-- > 0 ) {
|
1430
1430
|
switch ( *__acts++ ) {
|
1431
1431
|
case 23:
|
1432
|
-
#line 207 "/
|
1432
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1433
1433
|
{
|
1434
1434
|
int line;
|
1435
1435
|
if (cs < lexer_first_final) {
|
@@ -1483,7 +1483,7 @@ _again:
|
|
1483
1483
|
_out: {}
|
1484
1484
|
}
|
1485
1485
|
|
1486
|
-
#line 426 "/
|
1486
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cs.c.rl"
|
1487
1487
|
|
1488
1488
|
assert(p <= pe && "data overflow after parsing execute");
|
1489
1489
|
assert(lexer->content_start <= len && "content starts after data end");
|