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/sv.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/sv.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -756,7 +756,7 @@ static const int lexer_error = 0;
|
|
756
756
|
static const int lexer_en_main = 1;
|
757
757
|
|
758
758
|
|
759
|
-
#line 258 "/
|
759
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
760
760
|
|
761
761
|
static VALUE
|
762
762
|
unindent(VALUE con, int start_col)
|
@@ -929,7 +929,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
929
929
|
cs = lexer_start;
|
930
930
|
}
|
931
931
|
|
932
|
-
#line 425 "/
|
932
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
933
933
|
|
934
934
|
#line 935 "ext/gherkin_lexer_sv/gherkin_lexer_sv.c"
|
935
935
|
{
|
@@ -1005,7 +1005,7 @@ _match:
|
|
1005
1005
|
switch ( *_acts++ )
|
1006
1006
|
{
|
1007
1007
|
case 0:
|
1008
|
-
#line 83 "/
|
1008
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1009
1009
|
{
|
1010
1010
|
MARK(content_start, p);
|
1011
1011
|
lexer->current_line = lexer->line_number;
|
@@ -1013,20 +1013,20 @@ _match:
|
|
1013
1013
|
}
|
1014
1014
|
break;
|
1015
1015
|
case 1:
|
1016
|
-
#line 89 "/
|
1016
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1017
1017
|
{
|
1018
1018
|
MARK(content_start, p);
|
1019
1019
|
}
|
1020
1020
|
break;
|
1021
1021
|
case 2:
|
1022
|
-
#line 93 "/
|
1022
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1023
1023
|
{
|
1024
1024
|
lexer->current_line = lexer->line_number;
|
1025
1025
|
lexer->start_col = p - data - lexer->last_newline;
|
1026
1026
|
}
|
1027
1027
|
break;
|
1028
1028
|
case 3:
|
1029
|
-
#line 98 "/
|
1029
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1030
1030
|
{
|
1031
1031
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1032
1032
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1038,49 +1038,49 @@ _match:
|
|
1038
1038
|
}
|
1039
1039
|
break;
|
1040
1040
|
case 4:
|
1041
|
-
#line 108 "/
|
1041
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1042
1042
|
{
|
1043
1043
|
MARK(docstring_content_type_start, p);
|
1044
1044
|
}
|
1045
1045
|
break;
|
1046
1046
|
case 5:
|
1047
|
-
#line 112 "/
|
1047
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1048
1048
|
{
|
1049
1049
|
MARK(docstring_content_type_end, p);
|
1050
1050
|
}
|
1051
1051
|
break;
|
1052
1052
|
case 6:
|
1053
|
-
#line 116 "/
|
1053
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1054
1054
|
{
|
1055
1055
|
STORE_KW_END_CON(feature);
|
1056
1056
|
}
|
1057
1057
|
break;
|
1058
1058
|
case 7:
|
1059
|
-
#line 120 "/
|
1059
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1060
1060
|
{
|
1061
1061
|
STORE_KW_END_CON(background);
|
1062
1062
|
}
|
1063
1063
|
break;
|
1064
1064
|
case 8:
|
1065
|
-
#line 124 "/
|
1065
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1066
1066
|
{
|
1067
1067
|
STORE_KW_END_CON(scenario);
|
1068
1068
|
}
|
1069
1069
|
break;
|
1070
1070
|
case 9:
|
1071
|
-
#line 128 "/
|
1071
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1072
1072
|
{
|
1073
1073
|
STORE_KW_END_CON(scenario_outline);
|
1074
1074
|
}
|
1075
1075
|
break;
|
1076
1076
|
case 10:
|
1077
|
-
#line 132 "/
|
1077
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1078
1078
|
{
|
1079
1079
|
STORE_KW_END_CON(examples);
|
1080
1080
|
}
|
1081
1081
|
break;
|
1082
1082
|
case 11:
|
1083
|
-
#line 136 "/
|
1083
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1084
1084
|
{
|
1085
1085
|
store_kw_con(listener, "step",
|
1086
1086
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1089,34 +1089,34 @@ _match:
|
|
1089
1089
|
}
|
1090
1090
|
break;
|
1091
1091
|
case 12:
|
1092
|
-
#line 143 "/
|
1092
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1093
1093
|
{
|
1094
1094
|
STORE_ATTR(comment);
|
1095
1095
|
lexer->mark = 0;
|
1096
1096
|
}
|
1097
1097
|
break;
|
1098
1098
|
case 13:
|
1099
|
-
#line 148 "/
|
1099
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1100
1100
|
{
|
1101
1101
|
STORE_ATTR(tag);
|
1102
1102
|
lexer->mark = 0;
|
1103
1103
|
}
|
1104
1104
|
break;
|
1105
1105
|
case 14:
|
1106
|
-
#line 153 "/
|
1106
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1107
1107
|
{
|
1108
1108
|
lexer->line_number += 1;
|
1109
1109
|
MARK(final_newline, p);
|
1110
1110
|
}
|
1111
1111
|
break;
|
1112
1112
|
case 15:
|
1113
|
-
#line 158 "/
|
1113
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1114
1114
|
{
|
1115
1115
|
MARK(last_newline, p + 1);
|
1116
1116
|
}
|
1117
1117
|
break;
|
1118
1118
|
case 16:
|
1119
|
-
#line 162 "/
|
1119
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1120
1120
|
{
|
1121
1121
|
if (lexer->mark == 0) {
|
1122
1122
|
MARK(mark, p);
|
@@ -1124,7 +1124,7 @@ _match:
|
|
1124
1124
|
}
|
1125
1125
|
break;
|
1126
1126
|
case 17:
|
1127
|
-
#line 168 "/
|
1127
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1128
1128
|
{
|
1129
1129
|
MARK(keyword_end, p);
|
1130
1130
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1133,13 +1133,13 @@ _match:
|
|
1133
1133
|
}
|
1134
1134
|
break;
|
1135
1135
|
case 18:
|
1136
|
-
#line 175 "/
|
1136
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1137
1137
|
{
|
1138
1138
|
MARK(content_end, p);
|
1139
1139
|
}
|
1140
1140
|
break;
|
1141
1141
|
case 19:
|
1142
|
-
#line 179 "/
|
1142
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1143
1143
|
{
|
1144
1144
|
p = p - 1;
|
1145
1145
|
lexer->current_line = lexer->line_number;
|
@@ -1147,13 +1147,13 @@ _match:
|
|
1147
1147
|
}
|
1148
1148
|
break;
|
1149
1149
|
case 20:
|
1150
|
-
#line 185 "/
|
1150
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1151
1151
|
{
|
1152
1152
|
MARK(content_start, p);
|
1153
1153
|
}
|
1154
1154
|
break;
|
1155
1155
|
case 21:
|
1156
|
-
#line 189 "/
|
1156
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1157
1157
|
{
|
1158
1158
|
VALUE re_pipe, re_newline, re_backslash;
|
1159
1159
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1169,13 +1169,13 @@ _match:
|
|
1169
1169
|
}
|
1170
1170
|
break;
|
1171
1171
|
case 22:
|
1172
|
-
#line 203 "/
|
1172
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1173
1173
|
{
|
1174
1174
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1175
1175
|
}
|
1176
1176
|
break;
|
1177
1177
|
case 23:
|
1178
|
-
#line 207 "/
|
1178
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1179
1179
|
{
|
1180
1180
|
int line;
|
1181
1181
|
if (cs < lexer_first_final) {
|
@@ -1238,7 +1238,7 @@ _again:
|
|
1238
1238
|
while ( __nacts-- > 0 ) {
|
1239
1239
|
switch ( *__acts++ ) {
|
1240
1240
|
case 23:
|
1241
|
-
#line 207 "/
|
1241
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1242
1242
|
{
|
1243
1243
|
int line;
|
1244
1244
|
if (cs < lexer_first_final) {
|
@@ -1292,7 +1292,7 @@ _again:
|
|
1292
1292
|
_out: {}
|
1293
1293
|
}
|
1294
1294
|
|
1295
|
-
#line 426 "/
|
1295
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sv.c.rl"
|
1296
1296
|
|
1297
1297
|
assert(p <= pe && "data overflow after parsing execute");
|
1298
1298
|
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/tl.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/tl.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -1453,7 +1453,7 @@ static const int lexer_error = 0;
|
|
1453
1453
|
static const int lexer_en_main = 1;
|
1454
1454
|
|
1455
1455
|
|
1456
|
-
#line 258 "/
|
1456
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1457
1457
|
|
1458
1458
|
static VALUE
|
1459
1459
|
unindent(VALUE con, int start_col)
|
@@ -1626,7 +1626,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1626
1626
|
cs = lexer_start;
|
1627
1627
|
}
|
1628
1628
|
|
1629
|
-
#line 425 "/
|
1629
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1630
1630
|
|
1631
1631
|
#line 1632 "ext/gherkin_lexer_tl/gherkin_lexer_tl.c"
|
1632
1632
|
{
|
@@ -1702,7 +1702,7 @@ _match:
|
|
1702
1702
|
switch ( *_acts++ )
|
1703
1703
|
{
|
1704
1704
|
case 0:
|
1705
|
-
#line 83 "/
|
1705
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1706
1706
|
{
|
1707
1707
|
MARK(content_start, p);
|
1708
1708
|
lexer->current_line = lexer->line_number;
|
@@ -1710,20 +1710,20 @@ _match:
|
|
1710
1710
|
}
|
1711
1711
|
break;
|
1712
1712
|
case 1:
|
1713
|
-
#line 89 "/
|
1713
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1714
1714
|
{
|
1715
1715
|
MARK(content_start, p);
|
1716
1716
|
}
|
1717
1717
|
break;
|
1718
1718
|
case 2:
|
1719
|
-
#line 93 "/
|
1719
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1720
1720
|
{
|
1721
1721
|
lexer->current_line = lexer->line_number;
|
1722
1722
|
lexer->start_col = p - data - lexer->last_newline;
|
1723
1723
|
}
|
1724
1724
|
break;
|
1725
1725
|
case 3:
|
1726
|
-
#line 98 "/
|
1726
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1727
1727
|
{
|
1728
1728
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1729
1729
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1735,49 +1735,49 @@ _match:
|
|
1735
1735
|
}
|
1736
1736
|
break;
|
1737
1737
|
case 4:
|
1738
|
-
#line 108 "/
|
1738
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1739
1739
|
{
|
1740
1740
|
MARK(docstring_content_type_start, p);
|
1741
1741
|
}
|
1742
1742
|
break;
|
1743
1743
|
case 5:
|
1744
|
-
#line 112 "/
|
1744
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1745
1745
|
{
|
1746
1746
|
MARK(docstring_content_type_end, p);
|
1747
1747
|
}
|
1748
1748
|
break;
|
1749
1749
|
case 6:
|
1750
|
-
#line 116 "/
|
1750
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1751
1751
|
{
|
1752
1752
|
STORE_KW_END_CON(feature);
|
1753
1753
|
}
|
1754
1754
|
break;
|
1755
1755
|
case 7:
|
1756
|
-
#line 120 "/
|
1756
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1757
1757
|
{
|
1758
1758
|
STORE_KW_END_CON(background);
|
1759
1759
|
}
|
1760
1760
|
break;
|
1761
1761
|
case 8:
|
1762
|
-
#line 124 "/
|
1762
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1763
1763
|
{
|
1764
1764
|
STORE_KW_END_CON(scenario);
|
1765
1765
|
}
|
1766
1766
|
break;
|
1767
1767
|
case 9:
|
1768
|
-
#line 128 "/
|
1768
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1769
1769
|
{
|
1770
1770
|
STORE_KW_END_CON(scenario_outline);
|
1771
1771
|
}
|
1772
1772
|
break;
|
1773
1773
|
case 10:
|
1774
|
-
#line 132 "/
|
1774
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1775
1775
|
{
|
1776
1776
|
STORE_KW_END_CON(examples);
|
1777
1777
|
}
|
1778
1778
|
break;
|
1779
1779
|
case 11:
|
1780
|
-
#line 136 "/
|
1780
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1781
1781
|
{
|
1782
1782
|
store_kw_con(listener, "step",
|
1783
1783
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1786,34 +1786,34 @@ _match:
|
|
1786
1786
|
}
|
1787
1787
|
break;
|
1788
1788
|
case 12:
|
1789
|
-
#line 143 "/
|
1789
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1790
1790
|
{
|
1791
1791
|
STORE_ATTR(comment);
|
1792
1792
|
lexer->mark = 0;
|
1793
1793
|
}
|
1794
1794
|
break;
|
1795
1795
|
case 13:
|
1796
|
-
#line 148 "/
|
1796
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1797
1797
|
{
|
1798
1798
|
STORE_ATTR(tag);
|
1799
1799
|
lexer->mark = 0;
|
1800
1800
|
}
|
1801
1801
|
break;
|
1802
1802
|
case 14:
|
1803
|
-
#line 153 "/
|
1803
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1804
1804
|
{
|
1805
1805
|
lexer->line_number += 1;
|
1806
1806
|
MARK(final_newline, p);
|
1807
1807
|
}
|
1808
1808
|
break;
|
1809
1809
|
case 15:
|
1810
|
-
#line 158 "/
|
1810
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1811
1811
|
{
|
1812
1812
|
MARK(last_newline, p + 1);
|
1813
1813
|
}
|
1814
1814
|
break;
|
1815
1815
|
case 16:
|
1816
|
-
#line 162 "/
|
1816
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1817
1817
|
{
|
1818
1818
|
if (lexer->mark == 0) {
|
1819
1819
|
MARK(mark, p);
|
@@ -1821,7 +1821,7 @@ _match:
|
|
1821
1821
|
}
|
1822
1822
|
break;
|
1823
1823
|
case 17:
|
1824
|
-
#line 168 "/
|
1824
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1825
1825
|
{
|
1826
1826
|
MARK(keyword_end, p);
|
1827
1827
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1830,13 +1830,13 @@ _match:
|
|
1830
1830
|
}
|
1831
1831
|
break;
|
1832
1832
|
case 18:
|
1833
|
-
#line 175 "/
|
1833
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1834
1834
|
{
|
1835
1835
|
MARK(content_end, p);
|
1836
1836
|
}
|
1837
1837
|
break;
|
1838
1838
|
case 19:
|
1839
|
-
#line 179 "/
|
1839
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1840
1840
|
{
|
1841
1841
|
p = p - 1;
|
1842
1842
|
lexer->current_line = lexer->line_number;
|
@@ -1844,13 +1844,13 @@ _match:
|
|
1844
1844
|
}
|
1845
1845
|
break;
|
1846
1846
|
case 20:
|
1847
|
-
#line 185 "/
|
1847
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1848
1848
|
{
|
1849
1849
|
MARK(content_start, p);
|
1850
1850
|
}
|
1851
1851
|
break;
|
1852
1852
|
case 21:
|
1853
|
-
#line 189 "/
|
1853
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1854
1854
|
{
|
1855
1855
|
VALUE re_pipe, re_newline, re_backslash;
|
1856
1856
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1866,13 +1866,13 @@ _match:
|
|
1866
1866
|
}
|
1867
1867
|
break;
|
1868
1868
|
case 22:
|
1869
|
-
#line 203 "/
|
1869
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1870
1870
|
{
|
1871
1871
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1872
1872
|
}
|
1873
1873
|
break;
|
1874
1874
|
case 23:
|
1875
|
-
#line 207 "/
|
1875
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1876
1876
|
{
|
1877
1877
|
int line;
|
1878
1878
|
if (cs < lexer_first_final) {
|
@@ -1935,7 +1935,7 @@ _again:
|
|
1935
1935
|
while ( __nacts-- > 0 ) {
|
1936
1936
|
switch ( *__acts++ ) {
|
1937
1937
|
case 23:
|
1938
|
-
#line 207 "/
|
1938
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1939
1939
|
{
|
1940
1940
|
int line;
|
1941
1941
|
if (cs < lexer_first_final) {
|
@@ -1989,7 +1989,7 @@ _again:
|
|
1989
1989
|
_out: {}
|
1990
1990
|
}
|
1991
1991
|
|
1992
|
-
#line 426 "/
|
1992
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/tl.c.rl"
|
1993
1993
|
|
1994
1994
|
assert(p <= pe && "data overflow after parsing execute");
|
1995
1995
|
assert(lexer->content_start <= len && "content starts after data end");
|