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/es.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/es.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -831,7 +831,7 @@ static const int lexer_error = 0;
|
|
831
831
|
static const int lexer_en_main = 1;
|
832
832
|
|
833
833
|
|
834
|
-
#line 258 "/
|
834
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
835
835
|
|
836
836
|
static VALUE
|
837
837
|
unindent(VALUE con, int start_col)
|
@@ -1004,7 +1004,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1004
1004
|
cs = lexer_start;
|
1005
1005
|
}
|
1006
1006
|
|
1007
|
-
#line 425 "/
|
1007
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1008
1008
|
|
1009
1009
|
#line 1010 "ext/gherkin_lexer_es/gherkin_lexer_es.c"
|
1010
1010
|
{
|
@@ -1080,7 +1080,7 @@ _match:
|
|
1080
1080
|
switch ( *_acts++ )
|
1081
1081
|
{
|
1082
1082
|
case 0:
|
1083
|
-
#line 83 "/
|
1083
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1084
1084
|
{
|
1085
1085
|
MARK(content_start, p);
|
1086
1086
|
lexer->current_line = lexer->line_number;
|
@@ -1088,20 +1088,20 @@ _match:
|
|
1088
1088
|
}
|
1089
1089
|
break;
|
1090
1090
|
case 1:
|
1091
|
-
#line 89 "/
|
1091
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1092
1092
|
{
|
1093
1093
|
MARK(content_start, p);
|
1094
1094
|
}
|
1095
1095
|
break;
|
1096
1096
|
case 2:
|
1097
|
-
#line 93 "/
|
1097
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1098
1098
|
{
|
1099
1099
|
lexer->current_line = lexer->line_number;
|
1100
1100
|
lexer->start_col = p - data - lexer->last_newline;
|
1101
1101
|
}
|
1102
1102
|
break;
|
1103
1103
|
case 3:
|
1104
|
-
#line 98 "/
|
1104
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1105
1105
|
{
|
1106
1106
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1107
1107
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1113,49 +1113,49 @@ _match:
|
|
1113
1113
|
}
|
1114
1114
|
break;
|
1115
1115
|
case 4:
|
1116
|
-
#line 108 "/
|
1116
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1117
1117
|
{
|
1118
1118
|
MARK(docstring_content_type_start, p);
|
1119
1119
|
}
|
1120
1120
|
break;
|
1121
1121
|
case 5:
|
1122
|
-
#line 112 "/
|
1122
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1123
1123
|
{
|
1124
1124
|
MARK(docstring_content_type_end, p);
|
1125
1125
|
}
|
1126
1126
|
break;
|
1127
1127
|
case 6:
|
1128
|
-
#line 116 "/
|
1128
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1129
1129
|
{
|
1130
1130
|
STORE_KW_END_CON(feature);
|
1131
1131
|
}
|
1132
1132
|
break;
|
1133
1133
|
case 7:
|
1134
|
-
#line 120 "/
|
1134
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1135
1135
|
{
|
1136
1136
|
STORE_KW_END_CON(background);
|
1137
1137
|
}
|
1138
1138
|
break;
|
1139
1139
|
case 8:
|
1140
|
-
#line 124 "/
|
1140
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1141
1141
|
{
|
1142
1142
|
STORE_KW_END_CON(scenario);
|
1143
1143
|
}
|
1144
1144
|
break;
|
1145
1145
|
case 9:
|
1146
|
-
#line 128 "/
|
1146
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1147
1147
|
{
|
1148
1148
|
STORE_KW_END_CON(scenario_outline);
|
1149
1149
|
}
|
1150
1150
|
break;
|
1151
1151
|
case 10:
|
1152
|
-
#line 132 "/
|
1152
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1153
1153
|
{
|
1154
1154
|
STORE_KW_END_CON(examples);
|
1155
1155
|
}
|
1156
1156
|
break;
|
1157
1157
|
case 11:
|
1158
|
-
#line 136 "/
|
1158
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1159
1159
|
{
|
1160
1160
|
store_kw_con(listener, "step",
|
1161
1161
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1164,34 +1164,34 @@ _match:
|
|
1164
1164
|
}
|
1165
1165
|
break;
|
1166
1166
|
case 12:
|
1167
|
-
#line 143 "/
|
1167
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1168
1168
|
{
|
1169
1169
|
STORE_ATTR(comment);
|
1170
1170
|
lexer->mark = 0;
|
1171
1171
|
}
|
1172
1172
|
break;
|
1173
1173
|
case 13:
|
1174
|
-
#line 148 "/
|
1174
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1175
1175
|
{
|
1176
1176
|
STORE_ATTR(tag);
|
1177
1177
|
lexer->mark = 0;
|
1178
1178
|
}
|
1179
1179
|
break;
|
1180
1180
|
case 14:
|
1181
|
-
#line 153 "/
|
1181
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1182
1182
|
{
|
1183
1183
|
lexer->line_number += 1;
|
1184
1184
|
MARK(final_newline, p);
|
1185
1185
|
}
|
1186
1186
|
break;
|
1187
1187
|
case 15:
|
1188
|
-
#line 158 "/
|
1188
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1189
1189
|
{
|
1190
1190
|
MARK(last_newline, p + 1);
|
1191
1191
|
}
|
1192
1192
|
break;
|
1193
1193
|
case 16:
|
1194
|
-
#line 162 "/
|
1194
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1195
1195
|
{
|
1196
1196
|
if (lexer->mark == 0) {
|
1197
1197
|
MARK(mark, p);
|
@@ -1199,7 +1199,7 @@ _match:
|
|
1199
1199
|
}
|
1200
1200
|
break;
|
1201
1201
|
case 17:
|
1202
|
-
#line 168 "/
|
1202
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1203
1203
|
{
|
1204
1204
|
MARK(keyword_end, p);
|
1205
1205
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1208,13 +1208,13 @@ _match:
|
|
1208
1208
|
}
|
1209
1209
|
break;
|
1210
1210
|
case 18:
|
1211
|
-
#line 175 "/
|
1211
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1212
1212
|
{
|
1213
1213
|
MARK(content_end, p);
|
1214
1214
|
}
|
1215
1215
|
break;
|
1216
1216
|
case 19:
|
1217
|
-
#line 179 "/
|
1217
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1218
1218
|
{
|
1219
1219
|
p = p - 1;
|
1220
1220
|
lexer->current_line = lexer->line_number;
|
@@ -1222,13 +1222,13 @@ _match:
|
|
1222
1222
|
}
|
1223
1223
|
break;
|
1224
1224
|
case 20:
|
1225
|
-
#line 185 "/
|
1225
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1226
1226
|
{
|
1227
1227
|
MARK(content_start, p);
|
1228
1228
|
}
|
1229
1229
|
break;
|
1230
1230
|
case 21:
|
1231
|
-
#line 189 "/
|
1231
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1232
1232
|
{
|
1233
1233
|
VALUE re_pipe, re_newline, re_backslash;
|
1234
1234
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1244,13 +1244,13 @@ _match:
|
|
1244
1244
|
}
|
1245
1245
|
break;
|
1246
1246
|
case 22:
|
1247
|
-
#line 203 "/
|
1247
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1248
1248
|
{
|
1249
1249
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1250
1250
|
}
|
1251
1251
|
break;
|
1252
1252
|
case 23:
|
1253
|
-
#line 207 "/
|
1253
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1254
1254
|
{
|
1255
1255
|
int line;
|
1256
1256
|
if (cs < lexer_first_final) {
|
@@ -1313,7 +1313,7 @@ _again:
|
|
1313
1313
|
while ( __nacts-- > 0 ) {
|
1314
1314
|
switch ( *__acts++ ) {
|
1315
1315
|
case 23:
|
1316
|
-
#line 207 "/
|
1316
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1317
1317
|
{
|
1318
1318
|
int line;
|
1319
1319
|
if (cs < lexer_first_final) {
|
@@ -1367,7 +1367,7 @@ _again:
|
|
1367
1367
|
_out: {}
|
1368
1368
|
}
|
1369
1369
|
|
1370
|
-
#line 426 "/
|
1370
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/es.c.rl"
|
1371
1371
|
|
1372
1372
|
assert(p <= pe && "data overflow after parsing execute");
|
1373
1373
|
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/et.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/et.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -668,7 +668,7 @@ static const int lexer_error = 0;
|
|
668
668
|
static const int lexer_en_main = 1;
|
669
669
|
|
670
670
|
|
671
|
-
#line 258 "/
|
671
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
672
672
|
|
673
673
|
static VALUE
|
674
674
|
unindent(VALUE con, int start_col)
|
@@ -841,7 +841,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
841
841
|
cs = lexer_start;
|
842
842
|
}
|
843
843
|
|
844
|
-
#line 425 "/
|
844
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
845
845
|
|
846
846
|
#line 847 "ext/gherkin_lexer_et/gherkin_lexer_et.c"
|
847
847
|
{
|
@@ -917,7 +917,7 @@ _match:
|
|
917
917
|
switch ( *_acts++ )
|
918
918
|
{
|
919
919
|
case 0:
|
920
|
-
#line 83 "/
|
920
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
921
921
|
{
|
922
922
|
MARK(content_start, p);
|
923
923
|
lexer->current_line = lexer->line_number;
|
@@ -925,20 +925,20 @@ _match:
|
|
925
925
|
}
|
926
926
|
break;
|
927
927
|
case 1:
|
928
|
-
#line 89 "/
|
928
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
929
929
|
{
|
930
930
|
MARK(content_start, p);
|
931
931
|
}
|
932
932
|
break;
|
933
933
|
case 2:
|
934
|
-
#line 93 "/
|
934
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
935
935
|
{
|
936
936
|
lexer->current_line = lexer->line_number;
|
937
937
|
lexer->start_col = p - data - lexer->last_newline;
|
938
938
|
}
|
939
939
|
break;
|
940
940
|
case 3:
|
941
|
-
#line 98 "/
|
941
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
942
942
|
{
|
943
943
|
int len = LEN(content_start, PTR_TO(final_newline));
|
944
944
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -950,49 +950,49 @@ _match:
|
|
950
950
|
}
|
951
951
|
break;
|
952
952
|
case 4:
|
953
|
-
#line 108 "/
|
953
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
954
954
|
{
|
955
955
|
MARK(docstring_content_type_start, p);
|
956
956
|
}
|
957
957
|
break;
|
958
958
|
case 5:
|
959
|
-
#line 112 "/
|
959
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
960
960
|
{
|
961
961
|
MARK(docstring_content_type_end, p);
|
962
962
|
}
|
963
963
|
break;
|
964
964
|
case 6:
|
965
|
-
#line 116 "/
|
965
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
966
966
|
{
|
967
967
|
STORE_KW_END_CON(feature);
|
968
968
|
}
|
969
969
|
break;
|
970
970
|
case 7:
|
971
|
-
#line 120 "/
|
971
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
972
972
|
{
|
973
973
|
STORE_KW_END_CON(background);
|
974
974
|
}
|
975
975
|
break;
|
976
976
|
case 8:
|
977
|
-
#line 124 "/
|
977
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
978
978
|
{
|
979
979
|
STORE_KW_END_CON(scenario);
|
980
980
|
}
|
981
981
|
break;
|
982
982
|
case 9:
|
983
|
-
#line 128 "/
|
983
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
984
984
|
{
|
985
985
|
STORE_KW_END_CON(scenario_outline);
|
986
986
|
}
|
987
987
|
break;
|
988
988
|
case 10:
|
989
|
-
#line 132 "/
|
989
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
990
990
|
{
|
991
991
|
STORE_KW_END_CON(examples);
|
992
992
|
}
|
993
993
|
break;
|
994
994
|
case 11:
|
995
|
-
#line 136 "/
|
995
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
996
996
|
{
|
997
997
|
store_kw_con(listener, "step",
|
998
998
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1001,34 +1001,34 @@ _match:
|
|
1001
1001
|
}
|
1002
1002
|
break;
|
1003
1003
|
case 12:
|
1004
|
-
#line 143 "/
|
1004
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1005
1005
|
{
|
1006
1006
|
STORE_ATTR(comment);
|
1007
1007
|
lexer->mark = 0;
|
1008
1008
|
}
|
1009
1009
|
break;
|
1010
1010
|
case 13:
|
1011
|
-
#line 148 "/
|
1011
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1012
1012
|
{
|
1013
1013
|
STORE_ATTR(tag);
|
1014
1014
|
lexer->mark = 0;
|
1015
1015
|
}
|
1016
1016
|
break;
|
1017
1017
|
case 14:
|
1018
|
-
#line 153 "/
|
1018
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1019
1019
|
{
|
1020
1020
|
lexer->line_number += 1;
|
1021
1021
|
MARK(final_newline, p);
|
1022
1022
|
}
|
1023
1023
|
break;
|
1024
1024
|
case 15:
|
1025
|
-
#line 158 "/
|
1025
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1026
1026
|
{
|
1027
1027
|
MARK(last_newline, p + 1);
|
1028
1028
|
}
|
1029
1029
|
break;
|
1030
1030
|
case 16:
|
1031
|
-
#line 162 "/
|
1031
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1032
1032
|
{
|
1033
1033
|
if (lexer->mark == 0) {
|
1034
1034
|
MARK(mark, p);
|
@@ -1036,7 +1036,7 @@ _match:
|
|
1036
1036
|
}
|
1037
1037
|
break;
|
1038
1038
|
case 17:
|
1039
|
-
#line 168 "/
|
1039
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1040
1040
|
{
|
1041
1041
|
MARK(keyword_end, p);
|
1042
1042
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1045,13 +1045,13 @@ _match:
|
|
1045
1045
|
}
|
1046
1046
|
break;
|
1047
1047
|
case 18:
|
1048
|
-
#line 175 "/
|
1048
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1049
1049
|
{
|
1050
1050
|
MARK(content_end, p);
|
1051
1051
|
}
|
1052
1052
|
break;
|
1053
1053
|
case 19:
|
1054
|
-
#line 179 "/
|
1054
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1055
1055
|
{
|
1056
1056
|
p = p - 1;
|
1057
1057
|
lexer->current_line = lexer->line_number;
|
@@ -1059,13 +1059,13 @@ _match:
|
|
1059
1059
|
}
|
1060
1060
|
break;
|
1061
1061
|
case 20:
|
1062
|
-
#line 185 "/
|
1062
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1063
1063
|
{
|
1064
1064
|
MARK(content_start, p);
|
1065
1065
|
}
|
1066
1066
|
break;
|
1067
1067
|
case 21:
|
1068
|
-
#line 189 "/
|
1068
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1069
1069
|
{
|
1070
1070
|
VALUE re_pipe, re_newline, re_backslash;
|
1071
1071
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1081,13 +1081,13 @@ _match:
|
|
1081
1081
|
}
|
1082
1082
|
break;
|
1083
1083
|
case 22:
|
1084
|
-
#line 203 "/
|
1084
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1085
1085
|
{
|
1086
1086
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1087
1087
|
}
|
1088
1088
|
break;
|
1089
1089
|
case 23:
|
1090
|
-
#line 207 "/
|
1090
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1091
1091
|
{
|
1092
1092
|
int line;
|
1093
1093
|
if (cs < lexer_first_final) {
|
@@ -1150,7 +1150,7 @@ _again:
|
|
1150
1150
|
while ( __nacts-- > 0 ) {
|
1151
1151
|
switch ( *__acts++ ) {
|
1152
1152
|
case 23:
|
1153
|
-
#line 207 "/
|
1153
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1154
1154
|
{
|
1155
1155
|
int line;
|
1156
1156
|
if (cs < lexer_first_final) {
|
@@ -1204,7 +1204,7 @@ _again:
|
|
1204
1204
|
_out: {}
|
1205
1205
|
}
|
1206
1206
|
|
1207
|
-
#line 426 "/
|
1207
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/et.c.rl"
|
1208
1208
|
|
1209
1209
|
assert(p <= pe && "data overflow after parsing execute");
|
1210
1210
|
assert(lexer->content_start <= len && "content starts after data end");
|