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/cy_gb.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/cy_gb.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -714,7 +714,7 @@ static const int lexer_error = 0;
|
|
714
714
|
static const int lexer_en_main = 1;
|
715
715
|
|
716
716
|
|
717
|
-
#line 258 "/
|
717
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
718
718
|
|
719
719
|
static VALUE
|
720
720
|
unindent(VALUE con, int start_col)
|
@@ -887,7 +887,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
887
887
|
cs = lexer_start;
|
888
888
|
}
|
889
889
|
|
890
|
-
#line 425 "/
|
890
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
891
891
|
|
892
892
|
#line 893 "ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c"
|
893
893
|
{
|
@@ -963,7 +963,7 @@ _match:
|
|
963
963
|
switch ( *_acts++ )
|
964
964
|
{
|
965
965
|
case 0:
|
966
|
-
#line 83 "/
|
966
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
967
967
|
{
|
968
968
|
MARK(content_start, p);
|
969
969
|
lexer->current_line = lexer->line_number;
|
@@ -971,20 +971,20 @@ _match:
|
|
971
971
|
}
|
972
972
|
break;
|
973
973
|
case 1:
|
974
|
-
#line 89 "/
|
974
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
975
975
|
{
|
976
976
|
MARK(content_start, p);
|
977
977
|
}
|
978
978
|
break;
|
979
979
|
case 2:
|
980
|
-
#line 93 "/
|
980
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
981
981
|
{
|
982
982
|
lexer->current_line = lexer->line_number;
|
983
983
|
lexer->start_col = p - data - lexer->last_newline;
|
984
984
|
}
|
985
985
|
break;
|
986
986
|
case 3:
|
987
|
-
#line 98 "/
|
987
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
988
988
|
{
|
989
989
|
int len = LEN(content_start, PTR_TO(final_newline));
|
990
990
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -996,49 +996,49 @@ _match:
|
|
996
996
|
}
|
997
997
|
break;
|
998
998
|
case 4:
|
999
|
-
#line 108 "/
|
999
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1000
1000
|
{
|
1001
1001
|
MARK(docstring_content_type_start, p);
|
1002
1002
|
}
|
1003
1003
|
break;
|
1004
1004
|
case 5:
|
1005
|
-
#line 112 "/
|
1005
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1006
1006
|
{
|
1007
1007
|
MARK(docstring_content_type_end, p);
|
1008
1008
|
}
|
1009
1009
|
break;
|
1010
1010
|
case 6:
|
1011
|
-
#line 116 "/
|
1011
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1012
1012
|
{
|
1013
1013
|
STORE_KW_END_CON(feature);
|
1014
1014
|
}
|
1015
1015
|
break;
|
1016
1016
|
case 7:
|
1017
|
-
#line 120 "/
|
1017
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1018
1018
|
{
|
1019
1019
|
STORE_KW_END_CON(background);
|
1020
1020
|
}
|
1021
1021
|
break;
|
1022
1022
|
case 8:
|
1023
|
-
#line 124 "/
|
1023
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1024
1024
|
{
|
1025
1025
|
STORE_KW_END_CON(scenario);
|
1026
1026
|
}
|
1027
1027
|
break;
|
1028
1028
|
case 9:
|
1029
|
-
#line 128 "/
|
1029
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1030
1030
|
{
|
1031
1031
|
STORE_KW_END_CON(scenario_outline);
|
1032
1032
|
}
|
1033
1033
|
break;
|
1034
1034
|
case 10:
|
1035
|
-
#line 132 "/
|
1035
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1036
1036
|
{
|
1037
1037
|
STORE_KW_END_CON(examples);
|
1038
1038
|
}
|
1039
1039
|
break;
|
1040
1040
|
case 11:
|
1041
|
-
#line 136 "/
|
1041
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1042
1042
|
{
|
1043
1043
|
store_kw_con(listener, "step",
|
1044
1044
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1047,34 +1047,34 @@ _match:
|
|
1047
1047
|
}
|
1048
1048
|
break;
|
1049
1049
|
case 12:
|
1050
|
-
#line 143 "/
|
1050
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1051
1051
|
{
|
1052
1052
|
STORE_ATTR(comment);
|
1053
1053
|
lexer->mark = 0;
|
1054
1054
|
}
|
1055
1055
|
break;
|
1056
1056
|
case 13:
|
1057
|
-
#line 148 "/
|
1057
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1058
1058
|
{
|
1059
1059
|
STORE_ATTR(tag);
|
1060
1060
|
lexer->mark = 0;
|
1061
1061
|
}
|
1062
1062
|
break;
|
1063
1063
|
case 14:
|
1064
|
-
#line 153 "/
|
1064
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1065
1065
|
{
|
1066
1066
|
lexer->line_number += 1;
|
1067
1067
|
MARK(final_newline, p);
|
1068
1068
|
}
|
1069
1069
|
break;
|
1070
1070
|
case 15:
|
1071
|
-
#line 158 "/
|
1071
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1072
1072
|
{
|
1073
1073
|
MARK(last_newline, p + 1);
|
1074
1074
|
}
|
1075
1075
|
break;
|
1076
1076
|
case 16:
|
1077
|
-
#line 162 "/
|
1077
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1078
1078
|
{
|
1079
1079
|
if (lexer->mark == 0) {
|
1080
1080
|
MARK(mark, p);
|
@@ -1082,7 +1082,7 @@ _match:
|
|
1082
1082
|
}
|
1083
1083
|
break;
|
1084
1084
|
case 17:
|
1085
|
-
#line 168 "/
|
1085
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1086
1086
|
{
|
1087
1087
|
MARK(keyword_end, p);
|
1088
1088
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1091,13 +1091,13 @@ _match:
|
|
1091
1091
|
}
|
1092
1092
|
break;
|
1093
1093
|
case 18:
|
1094
|
-
#line 175 "/
|
1094
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1095
1095
|
{
|
1096
1096
|
MARK(content_end, p);
|
1097
1097
|
}
|
1098
1098
|
break;
|
1099
1099
|
case 19:
|
1100
|
-
#line 179 "/
|
1100
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1101
1101
|
{
|
1102
1102
|
p = p - 1;
|
1103
1103
|
lexer->current_line = lexer->line_number;
|
@@ -1105,13 +1105,13 @@ _match:
|
|
1105
1105
|
}
|
1106
1106
|
break;
|
1107
1107
|
case 20:
|
1108
|
-
#line 185 "/
|
1108
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1109
1109
|
{
|
1110
1110
|
MARK(content_start, p);
|
1111
1111
|
}
|
1112
1112
|
break;
|
1113
1113
|
case 21:
|
1114
|
-
#line 189 "/
|
1114
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1115
1115
|
{
|
1116
1116
|
VALUE re_pipe, re_newline, re_backslash;
|
1117
1117
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1127,13 +1127,13 @@ _match:
|
|
1127
1127
|
}
|
1128
1128
|
break;
|
1129
1129
|
case 22:
|
1130
|
-
#line 203 "/
|
1130
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1131
1131
|
{
|
1132
1132
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1133
1133
|
}
|
1134
1134
|
break;
|
1135
1135
|
case 23:
|
1136
|
-
#line 207 "/
|
1136
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1137
1137
|
{
|
1138
1138
|
int line;
|
1139
1139
|
if (cs < lexer_first_final) {
|
@@ -1196,7 +1196,7 @@ _again:
|
|
1196
1196
|
while ( __nacts-- > 0 ) {
|
1197
1197
|
switch ( *__acts++ ) {
|
1198
1198
|
case 23:
|
1199
|
-
#line 207 "/
|
1199
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1200
1200
|
{
|
1201
1201
|
int line;
|
1202
1202
|
if (cs < lexer_first_final) {
|
@@ -1250,7 +1250,7 @@ _again:
|
|
1250
1250
|
_out: {}
|
1251
1251
|
}
|
1252
1252
|
|
1253
|
-
#line 426 "/
|
1253
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/cy_gb.c.rl"
|
1254
1254
|
|
1255
1255
|
assert(p <= pe && "data overflow after parsing execute");
|
1256
1256
|
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/da.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/da.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -730,7 +730,7 @@ static const int lexer_error = 0;
|
|
730
730
|
static const int lexer_en_main = 1;
|
731
731
|
|
732
732
|
|
733
|
-
#line 258 "/
|
733
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
734
734
|
|
735
735
|
static VALUE
|
736
736
|
unindent(VALUE con, int start_col)
|
@@ -903,7 +903,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
903
903
|
cs = lexer_start;
|
904
904
|
}
|
905
905
|
|
906
|
-
#line 425 "/
|
906
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
907
907
|
|
908
908
|
#line 909 "ext/gherkin_lexer_da/gherkin_lexer_da.c"
|
909
909
|
{
|
@@ -979,7 +979,7 @@ _match:
|
|
979
979
|
switch ( *_acts++ )
|
980
980
|
{
|
981
981
|
case 0:
|
982
|
-
#line 83 "/
|
982
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
983
983
|
{
|
984
984
|
MARK(content_start, p);
|
985
985
|
lexer->current_line = lexer->line_number;
|
@@ -987,20 +987,20 @@ _match:
|
|
987
987
|
}
|
988
988
|
break;
|
989
989
|
case 1:
|
990
|
-
#line 89 "/
|
990
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
991
991
|
{
|
992
992
|
MARK(content_start, p);
|
993
993
|
}
|
994
994
|
break;
|
995
995
|
case 2:
|
996
|
-
#line 93 "/
|
996
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
997
997
|
{
|
998
998
|
lexer->current_line = lexer->line_number;
|
999
999
|
lexer->start_col = p - data - lexer->last_newline;
|
1000
1000
|
}
|
1001
1001
|
break;
|
1002
1002
|
case 3:
|
1003
|
-
#line 98 "/
|
1003
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1004
1004
|
{
|
1005
1005
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1006
1006
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1012,49 +1012,49 @@ _match:
|
|
1012
1012
|
}
|
1013
1013
|
break;
|
1014
1014
|
case 4:
|
1015
|
-
#line 108 "/
|
1015
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1016
1016
|
{
|
1017
1017
|
MARK(docstring_content_type_start, p);
|
1018
1018
|
}
|
1019
1019
|
break;
|
1020
1020
|
case 5:
|
1021
|
-
#line 112 "/
|
1021
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1022
1022
|
{
|
1023
1023
|
MARK(docstring_content_type_end, p);
|
1024
1024
|
}
|
1025
1025
|
break;
|
1026
1026
|
case 6:
|
1027
|
-
#line 116 "/
|
1027
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1028
1028
|
{
|
1029
1029
|
STORE_KW_END_CON(feature);
|
1030
1030
|
}
|
1031
1031
|
break;
|
1032
1032
|
case 7:
|
1033
|
-
#line 120 "/
|
1033
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1034
1034
|
{
|
1035
1035
|
STORE_KW_END_CON(background);
|
1036
1036
|
}
|
1037
1037
|
break;
|
1038
1038
|
case 8:
|
1039
|
-
#line 124 "/
|
1039
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1040
1040
|
{
|
1041
1041
|
STORE_KW_END_CON(scenario);
|
1042
1042
|
}
|
1043
1043
|
break;
|
1044
1044
|
case 9:
|
1045
|
-
#line 128 "/
|
1045
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1046
1046
|
{
|
1047
1047
|
STORE_KW_END_CON(scenario_outline);
|
1048
1048
|
}
|
1049
1049
|
break;
|
1050
1050
|
case 10:
|
1051
|
-
#line 132 "/
|
1051
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1052
1052
|
{
|
1053
1053
|
STORE_KW_END_CON(examples);
|
1054
1054
|
}
|
1055
1055
|
break;
|
1056
1056
|
case 11:
|
1057
|
-
#line 136 "/
|
1057
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1058
1058
|
{
|
1059
1059
|
store_kw_con(listener, "step",
|
1060
1060
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1063,34 +1063,34 @@ _match:
|
|
1063
1063
|
}
|
1064
1064
|
break;
|
1065
1065
|
case 12:
|
1066
|
-
#line 143 "/
|
1066
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1067
1067
|
{
|
1068
1068
|
STORE_ATTR(comment);
|
1069
1069
|
lexer->mark = 0;
|
1070
1070
|
}
|
1071
1071
|
break;
|
1072
1072
|
case 13:
|
1073
|
-
#line 148 "/
|
1073
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1074
1074
|
{
|
1075
1075
|
STORE_ATTR(tag);
|
1076
1076
|
lexer->mark = 0;
|
1077
1077
|
}
|
1078
1078
|
break;
|
1079
1079
|
case 14:
|
1080
|
-
#line 153 "/
|
1080
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1081
1081
|
{
|
1082
1082
|
lexer->line_number += 1;
|
1083
1083
|
MARK(final_newline, p);
|
1084
1084
|
}
|
1085
1085
|
break;
|
1086
1086
|
case 15:
|
1087
|
-
#line 158 "/
|
1087
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1088
1088
|
{
|
1089
1089
|
MARK(last_newline, p + 1);
|
1090
1090
|
}
|
1091
1091
|
break;
|
1092
1092
|
case 16:
|
1093
|
-
#line 162 "/
|
1093
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1094
1094
|
{
|
1095
1095
|
if (lexer->mark == 0) {
|
1096
1096
|
MARK(mark, p);
|
@@ -1098,7 +1098,7 @@ _match:
|
|
1098
1098
|
}
|
1099
1099
|
break;
|
1100
1100
|
case 17:
|
1101
|
-
#line 168 "/
|
1101
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1102
1102
|
{
|
1103
1103
|
MARK(keyword_end, p);
|
1104
1104
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1107,13 +1107,13 @@ _match:
|
|
1107
1107
|
}
|
1108
1108
|
break;
|
1109
1109
|
case 18:
|
1110
|
-
#line 175 "/
|
1110
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1111
1111
|
{
|
1112
1112
|
MARK(content_end, p);
|
1113
1113
|
}
|
1114
1114
|
break;
|
1115
1115
|
case 19:
|
1116
|
-
#line 179 "/
|
1116
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1117
1117
|
{
|
1118
1118
|
p = p - 1;
|
1119
1119
|
lexer->current_line = lexer->line_number;
|
@@ -1121,13 +1121,13 @@ _match:
|
|
1121
1121
|
}
|
1122
1122
|
break;
|
1123
1123
|
case 20:
|
1124
|
-
#line 185 "/
|
1124
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1125
1125
|
{
|
1126
1126
|
MARK(content_start, p);
|
1127
1127
|
}
|
1128
1128
|
break;
|
1129
1129
|
case 21:
|
1130
|
-
#line 189 "/
|
1130
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1131
1131
|
{
|
1132
1132
|
VALUE re_pipe, re_newline, re_backslash;
|
1133
1133
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1143,13 +1143,13 @@ _match:
|
|
1143
1143
|
}
|
1144
1144
|
break;
|
1145
1145
|
case 22:
|
1146
|
-
#line 203 "/
|
1146
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1147
1147
|
{
|
1148
1148
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1149
1149
|
}
|
1150
1150
|
break;
|
1151
1151
|
case 23:
|
1152
|
-
#line 207 "/
|
1152
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1153
1153
|
{
|
1154
1154
|
int line;
|
1155
1155
|
if (cs < lexer_first_final) {
|
@@ -1212,7 +1212,7 @@ _again:
|
|
1212
1212
|
while ( __nacts-- > 0 ) {
|
1213
1213
|
switch ( *__acts++ ) {
|
1214
1214
|
case 23:
|
1215
|
-
#line 207 "/
|
1215
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1216
1216
|
{
|
1217
1217
|
int line;
|
1218
1218
|
if (cs < lexer_first_final) {
|
@@ -1266,7 +1266,7 @@ _again:
|
|
1266
1266
|
_out: {}
|
1267
1267
|
}
|
1268
1268
|
|
1269
|
-
#line 426 "/
|
1269
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/da.c.rl"
|
1270
1270
|
|
1271
1271
|
assert(p <= pe && "data overflow after parsing execute");
|
1272
1272
|
assert(lexer->content_start <= len && "content starts after data end");
|