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.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.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -850,7 +850,7 @@ static const int lexer_error = 0;
|
|
850
850
|
static const int lexer_en_main = 1;
|
851
851
|
|
852
852
|
|
853
|
-
#line 258 "/
|
853
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
854
854
|
|
855
855
|
static VALUE
|
856
856
|
unindent(VALUE con, int start_col)
|
@@ -1023,7 +1023,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1023
1023
|
cs = lexer_start;
|
1024
1024
|
}
|
1025
1025
|
|
1026
|
-
#line 425 "/
|
1026
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1027
1027
|
|
1028
1028
|
#line 1029 "ext/gherkin_lexer_en/gherkin_lexer_en.c"
|
1029
1029
|
{
|
@@ -1099,7 +1099,7 @@ _match:
|
|
1099
1099
|
switch ( *_acts++ )
|
1100
1100
|
{
|
1101
1101
|
case 0:
|
1102
|
-
#line 83 "/
|
1102
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1103
1103
|
{
|
1104
1104
|
MARK(content_start, p);
|
1105
1105
|
lexer->current_line = lexer->line_number;
|
@@ -1107,20 +1107,20 @@ _match:
|
|
1107
1107
|
}
|
1108
1108
|
break;
|
1109
1109
|
case 1:
|
1110
|
-
#line 89 "/
|
1110
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1111
1111
|
{
|
1112
1112
|
MARK(content_start, p);
|
1113
1113
|
}
|
1114
1114
|
break;
|
1115
1115
|
case 2:
|
1116
|
-
#line 93 "/
|
1116
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1117
1117
|
{
|
1118
1118
|
lexer->current_line = lexer->line_number;
|
1119
1119
|
lexer->start_col = p - data - lexer->last_newline;
|
1120
1120
|
}
|
1121
1121
|
break;
|
1122
1122
|
case 3:
|
1123
|
-
#line 98 "/
|
1123
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1124
1124
|
{
|
1125
1125
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1126
1126
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1132,49 +1132,49 @@ _match:
|
|
1132
1132
|
}
|
1133
1133
|
break;
|
1134
1134
|
case 4:
|
1135
|
-
#line 108 "/
|
1135
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1136
1136
|
{
|
1137
1137
|
MARK(docstring_content_type_start, p);
|
1138
1138
|
}
|
1139
1139
|
break;
|
1140
1140
|
case 5:
|
1141
|
-
#line 112 "/
|
1141
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1142
1142
|
{
|
1143
1143
|
MARK(docstring_content_type_end, p);
|
1144
1144
|
}
|
1145
1145
|
break;
|
1146
1146
|
case 6:
|
1147
|
-
#line 116 "/
|
1147
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1148
1148
|
{
|
1149
1149
|
STORE_KW_END_CON(feature);
|
1150
1150
|
}
|
1151
1151
|
break;
|
1152
1152
|
case 7:
|
1153
|
-
#line 120 "/
|
1153
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1154
1154
|
{
|
1155
1155
|
STORE_KW_END_CON(background);
|
1156
1156
|
}
|
1157
1157
|
break;
|
1158
1158
|
case 8:
|
1159
|
-
#line 124 "/
|
1159
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1160
1160
|
{
|
1161
1161
|
STORE_KW_END_CON(scenario);
|
1162
1162
|
}
|
1163
1163
|
break;
|
1164
1164
|
case 9:
|
1165
|
-
#line 128 "/
|
1165
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1166
1166
|
{
|
1167
1167
|
STORE_KW_END_CON(scenario_outline);
|
1168
1168
|
}
|
1169
1169
|
break;
|
1170
1170
|
case 10:
|
1171
|
-
#line 132 "/
|
1171
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1172
1172
|
{
|
1173
1173
|
STORE_KW_END_CON(examples);
|
1174
1174
|
}
|
1175
1175
|
break;
|
1176
1176
|
case 11:
|
1177
|
-
#line 136 "/
|
1177
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1178
1178
|
{
|
1179
1179
|
store_kw_con(listener, "step",
|
1180
1180
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1183,34 +1183,34 @@ _match:
|
|
1183
1183
|
}
|
1184
1184
|
break;
|
1185
1185
|
case 12:
|
1186
|
-
#line 143 "/
|
1186
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1187
1187
|
{
|
1188
1188
|
STORE_ATTR(comment);
|
1189
1189
|
lexer->mark = 0;
|
1190
1190
|
}
|
1191
1191
|
break;
|
1192
1192
|
case 13:
|
1193
|
-
#line 148 "/
|
1193
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1194
1194
|
{
|
1195
1195
|
STORE_ATTR(tag);
|
1196
1196
|
lexer->mark = 0;
|
1197
1197
|
}
|
1198
1198
|
break;
|
1199
1199
|
case 14:
|
1200
|
-
#line 153 "/
|
1200
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1201
1201
|
{
|
1202
1202
|
lexer->line_number += 1;
|
1203
1203
|
MARK(final_newline, p);
|
1204
1204
|
}
|
1205
1205
|
break;
|
1206
1206
|
case 15:
|
1207
|
-
#line 158 "/
|
1207
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1208
1208
|
{
|
1209
1209
|
MARK(last_newline, p + 1);
|
1210
1210
|
}
|
1211
1211
|
break;
|
1212
1212
|
case 16:
|
1213
|
-
#line 162 "/
|
1213
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1214
1214
|
{
|
1215
1215
|
if (lexer->mark == 0) {
|
1216
1216
|
MARK(mark, p);
|
@@ -1218,7 +1218,7 @@ _match:
|
|
1218
1218
|
}
|
1219
1219
|
break;
|
1220
1220
|
case 17:
|
1221
|
-
#line 168 "/
|
1221
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1222
1222
|
{
|
1223
1223
|
MARK(keyword_end, p);
|
1224
1224
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1227,13 +1227,13 @@ _match:
|
|
1227
1227
|
}
|
1228
1228
|
break;
|
1229
1229
|
case 18:
|
1230
|
-
#line 175 "/
|
1230
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1231
1231
|
{
|
1232
1232
|
MARK(content_end, p);
|
1233
1233
|
}
|
1234
1234
|
break;
|
1235
1235
|
case 19:
|
1236
|
-
#line 179 "/
|
1236
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1237
1237
|
{
|
1238
1238
|
p = p - 1;
|
1239
1239
|
lexer->current_line = lexer->line_number;
|
@@ -1241,13 +1241,13 @@ _match:
|
|
1241
1241
|
}
|
1242
1242
|
break;
|
1243
1243
|
case 20:
|
1244
|
-
#line 185 "/
|
1244
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1245
1245
|
{
|
1246
1246
|
MARK(content_start, p);
|
1247
1247
|
}
|
1248
1248
|
break;
|
1249
1249
|
case 21:
|
1250
|
-
#line 189 "/
|
1250
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1251
1251
|
{
|
1252
1252
|
VALUE re_pipe, re_newline, re_backslash;
|
1253
1253
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1263,13 +1263,13 @@ _match:
|
|
1263
1263
|
}
|
1264
1264
|
break;
|
1265
1265
|
case 22:
|
1266
|
-
#line 203 "/
|
1266
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1267
1267
|
{
|
1268
1268
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1269
1269
|
}
|
1270
1270
|
break;
|
1271
1271
|
case 23:
|
1272
|
-
#line 207 "/
|
1272
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1273
1273
|
{
|
1274
1274
|
int line;
|
1275
1275
|
if (cs < lexer_first_final) {
|
@@ -1332,7 +1332,7 @@ _again:
|
|
1332
1332
|
while ( __nacts-- > 0 ) {
|
1333
1333
|
switch ( *__acts++ ) {
|
1334
1334
|
case 23:
|
1335
|
-
#line 207 "/
|
1335
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1336
1336
|
{
|
1337
1337
|
int line;
|
1338
1338
|
if (cs < lexer_first_final) {
|
@@ -1386,7 +1386,7 @@ _again:
|
|
1386
1386
|
_out: {}
|
1387
1387
|
}
|
1388
1388
|
|
1389
|
-
#line 426 "/
|
1389
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en.c.rl"
|
1390
1390
|
|
1391
1391
|
assert(p <= pe && "data overflow after parsing execute");
|
1392
1392
|
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_au.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_au.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -1197,7 +1197,7 @@ static const int lexer_error = 0;
|
|
1197
1197
|
static const int lexer_en_main = 1;
|
1198
1198
|
|
1199
1199
|
|
1200
|
-
#line 258 "/
|
1200
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1201
1201
|
|
1202
1202
|
static VALUE
|
1203
1203
|
unindent(VALUE con, int start_col)
|
@@ -1370,7 +1370,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1370
1370
|
cs = lexer_start;
|
1371
1371
|
}
|
1372
1372
|
|
1373
|
-
#line 425 "/
|
1373
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1374
1374
|
|
1375
1375
|
#line 1376 "ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c"
|
1376
1376
|
{
|
@@ -1446,7 +1446,7 @@ _match:
|
|
1446
1446
|
switch ( *_acts++ )
|
1447
1447
|
{
|
1448
1448
|
case 0:
|
1449
|
-
#line 83 "/
|
1449
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1450
1450
|
{
|
1451
1451
|
MARK(content_start, p);
|
1452
1452
|
lexer->current_line = lexer->line_number;
|
@@ -1454,20 +1454,20 @@ _match:
|
|
1454
1454
|
}
|
1455
1455
|
break;
|
1456
1456
|
case 1:
|
1457
|
-
#line 89 "/
|
1457
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1458
1458
|
{
|
1459
1459
|
MARK(content_start, p);
|
1460
1460
|
}
|
1461
1461
|
break;
|
1462
1462
|
case 2:
|
1463
|
-
#line 93 "/
|
1463
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1464
1464
|
{
|
1465
1465
|
lexer->current_line = lexer->line_number;
|
1466
1466
|
lexer->start_col = p - data - lexer->last_newline;
|
1467
1467
|
}
|
1468
1468
|
break;
|
1469
1469
|
case 3:
|
1470
|
-
#line 98 "/
|
1470
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1471
1471
|
{
|
1472
1472
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1473
1473
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1479,49 +1479,49 @@ _match:
|
|
1479
1479
|
}
|
1480
1480
|
break;
|
1481
1481
|
case 4:
|
1482
|
-
#line 108 "/
|
1482
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1483
1483
|
{
|
1484
1484
|
MARK(docstring_content_type_start, p);
|
1485
1485
|
}
|
1486
1486
|
break;
|
1487
1487
|
case 5:
|
1488
|
-
#line 112 "/
|
1488
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1489
1489
|
{
|
1490
1490
|
MARK(docstring_content_type_end, p);
|
1491
1491
|
}
|
1492
1492
|
break;
|
1493
1493
|
case 6:
|
1494
|
-
#line 116 "/
|
1494
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1495
1495
|
{
|
1496
1496
|
STORE_KW_END_CON(feature);
|
1497
1497
|
}
|
1498
1498
|
break;
|
1499
1499
|
case 7:
|
1500
|
-
#line 120 "/
|
1500
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1501
1501
|
{
|
1502
1502
|
STORE_KW_END_CON(background);
|
1503
1503
|
}
|
1504
1504
|
break;
|
1505
1505
|
case 8:
|
1506
|
-
#line 124 "/
|
1506
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1507
1507
|
{
|
1508
1508
|
STORE_KW_END_CON(scenario);
|
1509
1509
|
}
|
1510
1510
|
break;
|
1511
1511
|
case 9:
|
1512
|
-
#line 128 "/
|
1512
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1513
1513
|
{
|
1514
1514
|
STORE_KW_END_CON(scenario_outline);
|
1515
1515
|
}
|
1516
1516
|
break;
|
1517
1517
|
case 10:
|
1518
|
-
#line 132 "/
|
1518
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1519
1519
|
{
|
1520
1520
|
STORE_KW_END_CON(examples);
|
1521
1521
|
}
|
1522
1522
|
break;
|
1523
1523
|
case 11:
|
1524
|
-
#line 136 "/
|
1524
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1525
1525
|
{
|
1526
1526
|
store_kw_con(listener, "step",
|
1527
1527
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1530,34 +1530,34 @@ _match:
|
|
1530
1530
|
}
|
1531
1531
|
break;
|
1532
1532
|
case 12:
|
1533
|
-
#line 143 "/
|
1533
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1534
1534
|
{
|
1535
1535
|
STORE_ATTR(comment);
|
1536
1536
|
lexer->mark = 0;
|
1537
1537
|
}
|
1538
1538
|
break;
|
1539
1539
|
case 13:
|
1540
|
-
#line 148 "/
|
1540
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1541
1541
|
{
|
1542
1542
|
STORE_ATTR(tag);
|
1543
1543
|
lexer->mark = 0;
|
1544
1544
|
}
|
1545
1545
|
break;
|
1546
1546
|
case 14:
|
1547
|
-
#line 153 "/
|
1547
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1548
1548
|
{
|
1549
1549
|
lexer->line_number += 1;
|
1550
1550
|
MARK(final_newline, p);
|
1551
1551
|
}
|
1552
1552
|
break;
|
1553
1553
|
case 15:
|
1554
|
-
#line 158 "/
|
1554
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1555
1555
|
{
|
1556
1556
|
MARK(last_newline, p + 1);
|
1557
1557
|
}
|
1558
1558
|
break;
|
1559
1559
|
case 16:
|
1560
|
-
#line 162 "/
|
1560
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1561
1561
|
{
|
1562
1562
|
if (lexer->mark == 0) {
|
1563
1563
|
MARK(mark, p);
|
@@ -1565,7 +1565,7 @@ _match:
|
|
1565
1565
|
}
|
1566
1566
|
break;
|
1567
1567
|
case 17:
|
1568
|
-
#line 168 "/
|
1568
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1569
1569
|
{
|
1570
1570
|
MARK(keyword_end, p);
|
1571
1571
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1574,13 +1574,13 @@ _match:
|
|
1574
1574
|
}
|
1575
1575
|
break;
|
1576
1576
|
case 18:
|
1577
|
-
#line 175 "/
|
1577
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1578
1578
|
{
|
1579
1579
|
MARK(content_end, p);
|
1580
1580
|
}
|
1581
1581
|
break;
|
1582
1582
|
case 19:
|
1583
|
-
#line 179 "/
|
1583
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1584
1584
|
{
|
1585
1585
|
p = p - 1;
|
1586
1586
|
lexer->current_line = lexer->line_number;
|
@@ -1588,13 +1588,13 @@ _match:
|
|
1588
1588
|
}
|
1589
1589
|
break;
|
1590
1590
|
case 20:
|
1591
|
-
#line 185 "/
|
1591
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1592
1592
|
{
|
1593
1593
|
MARK(content_start, p);
|
1594
1594
|
}
|
1595
1595
|
break;
|
1596
1596
|
case 21:
|
1597
|
-
#line 189 "/
|
1597
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1598
1598
|
{
|
1599
1599
|
VALUE re_pipe, re_newline, re_backslash;
|
1600
1600
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1610,13 +1610,13 @@ _match:
|
|
1610
1610
|
}
|
1611
1611
|
break;
|
1612
1612
|
case 22:
|
1613
|
-
#line 203 "/
|
1613
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1614
1614
|
{
|
1615
1615
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1616
1616
|
}
|
1617
1617
|
break;
|
1618
1618
|
case 23:
|
1619
|
-
#line 207 "/
|
1619
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1620
1620
|
{
|
1621
1621
|
int line;
|
1622
1622
|
if (cs < lexer_first_final) {
|
@@ -1679,7 +1679,7 @@ _again:
|
|
1679
1679
|
while ( __nacts-- > 0 ) {
|
1680
1680
|
switch ( *__acts++ ) {
|
1681
1681
|
case 23:
|
1682
|
-
#line 207 "/
|
1682
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1683
1683
|
{
|
1684
1684
|
int line;
|
1685
1685
|
if (cs < lexer_first_final) {
|
@@ -1733,7 +1733,7 @@ _again:
|
|
1733
1733
|
_out: {}
|
1734
1734
|
}
|
1735
1735
|
|
1736
|
-
#line 426 "/
|
1736
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/en_au.c.rl"
|
1737
1737
|
|
1738
1738
|
assert(p <= pe && "data overflow after parsing execute");
|
1739
1739
|
assert(lexer->content_start <= len && "content starts after data end");
|