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/fa.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/fa.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -907,7 +907,7 @@ static const int lexer_error = 0;
|
|
907
907
|
static const int lexer_en_main = 1;
|
908
908
|
|
909
909
|
|
910
|
-
#line 258 "/
|
910
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
911
911
|
|
912
912
|
static VALUE
|
913
913
|
unindent(VALUE con, int start_col)
|
@@ -1080,7 +1080,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1080
1080
|
cs = lexer_start;
|
1081
1081
|
}
|
1082
1082
|
|
1083
|
-
#line 425 "/
|
1083
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1084
1084
|
|
1085
1085
|
#line 1086 "ext/gherkin_lexer_fa/gherkin_lexer_fa.c"
|
1086
1086
|
{
|
@@ -1156,7 +1156,7 @@ _match:
|
|
1156
1156
|
switch ( *_acts++ )
|
1157
1157
|
{
|
1158
1158
|
case 0:
|
1159
|
-
#line 83 "/
|
1159
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1160
1160
|
{
|
1161
1161
|
MARK(content_start, p);
|
1162
1162
|
lexer->current_line = lexer->line_number;
|
@@ -1164,20 +1164,20 @@ _match:
|
|
1164
1164
|
}
|
1165
1165
|
break;
|
1166
1166
|
case 1:
|
1167
|
-
#line 89 "/
|
1167
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1168
1168
|
{
|
1169
1169
|
MARK(content_start, p);
|
1170
1170
|
}
|
1171
1171
|
break;
|
1172
1172
|
case 2:
|
1173
|
-
#line 93 "/
|
1173
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1174
1174
|
{
|
1175
1175
|
lexer->current_line = lexer->line_number;
|
1176
1176
|
lexer->start_col = p - data - lexer->last_newline;
|
1177
1177
|
}
|
1178
1178
|
break;
|
1179
1179
|
case 3:
|
1180
|
-
#line 98 "/
|
1180
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1181
1181
|
{
|
1182
1182
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1183
1183
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1189,49 +1189,49 @@ _match:
|
|
1189
1189
|
}
|
1190
1190
|
break;
|
1191
1191
|
case 4:
|
1192
|
-
#line 108 "/
|
1192
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1193
1193
|
{
|
1194
1194
|
MARK(docstring_content_type_start, p);
|
1195
1195
|
}
|
1196
1196
|
break;
|
1197
1197
|
case 5:
|
1198
|
-
#line 112 "/
|
1198
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1199
1199
|
{
|
1200
1200
|
MARK(docstring_content_type_end, p);
|
1201
1201
|
}
|
1202
1202
|
break;
|
1203
1203
|
case 6:
|
1204
|
-
#line 116 "/
|
1204
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1205
1205
|
{
|
1206
1206
|
STORE_KW_END_CON(feature);
|
1207
1207
|
}
|
1208
1208
|
break;
|
1209
1209
|
case 7:
|
1210
|
-
#line 120 "/
|
1210
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1211
1211
|
{
|
1212
1212
|
STORE_KW_END_CON(background);
|
1213
1213
|
}
|
1214
1214
|
break;
|
1215
1215
|
case 8:
|
1216
|
-
#line 124 "/
|
1216
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1217
1217
|
{
|
1218
1218
|
STORE_KW_END_CON(scenario);
|
1219
1219
|
}
|
1220
1220
|
break;
|
1221
1221
|
case 9:
|
1222
|
-
#line 128 "/
|
1222
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1223
1223
|
{
|
1224
1224
|
STORE_KW_END_CON(scenario_outline);
|
1225
1225
|
}
|
1226
1226
|
break;
|
1227
1227
|
case 10:
|
1228
|
-
#line 132 "/
|
1228
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1229
1229
|
{
|
1230
1230
|
STORE_KW_END_CON(examples);
|
1231
1231
|
}
|
1232
1232
|
break;
|
1233
1233
|
case 11:
|
1234
|
-
#line 136 "/
|
1234
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1235
1235
|
{
|
1236
1236
|
store_kw_con(listener, "step",
|
1237
1237
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1240,34 +1240,34 @@ _match:
|
|
1240
1240
|
}
|
1241
1241
|
break;
|
1242
1242
|
case 12:
|
1243
|
-
#line 143 "/
|
1243
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1244
1244
|
{
|
1245
1245
|
STORE_ATTR(comment);
|
1246
1246
|
lexer->mark = 0;
|
1247
1247
|
}
|
1248
1248
|
break;
|
1249
1249
|
case 13:
|
1250
|
-
#line 148 "/
|
1250
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1251
1251
|
{
|
1252
1252
|
STORE_ATTR(tag);
|
1253
1253
|
lexer->mark = 0;
|
1254
1254
|
}
|
1255
1255
|
break;
|
1256
1256
|
case 14:
|
1257
|
-
#line 153 "/
|
1257
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1258
1258
|
{
|
1259
1259
|
lexer->line_number += 1;
|
1260
1260
|
MARK(final_newline, p);
|
1261
1261
|
}
|
1262
1262
|
break;
|
1263
1263
|
case 15:
|
1264
|
-
#line 158 "/
|
1264
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1265
1265
|
{
|
1266
1266
|
MARK(last_newline, p + 1);
|
1267
1267
|
}
|
1268
1268
|
break;
|
1269
1269
|
case 16:
|
1270
|
-
#line 162 "/
|
1270
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1271
1271
|
{
|
1272
1272
|
if (lexer->mark == 0) {
|
1273
1273
|
MARK(mark, p);
|
@@ -1275,7 +1275,7 @@ _match:
|
|
1275
1275
|
}
|
1276
1276
|
break;
|
1277
1277
|
case 17:
|
1278
|
-
#line 168 "/
|
1278
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1279
1279
|
{
|
1280
1280
|
MARK(keyword_end, p);
|
1281
1281
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1284,13 +1284,13 @@ _match:
|
|
1284
1284
|
}
|
1285
1285
|
break;
|
1286
1286
|
case 18:
|
1287
|
-
#line 175 "/
|
1287
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1288
1288
|
{
|
1289
1289
|
MARK(content_end, p);
|
1290
1290
|
}
|
1291
1291
|
break;
|
1292
1292
|
case 19:
|
1293
|
-
#line 179 "/
|
1293
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1294
1294
|
{
|
1295
1295
|
p = p - 1;
|
1296
1296
|
lexer->current_line = lexer->line_number;
|
@@ -1298,13 +1298,13 @@ _match:
|
|
1298
1298
|
}
|
1299
1299
|
break;
|
1300
1300
|
case 20:
|
1301
|
-
#line 185 "/
|
1301
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1302
1302
|
{
|
1303
1303
|
MARK(content_start, p);
|
1304
1304
|
}
|
1305
1305
|
break;
|
1306
1306
|
case 21:
|
1307
|
-
#line 189 "/
|
1307
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1308
1308
|
{
|
1309
1309
|
VALUE re_pipe, re_newline, re_backslash;
|
1310
1310
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1320,13 +1320,13 @@ _match:
|
|
1320
1320
|
}
|
1321
1321
|
break;
|
1322
1322
|
case 22:
|
1323
|
-
#line 203 "/
|
1323
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1324
1324
|
{
|
1325
1325
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1326
1326
|
}
|
1327
1327
|
break;
|
1328
1328
|
case 23:
|
1329
|
-
#line 207 "/
|
1329
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1330
1330
|
{
|
1331
1331
|
int line;
|
1332
1332
|
if (cs < lexer_first_final) {
|
@@ -1389,7 +1389,7 @@ _again:
|
|
1389
1389
|
while ( __nacts-- > 0 ) {
|
1390
1390
|
switch ( *__acts++ ) {
|
1391
1391
|
case 23:
|
1392
|
-
#line 207 "/
|
1392
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1393
1393
|
{
|
1394
1394
|
int line;
|
1395
1395
|
if (cs < lexer_first_final) {
|
@@ -1443,7 +1443,7 @@ _again:
|
|
1443
1443
|
_out: {}
|
1444
1444
|
}
|
1445
1445
|
|
1446
|
-
#line 426 "/
|
1446
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fa.c.rl"
|
1447
1447
|
|
1448
1448
|
assert(p <= pe && "data overflow after parsing execute");
|
1449
1449
|
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/fi.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/fi.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -647,7 +647,7 @@ static const int lexer_error = 0;
|
|
647
647
|
static const int lexer_en_main = 1;
|
648
648
|
|
649
649
|
|
650
|
-
#line 258 "/
|
650
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
651
651
|
|
652
652
|
static VALUE
|
653
653
|
unindent(VALUE con, int start_col)
|
@@ -820,7 +820,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
820
820
|
cs = lexer_start;
|
821
821
|
}
|
822
822
|
|
823
|
-
#line 425 "/
|
823
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
824
824
|
|
825
825
|
#line 826 "ext/gherkin_lexer_fi/gherkin_lexer_fi.c"
|
826
826
|
{
|
@@ -896,7 +896,7 @@ _match:
|
|
896
896
|
switch ( *_acts++ )
|
897
897
|
{
|
898
898
|
case 0:
|
899
|
-
#line 83 "/
|
899
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
900
900
|
{
|
901
901
|
MARK(content_start, p);
|
902
902
|
lexer->current_line = lexer->line_number;
|
@@ -904,20 +904,20 @@ _match:
|
|
904
904
|
}
|
905
905
|
break;
|
906
906
|
case 1:
|
907
|
-
#line 89 "/
|
907
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
908
908
|
{
|
909
909
|
MARK(content_start, p);
|
910
910
|
}
|
911
911
|
break;
|
912
912
|
case 2:
|
913
|
-
#line 93 "/
|
913
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
914
914
|
{
|
915
915
|
lexer->current_line = lexer->line_number;
|
916
916
|
lexer->start_col = p - data - lexer->last_newline;
|
917
917
|
}
|
918
918
|
break;
|
919
919
|
case 3:
|
920
|
-
#line 98 "/
|
920
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
921
921
|
{
|
922
922
|
int len = LEN(content_start, PTR_TO(final_newline));
|
923
923
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -929,49 +929,49 @@ _match:
|
|
929
929
|
}
|
930
930
|
break;
|
931
931
|
case 4:
|
932
|
-
#line 108 "/
|
932
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
933
933
|
{
|
934
934
|
MARK(docstring_content_type_start, p);
|
935
935
|
}
|
936
936
|
break;
|
937
937
|
case 5:
|
938
|
-
#line 112 "/
|
938
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
939
939
|
{
|
940
940
|
MARK(docstring_content_type_end, p);
|
941
941
|
}
|
942
942
|
break;
|
943
943
|
case 6:
|
944
|
-
#line 116 "/
|
944
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
945
945
|
{
|
946
946
|
STORE_KW_END_CON(feature);
|
947
947
|
}
|
948
948
|
break;
|
949
949
|
case 7:
|
950
|
-
#line 120 "/
|
950
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
951
951
|
{
|
952
952
|
STORE_KW_END_CON(background);
|
953
953
|
}
|
954
954
|
break;
|
955
955
|
case 8:
|
956
|
-
#line 124 "/
|
956
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
957
957
|
{
|
958
958
|
STORE_KW_END_CON(scenario);
|
959
959
|
}
|
960
960
|
break;
|
961
961
|
case 9:
|
962
|
-
#line 128 "/
|
962
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
963
963
|
{
|
964
964
|
STORE_KW_END_CON(scenario_outline);
|
965
965
|
}
|
966
966
|
break;
|
967
967
|
case 10:
|
968
|
-
#line 132 "/
|
968
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
969
969
|
{
|
970
970
|
STORE_KW_END_CON(examples);
|
971
971
|
}
|
972
972
|
break;
|
973
973
|
case 11:
|
974
|
-
#line 136 "/
|
974
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
975
975
|
{
|
976
976
|
store_kw_con(listener, "step",
|
977
977
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -980,34 +980,34 @@ _match:
|
|
980
980
|
}
|
981
981
|
break;
|
982
982
|
case 12:
|
983
|
-
#line 143 "/
|
983
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
984
984
|
{
|
985
985
|
STORE_ATTR(comment);
|
986
986
|
lexer->mark = 0;
|
987
987
|
}
|
988
988
|
break;
|
989
989
|
case 13:
|
990
|
-
#line 148 "/
|
990
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
991
991
|
{
|
992
992
|
STORE_ATTR(tag);
|
993
993
|
lexer->mark = 0;
|
994
994
|
}
|
995
995
|
break;
|
996
996
|
case 14:
|
997
|
-
#line 153 "/
|
997
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
998
998
|
{
|
999
999
|
lexer->line_number += 1;
|
1000
1000
|
MARK(final_newline, p);
|
1001
1001
|
}
|
1002
1002
|
break;
|
1003
1003
|
case 15:
|
1004
|
-
#line 158 "/
|
1004
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1005
1005
|
{
|
1006
1006
|
MARK(last_newline, p + 1);
|
1007
1007
|
}
|
1008
1008
|
break;
|
1009
1009
|
case 16:
|
1010
|
-
#line 162 "/
|
1010
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1011
1011
|
{
|
1012
1012
|
if (lexer->mark == 0) {
|
1013
1013
|
MARK(mark, p);
|
@@ -1015,7 +1015,7 @@ _match:
|
|
1015
1015
|
}
|
1016
1016
|
break;
|
1017
1017
|
case 17:
|
1018
|
-
#line 168 "/
|
1018
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1019
1019
|
{
|
1020
1020
|
MARK(keyword_end, p);
|
1021
1021
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1024,13 +1024,13 @@ _match:
|
|
1024
1024
|
}
|
1025
1025
|
break;
|
1026
1026
|
case 18:
|
1027
|
-
#line 175 "/
|
1027
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1028
1028
|
{
|
1029
1029
|
MARK(content_end, p);
|
1030
1030
|
}
|
1031
1031
|
break;
|
1032
1032
|
case 19:
|
1033
|
-
#line 179 "/
|
1033
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1034
1034
|
{
|
1035
1035
|
p = p - 1;
|
1036
1036
|
lexer->current_line = lexer->line_number;
|
@@ -1038,13 +1038,13 @@ _match:
|
|
1038
1038
|
}
|
1039
1039
|
break;
|
1040
1040
|
case 20:
|
1041
|
-
#line 185 "/
|
1041
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1042
1042
|
{
|
1043
1043
|
MARK(content_start, p);
|
1044
1044
|
}
|
1045
1045
|
break;
|
1046
1046
|
case 21:
|
1047
|
-
#line 189 "/
|
1047
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1048
1048
|
{
|
1049
1049
|
VALUE re_pipe, re_newline, re_backslash;
|
1050
1050
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1060,13 +1060,13 @@ _match:
|
|
1060
1060
|
}
|
1061
1061
|
break;
|
1062
1062
|
case 22:
|
1063
|
-
#line 203 "/
|
1063
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1064
1064
|
{
|
1065
1065
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1066
1066
|
}
|
1067
1067
|
break;
|
1068
1068
|
case 23:
|
1069
|
-
#line 207 "/
|
1069
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1070
1070
|
{
|
1071
1071
|
int line;
|
1072
1072
|
if (cs < lexer_first_final) {
|
@@ -1129,7 +1129,7 @@ _again:
|
|
1129
1129
|
while ( __nacts-- > 0 ) {
|
1130
1130
|
switch ( *__acts++ ) {
|
1131
1131
|
case 23:
|
1132
|
-
#line 207 "/
|
1132
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1133
1133
|
{
|
1134
1134
|
int line;
|
1135
1135
|
if (cs < lexer_first_final) {
|
@@ -1183,7 +1183,7 @@ _again:
|
|
1183
1183
|
_out: {}
|
1184
1184
|
}
|
1185
1185
|
|
1186
|
-
#line 426 "/
|
1186
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/fi.c.rl"
|
1187
1187
|
|
1188
1188
|
assert(p <= pe && "data overflow after parsing execute");
|
1189
1189
|
assert(lexer->content_start <= len && "content starts after data end");
|