gherkin 2.12.0 → 2.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.ruby-version +1 -1
- data/.travis.yml +1 -3
- data/History.md +18 -0
- data/LICENSE +1 -1
- data/README.md +22 -28
- data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +466 -466
- data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +2 -2
- data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +535 -395
- data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +2 -2
- data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +2 -2
- data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +2 -2
- data/ext/gherkin_lexer_da/gherkin_lexer_da.c +2 -2
- data/ext/gherkin_lexer_de/gherkin_lexer_de.c +296 -286
- data/ext/gherkin_lexer_el/gherkin_lexer_el.c +2 -2
- data/ext/gherkin_lexer_en/gherkin_lexer_en.c +2 -2
- data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +2 -2
- data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +2 -2
- data/ext/gherkin_lexer_en_old/gherkin_lexer_en_old.c +2 -2
- data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +2 -2
- data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +2 -2
- data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +2 -2
- data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +2 -2
- data/ext/gherkin_lexer_es/gherkin_lexer_es.c +2 -2
- data/ext/gherkin_lexer_et/gherkin_lexer_et.c +2 -2
- data/ext/gherkin_lexer_fa/gherkin_lexer_fa.c +2 -2
- data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +2 -2
- data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +2 -2
- data/ext/gherkin_lexer_gl/gherkin_lexer_gl.c +2 -2
- data/ext/gherkin_lexer_he/gherkin_lexer_he.c +2 -2
- data/ext/gherkin_lexer_hi/gherkin_lexer_hi.c +784 -685
- data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +2 -2
- data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +2 -2
- data/ext/gherkin_lexer_id/gherkin_lexer_id.c +2 -2
- data/ext/gherkin_lexer_is/gherkin_lexer_is.c +2 -2
- data/ext/gherkin_lexer_it/gherkin_lexer_it.c +2 -2
- data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +2 -2
- data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +2 -2
- data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +2 -2
- data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +2 -2
- data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +2 -2
- data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +2 -2
- data/ext/gherkin_lexer_no/gherkin_lexer_no.c +2 -2
- data/ext/gherkin_lexer_pa/extconf.rb +6 -0
- data/ext/gherkin_lexer_pa/gherkin_lexer_pa.c +2160 -0
- data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +2 -2
- data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +2 -2
- data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +2 -2
- data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2 -2
- data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +2 -2
- data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2 -2
- data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +586 -589
- data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +2 -2
- data/ext/gherkin_lexer_th/extconf.rb +6 -0
- data/ext/gherkin_lexer_th/gherkin_lexer_th.c +2840 -0
- data/ext/gherkin_lexer_tl/gherkin_lexer_tl.c +2 -2
- data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +2 -2
- data/ext/gherkin_lexer_tt/gherkin_lexer_tt.c +2 -2
- data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +2 -2
- data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +586 -594
- data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +2 -2
- data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +2 -2
- data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +2 -2
- data/features/.cucumber/stepdefs.json +66 -66
- data/gherkin.gemspec +12 -11
- data/lib/gherkin/formatter/filter_formatter.rb +1 -1
- data/lib/gherkin/i18n.json +38 -10
- data/lib/gherkin/i18n.rb +1 -1
- data/lib/gherkin/lexer/ar.rb +1167 -0
- data/lib/gherkin/lexer/bg.rb +1379 -0
- data/lib/gherkin/lexer/bm.rb +1247 -0
- data/lib/gherkin/lexer/ca.rb +1307 -0
- data/lib/gherkin/lexer/cs.rb +1243 -0
- data/lib/gherkin/lexer/cy_gb.rb +1029 -0
- data/lib/gherkin/lexer/da.rb +1045 -0
- data/lib/gherkin/lexer/de.rb +1163 -0
- data/lib/gherkin/lexer/el.rb +1677 -0
- data/lib/gherkin/lexer/en.rb +1153 -0
- data/lib/gherkin/lexer/en_au.rb +1483 -0
- data/lib/gherkin/lexer/en_lol.rb +931 -0
- data/lib/gherkin/lexer/en_old.rb +1034 -0
- data/lib/gherkin/lexer/en_pirate.rb +1207 -0
- data/lib/gherkin/lexer/en_scouse.rb +1359 -0
- data/lib/gherkin/lexer/en_tx.rb +1013 -0
- data/lib/gherkin/lexer/eo.rb +992 -0
- data/lib/gherkin/lexer/es.rb +1137 -0
- data/lib/gherkin/lexer/et.rb +987 -0
- data/lib/gherkin/lexer/fa.rb +1211 -0
- data/lib/gherkin/lexer/fi.rb +966 -0
- data/lib/gherkin/lexer/fr.rb +1225 -0
- data/lib/gherkin/lexer/gl.rb +1114 -0
- data/lib/gherkin/lexer/he.rb +1115 -0
- data/lib/gherkin/lexer/hi.rb +1556 -0
- data/lib/gherkin/lexer/hr.rb +1063 -0
- data/lib/gherkin/lexer/hu.rb +1115 -0
- data/lib/gherkin/lexer/id.rb +960 -0
- data/lib/gherkin/lexer/is.rb +1117 -0
- data/lib/gherkin/lexer/it.rb +1083 -0
- data/lib/gherkin/lexer/ja.rb +1415 -0
- data/lib/gherkin/lexer/ko.rb +1099 -0
- data/lib/gherkin/lexer/lt.rb +1042 -0
- data/lib/gherkin/lexer/lu.rb +1129 -0
- data/lib/gherkin/lexer/lv.rb +1163 -0
- data/lib/gherkin/lexer/nl.rb +1112 -0
- data/lib/gherkin/lexer/no.rb +1057 -0
- data/lib/gherkin/lexer/pa.rb +1849 -0
- data/lib/gherkin/lexer/pl.rb +1454 -0
- data/lib/gherkin/lexer/pt.rb +1427 -0
- data/lib/gherkin/lexer/ro.rb +1161 -0
- data/lib/gherkin/lexer/ru.rb +1763 -0
- data/lib/gherkin/lexer/sk.rb +1449 -0
- data/lib/gherkin/lexer/sr_cyrl.rb +1800 -0
- data/lib/gherkin/lexer/sr_latn.rb +1291 -0
- data/lib/gherkin/lexer/sv.rb +1067 -0
- data/lib/gherkin/lexer/th.rb +2489 -0
- data/lib/gherkin/lexer/tl.rb +1723 -0
- data/lib/gherkin/lexer/tr.rb +1089 -0
- data/lib/gherkin/lexer/tt.rb +1640 -0
- data/lib/gherkin/lexer/uk.rb +1643 -0
- data/lib/gherkin/lexer/uz.rb +1373 -0
- data/lib/gherkin/lexer/vi.rb +1195 -0
- data/lib/gherkin/lexer/zh_cn.rb +1055 -0
- data/lib/gherkin/lexer/zh_tw.rb +1049 -0
- data/lib/gherkin/platform.rb +2 -2
- data/spec/gherkin/formatter/json_formatter_spec.rb +4 -0
- data/spec/gherkin/formatter/pretty_formatter_spec.rb +25 -18
- data/spec/gherkin/i18n_spec.rb +2 -0
- data/tasks/gems.rake +19 -4
- data/tasks/ikvm.rake +10 -8
- data/tasks/ragel_task.rb +3 -2
- data/tasks/rspec.rake +2 -6
- metadata +295 -169
@@ -0,0 +1,1055 @@
|
|
1
|
+
|
2
|
+
# line 1 "ragel/i18n/zh_cn.rb.rl"
|
3
|
+
require 'gherkin/native'
|
4
|
+
|
5
|
+
module Gherkin
|
6
|
+
module Lexer
|
7
|
+
class Zh_cn #:nodoc:
|
8
|
+
native_impl('gherkin')
|
9
|
+
|
10
|
+
|
11
|
+
# line 125 "ragel/i18n/zh_cn.rb.rl"
|
12
|
+
|
13
|
+
|
14
|
+
def initialize(listener)
|
15
|
+
@listener = listener
|
16
|
+
|
17
|
+
# line 18 "lib/gherkin/lexer/zh_cn.rb"
|
18
|
+
class << self
|
19
|
+
attr_accessor :_lexer_actions
|
20
|
+
private :_lexer_actions, :_lexer_actions=
|
21
|
+
end
|
22
|
+
self._lexer_actions = [
|
23
|
+
0, 1, 0, 1, 1, 1, 2, 1,
|
24
|
+
3, 1, 4, 1, 5, 1, 6, 1,
|
25
|
+
7, 1, 8, 1, 9, 1, 10, 1,
|
26
|
+
11, 1, 12, 1, 13, 1, 16, 1,
|
27
|
+
17, 1, 18, 1, 19, 1, 20, 1,
|
28
|
+
21, 1, 22, 1, 23, 2, 2, 18,
|
29
|
+
2, 3, 4, 2, 13, 0, 2, 14,
|
30
|
+
15, 2, 17, 0, 2, 17, 1, 2,
|
31
|
+
17, 16, 2, 17, 19, 2, 18, 6,
|
32
|
+
2, 18, 7, 2, 18, 8, 2, 18,
|
33
|
+
9, 2, 18, 10, 2, 18, 16, 2,
|
34
|
+
20, 21, 2, 22, 0, 2, 22, 1,
|
35
|
+
2, 22, 16, 2, 22, 19, 3, 4,
|
36
|
+
14, 15, 3, 5, 14, 15, 3, 11,
|
37
|
+
14, 15, 3, 12, 14, 15, 3, 13,
|
38
|
+
14, 15, 3, 14, 15, 18, 3, 17,
|
39
|
+
0, 11, 3, 17, 14, 15, 4, 2,
|
40
|
+
14, 15, 18, 4, 3, 4, 14, 15,
|
41
|
+
4, 17, 0, 14, 15, 5, 17, 0,
|
42
|
+
11, 14, 15
|
43
|
+
]
|
44
|
+
|
45
|
+
class << self
|
46
|
+
attr_accessor :_lexer_key_offsets
|
47
|
+
private :_lexer_key_offsets, :_lexer_key_offsets=
|
48
|
+
end
|
49
|
+
self._lexer_key_offsets = [
|
50
|
+
0, 0, 15, 17, 18, 19, 20, 21,
|
51
|
+
23, 25, 39, 46, 47, 49, 51, 52,
|
52
|
+
53, 54, 55, 56, 57, 58, 59, 61,
|
53
|
+
62, 63, 64, 65, 66, 67, 68, 69,
|
54
|
+
81, 83, 85, 87, 89, 91, 105, 107,
|
55
|
+
108, 109, 110, 111, 112, 113, 114, 115,
|
56
|
+
116, 117, 118, 130, 132, 134, 136, 138,
|
57
|
+
140, 148, 150, 153, 156, 158, 160, 162,
|
58
|
+
164, 166, 168, 170, 172, 175, 177, 179,
|
59
|
+
181, 183, 185, 187, 189, 191, 193, 195,
|
60
|
+
197, 199, 201, 203, 205, 207, 209, 211,
|
61
|
+
213, 215, 217, 219, 221, 223, 225, 227,
|
62
|
+
229, 231, 233, 235, 237, 239, 241, 243,
|
63
|
+
245, 247, 249, 251, 253, 255, 257, 259,
|
64
|
+
261, 263, 265, 266, 267, 268, 269, 270,
|
65
|
+
271, 272, 274, 276, 281, 286, 291, 296,
|
66
|
+
300, 304, 306, 307, 308, 309, 310, 311,
|
67
|
+
312, 313, 314, 315, 316, 317, 318, 319,
|
68
|
+
320, 321, 322, 327, 334, 339, 343, 349,
|
69
|
+
352, 354, 360, 374, 382, 384, 387, 390,
|
70
|
+
392, 394, 396, 398, 400, 402, 404, 406,
|
71
|
+
408, 410, 412, 414, 416, 418, 420, 422,
|
72
|
+
424, 426, 428, 430, 432, 434, 436, 438,
|
73
|
+
440, 442, 444, 446, 448, 450, 452, 454,
|
74
|
+
456, 458, 460, 462, 464, 466, 468, 470,
|
75
|
+
472, 474, 476, 478, 480, 482, 484, 486,
|
76
|
+
487, 488, 500, 502, 504, 506, 508, 510,
|
77
|
+
518, 520, 523, 526, 528, 530, 532, 534,
|
78
|
+
536, 538, 540, 542, 545, 547, 549, 551,
|
79
|
+
553, 555, 557, 559, 561, 563, 565, 567,
|
80
|
+
569, 571, 573, 575, 577, 579, 581, 583,
|
81
|
+
585, 587, 589, 591, 594, 596, 598, 600,
|
82
|
+
602, 604, 606, 608, 610, 612, 614, 616,
|
83
|
+
618, 620, 622, 624, 626, 628, 630, 632,
|
84
|
+
634, 636, 638, 640, 642, 644, 645, 646,
|
85
|
+
647, 648, 649, 650, 651, 661, 663, 665,
|
86
|
+
667, 669, 671, 673, 677, 679, 681, 683,
|
87
|
+
685, 688, 690, 692, 694, 696, 698, 700,
|
88
|
+
702, 704, 706, 708, 710, 712, 714, 716,
|
89
|
+
718, 720, 722, 724, 726, 728, 730, 732,
|
90
|
+
734, 736, 738, 740, 742, 744, 746, 748,
|
91
|
+
750, 752, 753, 754, 755, 756, 757, 758,
|
92
|
+
759, 760, 761, 762, 763, 764, 765, 766,
|
93
|
+
767, 768, 769, 776, 778, 780, 782, 784,
|
94
|
+
786, 788, 789, 790
|
95
|
+
]
|
96
|
+
|
97
|
+
class << self
|
98
|
+
attr_accessor :_lexer_trans_keys
|
99
|
+
private :_lexer_trans_keys, :_lexer_trans_keys=
|
100
|
+
end
|
101
|
+
self._lexer_trans_keys = [
|
102
|
+
-28, -27, -24, -23, -17, 10, 32, 34,
|
103
|
+
35, 37, 42, 64, 124, 9, 13, -67,
|
104
|
+
-66, -122, -26, -104, -81, 10, 13, 10,
|
105
|
+
13, -28, -27, -24, -23, 10, 32, 34,
|
106
|
+
35, 37, 42, 64, 124, 9, 13, -127,
|
107
|
+
-119, -118, -112, -100, -71, -67, -121, -27,
|
108
|
+
-24, -90, -82, -126, -102, -82, -66, -89,
|
109
|
+
-26, -100, -84, -27, 58, -92, -89, -25,
|
110
|
+
-70, -78, 58, 10, 10, -28, -27, -24,
|
111
|
+
-23, 10, 32, 35, 37, 42, 64, 9,
|
112
|
+
13, -67, 10, -122, 10, -26, 10, -104,
|
113
|
+
10, -81, 10, -28, -27, -24, -23, 10,
|
114
|
+
32, 34, 35, 37, 42, 64, 124, 9,
|
115
|
+
13, -128, -125, -116, -28, -72, -108, -116,
|
116
|
+
-26, -103, -81, 58, 10, 10, -28, -27,
|
117
|
+
-24, -23, 10, 32, 35, 37, 42, 64,
|
118
|
+
9, 13, -67, 10, -122, 10, -26, 10,
|
119
|
+
-104, 10, -81, 10, -127, -119, -118, -112,
|
120
|
+
-100, -71, -67, 10, -121, 10, -27, -24,
|
121
|
+
10, -90, -82, 10, -126, 10, -102, 10,
|
122
|
+
-82, 10, -66, 10, -89, 10, -26, 10,
|
123
|
+
-100, 10, -84, 10, -27, 10, 58, -92,
|
124
|
+
10, -89, 10, -25, 10, -70, 10, -78,
|
125
|
+
10, 10, 58, -97, 10, -24, 10, -125,
|
126
|
+
10, -67, 10, -116, 10, -26, 10, -105,
|
127
|
+
10, -74, 10, -70, 10, -26, 10, -103,
|
128
|
+
10, -81, 10, -74, 10, -28, 10, -72,
|
129
|
+
10, -108, 10, -109, 10, -128, 10, -116,
|
130
|
+
10, -126, 10, -93, 10, -28, 10, -71,
|
131
|
+
10, -120, 10, 10, 95, 10, 70, 10,
|
132
|
+
69, 10, 65, 10, 84, 10, 85, 10,
|
133
|
+
82, 10, 69, 10, 95, 10, 69, 10,
|
134
|
+
78, 10, 68, 10, 95, 10, 37, 10,
|
135
|
+
32, -126, -93, -28, -71, -120, 34, 34,
|
136
|
+
10, 13, 10, 13, 10, 32, 34, 9,
|
137
|
+
13, 10, 32, 34, 9, 13, 10, 32,
|
138
|
+
34, 9, 13, 10, 32, 34, 9, 13,
|
139
|
+
10, 32, 9, 13, 10, 32, 9, 13,
|
140
|
+
10, 13, 10, 95, 70, 69, 65, 84,
|
141
|
+
85, 82, 69, 95, 69, 78, 68, 95,
|
142
|
+
37, 32, 13, 32, 64, 9, 10, 9,
|
143
|
+
10, 13, 32, 64, 11, 12, 10, 32,
|
144
|
+
64, 9, 13, 32, 124, 9, 13, 10,
|
145
|
+
32, 92, 124, 9, 13, 10, 92, 124,
|
146
|
+
10, 92, 10, 32, 92, 124, 9, 13,
|
147
|
+
-28, -27, -24, -23, 10, 32, 34, 35,
|
148
|
+
37, 42, 64, 124, 9, 13, -127, -119,
|
149
|
+
-118, -112, -100, -71, -67, 10, -121, 10,
|
150
|
+
-27, -24, 10, -90, -82, 10, -126, 10,
|
151
|
+
-102, 10, -82, 10, -66, 10, -89, 10,
|
152
|
+
-26, 10, -100, 10, -84, 10, 10, 58,
|
153
|
+
-97, 10, -24, 10, -125, 10, -67, 10,
|
154
|
+
-116, 10, -26, 10, -105, 10, -74, 10,
|
155
|
+
-70, 10, -26, 10, -103, 10, -81, 10,
|
156
|
+
-74, 10, -28, 10, -72, 10, -108, 10,
|
157
|
+
-109, 10, -128, 10, -116, 10, -126, 10,
|
158
|
+
-93, 10, -28, 10, -71, 10, -120, 10,
|
159
|
+
10, 95, 10, 70, 10, 69, 10, 65,
|
160
|
+
10, 84, 10, 85, 10, 82, 10, 69,
|
161
|
+
10, 95, 10, 69, 10, 78, 10, 68,
|
162
|
+
10, 95, 10, 37, 10, 32, 10, 10,
|
163
|
+
-28, -27, -24, -23, 10, 32, 35, 37,
|
164
|
+
42, 64, 9, 13, -67, 10, -122, 10,
|
165
|
+
-26, 10, -104, 10, -81, 10, -127, -119,
|
166
|
+
-118, -112, -100, -71, -67, 10, -121, 10,
|
167
|
+
-27, -24, 10, -90, -82, 10, -126, 10,
|
168
|
+
-102, 10, -82, 10, -66, 10, -89, 10,
|
169
|
+
-26, 10, -100, 10, -84, 10, -27, 10,
|
170
|
+
58, -92, 10, -89, 10, -25, 10, -70,
|
171
|
+
10, -78, 10, 10, 58, -97, 10, -24,
|
172
|
+
10, -125, 10, -67, 10, -116, 10, -26,
|
173
|
+
10, -105, 10, -74, 10, -70, 10, -26,
|
174
|
+
10, -103, 10, -81, 10, -74, 10, -28,
|
175
|
+
10, -72, 10, -108, 10, -109, 10, -128,
|
176
|
+
-125, 10, -116, 10, -116, 10, -26, 10,
|
177
|
+
-103, 10, -81, 10, -126, 10, -93, 10,
|
178
|
+
-28, 10, -71, 10, -120, 10, 10, 95,
|
179
|
+
10, 70, 10, 69, 10, 65, 10, 84,
|
180
|
+
10, 85, 10, 82, 10, 69, 10, 95,
|
181
|
+
10, 69, 10, 78, 10, 68, 10, 95,
|
182
|
+
10, 37, 10, 32, -97, -24, -125, -67,
|
183
|
+
58, 10, 10, -28, -27, -24, 10, 32,
|
184
|
+
35, 37, 64, 9, 13, -66, 10, -117,
|
185
|
+
10, -27, 10, -83, 10, -112, 10, 10,
|
186
|
+
58, -119, -118, -100, 10, -89, 10, -26,
|
187
|
+
10, -100, 10, -84, 10, -27, 10, 58,
|
188
|
+
-92, 10, -89, 10, -25, 10, -70, 10,
|
189
|
+
-78, 10, -97, 10, -24, 10, -125, 10,
|
190
|
+
-67, 10, -70, 10, -26, 10, -103, 10,
|
191
|
+
-81, 10, -125, 10, -116, 10, -26, 10,
|
192
|
+
-103, 10, -81, 10, 10, 95, 10, 70,
|
193
|
+
10, 69, 10, 65, 10, 84, 10, 85,
|
194
|
+
10, 82, 10, 69, 10, 95, 10, 69,
|
195
|
+
10, 78, 10, 68, 10, 95, 10, 37,
|
196
|
+
-116, -26, -105, -74, -70, -26, -103, -81,
|
197
|
+
-74, -109, -117, -27, -83, -112, 58, 10,
|
198
|
+
10, -27, 10, 32, 35, 124, 9, 13,
|
199
|
+
-118, 10, -97, 10, -24, 10, -125, 10,
|
200
|
+
-67, 10, 10, 58, -69, -65, 0
|
201
|
+
]
|
202
|
+
|
203
|
+
class << self
|
204
|
+
attr_accessor :_lexer_single_lengths
|
205
|
+
private :_lexer_single_lengths, :_lexer_single_lengths=
|
206
|
+
end
|
207
|
+
self._lexer_single_lengths = [
|
208
|
+
0, 13, 2, 1, 1, 1, 1, 2,
|
209
|
+
2, 12, 7, 1, 2, 2, 1, 1,
|
210
|
+
1, 1, 1, 1, 1, 1, 2, 1,
|
211
|
+
1, 1, 1, 1, 1, 1, 1, 10,
|
212
|
+
2, 2, 2, 2, 2, 12, 2, 1,
|
213
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
214
|
+
1, 1, 10, 2, 2, 2, 2, 2,
|
215
|
+
8, 2, 3, 3, 2, 2, 2, 2,
|
216
|
+
2, 2, 2, 2, 3, 2, 2, 2,
|
217
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
218
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
219
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
220
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
221
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
222
|
+
2, 2, 1, 1, 1, 1, 1, 1,
|
223
|
+
1, 2, 2, 3, 3, 3, 3, 2,
|
224
|
+
2, 2, 1, 1, 1, 1, 1, 1,
|
225
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
226
|
+
1, 1, 3, 5, 3, 2, 4, 3,
|
227
|
+
2, 4, 12, 8, 2, 3, 3, 2,
|
228
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
229
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
230
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
231
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
232
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
233
|
+
2, 2, 2, 2, 2, 2, 2, 1,
|
234
|
+
1, 10, 2, 2, 2, 2, 2, 8,
|
235
|
+
2, 3, 3, 2, 2, 2, 2, 2,
|
236
|
+
2, 2, 2, 3, 2, 2, 2, 2,
|
237
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
238
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
239
|
+
2, 2, 2, 3, 2, 2, 2, 2,
|
240
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
241
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
242
|
+
2, 2, 2, 2, 2, 1, 1, 1,
|
243
|
+
1, 1, 1, 1, 8, 2, 2, 2,
|
244
|
+
2, 2, 2, 4, 2, 2, 2, 2,
|
245
|
+
3, 2, 2, 2, 2, 2, 2, 2,
|
246
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
247
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
248
|
+
2, 2, 2, 2, 2, 2, 2, 2,
|
249
|
+
2, 1, 1, 1, 1, 1, 1, 1,
|
250
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
251
|
+
1, 1, 5, 2, 2, 2, 2, 2,
|
252
|
+
2, 1, 1, 0
|
253
|
+
]
|
254
|
+
|
255
|
+
class << self
|
256
|
+
attr_accessor :_lexer_range_lengths
|
257
|
+
private :_lexer_range_lengths, :_lexer_range_lengths=
|
258
|
+
end
|
259
|
+
self._lexer_range_lengths = [
|
260
|
+
0, 1, 0, 0, 0, 0, 0, 0,
|
261
|
+
0, 1, 0, 0, 0, 0, 0, 0,
|
262
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
263
|
+
0, 0, 0, 0, 0, 0, 0, 1,
|
264
|
+
0, 0, 0, 0, 0, 1, 0, 0,
|
265
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
266
|
+
0, 0, 1, 0, 0, 0, 0, 0,
|
267
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
268
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
269
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
270
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
271
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
272
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
273
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
274
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
275
|
+
0, 0, 0, 1, 1, 1, 1, 1,
|
276
|
+
1, 0, 0, 0, 0, 0, 0, 0,
|
277
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
278
|
+
0, 0, 1, 1, 1, 1, 1, 0,
|
279
|
+
0, 1, 1, 0, 0, 0, 0, 0,
|
280
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
281
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
282
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
283
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
284
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
285
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
286
|
+
0, 1, 0, 0, 0, 0, 0, 0,
|
287
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
288
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
289
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
290
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
291
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
292
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
293
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
294
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
295
|
+
0, 0, 0, 0, 1, 0, 0, 0,
|
296
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
297
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
298
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
299
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
300
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
301
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
302
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
303
|
+
0, 0, 1, 0, 0, 0, 0, 0,
|
304
|
+
0, 0, 0, 0
|
305
|
+
]
|
306
|
+
|
307
|
+
class << self
|
308
|
+
attr_accessor :_lexer_index_offsets
|
309
|
+
private :_lexer_index_offsets, :_lexer_index_offsets=
|
310
|
+
end
|
311
|
+
self._lexer_index_offsets = [
|
312
|
+
0, 0, 15, 18, 20, 22, 24, 26,
|
313
|
+
29, 32, 46, 54, 56, 59, 62, 64,
|
314
|
+
66, 68, 70, 72, 74, 76, 78, 81,
|
315
|
+
83, 85, 87, 89, 91, 93, 95, 97,
|
316
|
+
109, 112, 115, 118, 121, 124, 138, 141,
|
317
|
+
143, 145, 147, 149, 151, 153, 155, 157,
|
318
|
+
159, 161, 163, 175, 178, 181, 184, 187,
|
319
|
+
190, 199, 202, 206, 210, 213, 216, 219,
|
320
|
+
222, 225, 228, 231, 234, 238, 241, 244,
|
321
|
+
247, 250, 253, 256, 259, 262, 265, 268,
|
322
|
+
271, 274, 277, 280, 283, 286, 289, 292,
|
323
|
+
295, 298, 301, 304, 307, 310, 313, 316,
|
324
|
+
319, 322, 325, 328, 331, 334, 337, 340,
|
325
|
+
343, 346, 349, 352, 355, 358, 361, 364,
|
326
|
+
367, 370, 373, 375, 377, 379, 381, 383,
|
327
|
+
385, 387, 390, 393, 398, 403, 408, 413,
|
328
|
+
417, 421, 424, 426, 428, 430, 432, 434,
|
329
|
+
436, 438, 440, 442, 444, 446, 448, 450,
|
330
|
+
452, 454, 456, 461, 468, 473, 477, 483,
|
331
|
+
487, 490, 496, 510, 519, 522, 526, 530,
|
332
|
+
533, 536, 539, 542, 545, 548, 551, 554,
|
333
|
+
557, 560, 563, 566, 569, 572, 575, 578,
|
334
|
+
581, 584, 587, 590, 593, 596, 599, 602,
|
335
|
+
605, 608, 611, 614, 617, 620, 623, 626,
|
336
|
+
629, 632, 635, 638, 641, 644, 647, 650,
|
337
|
+
653, 656, 659, 662, 665, 668, 671, 674,
|
338
|
+
676, 678, 690, 693, 696, 699, 702, 705,
|
339
|
+
714, 717, 721, 725, 728, 731, 734, 737,
|
340
|
+
740, 743, 746, 749, 753, 756, 759, 762,
|
341
|
+
765, 768, 771, 774, 777, 780, 783, 786,
|
342
|
+
789, 792, 795, 798, 801, 804, 807, 810,
|
343
|
+
813, 816, 819, 822, 826, 829, 832, 835,
|
344
|
+
838, 841, 844, 847, 850, 853, 856, 859,
|
345
|
+
862, 865, 868, 871, 874, 877, 880, 883,
|
346
|
+
886, 889, 892, 895, 898, 901, 903, 905,
|
347
|
+
907, 909, 911, 913, 915, 925, 928, 931,
|
348
|
+
934, 937, 940, 943, 948, 951, 954, 957,
|
349
|
+
960, 964, 967, 970, 973, 976, 979, 982,
|
350
|
+
985, 988, 991, 994, 997, 1000, 1003, 1006,
|
351
|
+
1009, 1012, 1015, 1018, 1021, 1024, 1027, 1030,
|
352
|
+
1033, 1036, 1039, 1042, 1045, 1048, 1051, 1054,
|
353
|
+
1057, 1060, 1062, 1064, 1066, 1068, 1070, 1072,
|
354
|
+
1074, 1076, 1078, 1080, 1082, 1084, 1086, 1088,
|
355
|
+
1090, 1092, 1094, 1101, 1104, 1107, 1110, 1113,
|
356
|
+
1116, 1119, 1121, 1123
|
357
|
+
]
|
358
|
+
|
359
|
+
class << self
|
360
|
+
attr_accessor :_lexer_indicies
|
361
|
+
private :_lexer_indicies, :_lexer_indicies=
|
362
|
+
end
|
363
|
+
self._lexer_indicies = [
|
364
|
+
1, 2, 3, 4, 5, 7, 6, 8,
|
365
|
+
9, 10, 11, 12, 13, 6, 0, 14,
|
366
|
+
15, 0, 16, 0, 17, 0, 18, 0,
|
367
|
+
19, 0, 21, 22, 20, 24, 25, 23,
|
368
|
+
1, 2, 3, 4, 7, 6, 8, 9,
|
369
|
+
10, 11, 12, 13, 6, 0, 26, 27,
|
370
|
+
28, 29, 30, 31, 32, 0, 33, 0,
|
371
|
+
34, 35, 0, 36, 37, 0, 19, 0,
|
372
|
+
19, 0, 38, 0, 19, 0, 39, 0,
|
373
|
+
40, 0, 41, 0, 42, 0, 43, 44,
|
374
|
+
0, 45, 0, 46, 0, 47, 0, 48,
|
375
|
+
0, 49, 0, 50, 0, 52, 51, 54,
|
376
|
+
53, 55, 56, 57, 58, 54, 59, 60,
|
377
|
+
61, 62, 60, 59, 53, 63, 54, 53,
|
378
|
+
64, 54, 53, 65, 54, 53, 66, 54,
|
379
|
+
53, 67, 54, 53, 68, 69, 70, 71,
|
380
|
+
73, 72, 74, 75, 76, 77, 78, 79,
|
381
|
+
72, 0, 80, 81, 0, 82, 0, 83,
|
382
|
+
0, 84, 0, 19, 0, 85, 0, 86,
|
383
|
+
0, 87, 0, 88, 0, 89, 0, 91,
|
384
|
+
90, 93, 92, 94, 95, 96, 97, 93,
|
385
|
+
98, 99, 100, 101, 99, 98, 92, 102,
|
386
|
+
93, 92, 103, 93, 92, 104, 93, 92,
|
387
|
+
105, 93, 92, 106, 93, 92, 107, 108,
|
388
|
+
109, 110, 111, 112, 113, 93, 92, 114,
|
389
|
+
93, 92, 115, 116, 93, 92, 117, 118,
|
390
|
+
93, 92, 106, 93, 92, 106, 93, 92,
|
391
|
+
119, 93, 92, 106, 93, 92, 120, 93,
|
392
|
+
92, 121, 93, 92, 122, 93, 92, 123,
|
393
|
+
93, 92, 124, 93, 106, 92, 125, 93,
|
394
|
+
92, 126, 93, 92, 127, 93, 92, 128,
|
395
|
+
93, 92, 129, 93, 92, 93, 106, 92,
|
396
|
+
130, 93, 92, 131, 93, 92, 132, 93,
|
397
|
+
92, 129, 93, 92, 133, 93, 92, 134,
|
398
|
+
93, 92, 135, 93, 92, 106, 93, 92,
|
399
|
+
136, 93, 92, 137, 93, 92, 138, 93,
|
400
|
+
92, 123, 93, 92, 139, 93, 92, 140,
|
401
|
+
93, 92, 141, 93, 92, 106, 93, 92,
|
402
|
+
106, 93, 92, 142, 93, 92, 139, 93,
|
403
|
+
92, 143, 93, 92, 144, 93, 92, 145,
|
404
|
+
93, 92, 146, 93, 92, 106, 93, 92,
|
405
|
+
93, 147, 92, 93, 148, 92, 93, 149,
|
406
|
+
92, 93, 150, 92, 93, 151, 92, 93,
|
407
|
+
152, 92, 93, 153, 92, 93, 154, 92,
|
408
|
+
93, 155, 92, 93, 156, 92, 93, 157,
|
409
|
+
92, 93, 158, 92, 93, 159, 92, 93,
|
410
|
+
160, 92, 93, 106, 92, 161, 0, 162,
|
411
|
+
0, 163, 0, 164, 0, 19, 0, 165,
|
412
|
+
0, 166, 0, 168, 169, 167, 171, 172,
|
413
|
+
170, 175, 174, 176, 174, 173, 179, 178,
|
414
|
+
180, 178, 177, 179, 178, 181, 178, 177,
|
415
|
+
179, 178, 182, 178, 177, 184, 183, 183,
|
416
|
+
0, 7, 185, 185, 0, 187, 188, 186,
|
417
|
+
7, 0, 189, 0, 190, 0, 191, 0,
|
418
|
+
192, 0, 193, 0, 194, 0, 195, 0,
|
419
|
+
196, 0, 197, 0, 198, 0, 199, 0,
|
420
|
+
200, 0, 201, 0, 202, 0, 19, 0,
|
421
|
+
0, 0, 0, 0, 203, 204, 205, 204,
|
422
|
+
204, 207, 206, 203, 7, 208, 12, 208,
|
423
|
+
0, 209, 210, 209, 0, 213, 212, 214,
|
424
|
+
215, 212, 211, 0, 217, 218, 216, 0,
|
425
|
+
217, 216, 213, 219, 217, 218, 219, 216,
|
426
|
+
220, 221, 222, 223, 213, 224, 225, 226,
|
427
|
+
227, 228, 229, 230, 224, 0, 231, 232,
|
428
|
+
233, 234, 235, 236, 237, 54, 53, 238,
|
429
|
+
54, 53, 239, 240, 54, 53, 241, 242,
|
430
|
+
54, 53, 67, 54, 53, 67, 54, 53,
|
431
|
+
243, 54, 53, 67, 54, 53, 244, 54,
|
432
|
+
53, 245, 54, 53, 246, 54, 53, 247,
|
433
|
+
54, 53, 54, 67, 53, 248, 54, 53,
|
434
|
+
249, 54, 53, 250, 54, 53, 247, 54,
|
435
|
+
53, 251, 54, 53, 252, 54, 53, 253,
|
436
|
+
54, 53, 67, 54, 53, 254, 54, 53,
|
437
|
+
255, 54, 53, 256, 54, 53, 247, 54,
|
438
|
+
53, 257, 54, 53, 258, 54, 53, 259,
|
439
|
+
54, 53, 67, 54, 53, 67, 54, 53,
|
440
|
+
260, 54, 53, 257, 54, 53, 261, 54,
|
441
|
+
53, 262, 54, 53, 263, 54, 53, 264,
|
442
|
+
54, 53, 67, 54, 53, 54, 265, 53,
|
443
|
+
54, 266, 53, 54, 267, 53, 54, 268,
|
444
|
+
53, 54, 269, 53, 54, 270, 53, 54,
|
445
|
+
271, 53, 54, 272, 53, 54, 273, 53,
|
446
|
+
54, 274, 53, 54, 275, 53, 54, 276,
|
447
|
+
53, 54, 277, 53, 54, 278, 53, 54,
|
448
|
+
67, 53, 280, 279, 282, 281, 283, 284,
|
449
|
+
285, 286, 282, 287, 288, 289, 290, 288,
|
450
|
+
287, 281, 291, 282, 281, 292, 282, 281,
|
451
|
+
293, 282, 281, 294, 282, 281, 295, 282,
|
452
|
+
281, 296, 297, 298, 299, 300, 301, 302,
|
453
|
+
282, 281, 303, 282, 281, 304, 305, 282,
|
454
|
+
281, 306, 307, 282, 281, 295, 282, 281,
|
455
|
+
295, 282, 281, 308, 282, 281, 295, 282,
|
456
|
+
281, 309, 282, 281, 310, 282, 281, 311,
|
457
|
+
282, 281, 312, 282, 281, 313, 282, 295,
|
458
|
+
281, 314, 282, 281, 315, 282, 281, 316,
|
459
|
+
282, 281, 317, 282, 281, 318, 282, 281,
|
460
|
+
282, 295, 281, 319, 282, 281, 320, 282,
|
461
|
+
281, 321, 282, 281, 318, 282, 281, 322,
|
462
|
+
282, 281, 323, 282, 281, 324, 282, 281,
|
463
|
+
295, 282, 281, 325, 282, 281, 326, 282,
|
464
|
+
281, 327, 282, 281, 312, 282, 281, 328,
|
465
|
+
282, 281, 329, 282, 281, 330, 282, 281,
|
466
|
+
295, 282, 281, 295, 282, 281, 331, 332,
|
467
|
+
282, 281, 328, 282, 281, 333, 282, 281,
|
468
|
+
334, 282, 281, 335, 282, 281, 318, 282,
|
469
|
+
281, 336, 282, 281, 337, 282, 281, 338,
|
470
|
+
282, 281, 339, 282, 281, 295, 282, 281,
|
471
|
+
282, 340, 281, 282, 341, 281, 282, 342,
|
472
|
+
281, 282, 343, 281, 282, 344, 281, 282,
|
473
|
+
345, 281, 282, 346, 281, 282, 347, 281,
|
474
|
+
282, 348, 281, 282, 349, 281, 282, 350,
|
475
|
+
281, 282, 351, 281, 282, 352, 281, 282,
|
476
|
+
353, 281, 282, 295, 281, 354, 0, 355,
|
477
|
+
0, 356, 0, 357, 0, 358, 0, 360,
|
478
|
+
359, 362, 361, 363, 364, 365, 362, 366,
|
479
|
+
367, 368, 367, 366, 361, 369, 362, 361,
|
480
|
+
370, 362, 361, 371, 362, 361, 372, 362,
|
481
|
+
361, 373, 362, 361, 362, 374, 361, 375,
|
482
|
+
376, 377, 362, 361, 378, 362, 361, 379,
|
483
|
+
362, 361, 380, 362, 361, 381, 362, 361,
|
484
|
+
382, 362, 374, 361, 383, 362, 361, 384,
|
485
|
+
362, 361, 385, 362, 361, 386, 362, 361,
|
486
|
+
373, 362, 361, 387, 362, 361, 388, 362,
|
487
|
+
361, 389, 362, 361, 373, 362, 361, 390,
|
488
|
+
362, 361, 391, 362, 361, 392, 362, 361,
|
489
|
+
381, 362, 361, 393, 362, 361, 394, 362,
|
490
|
+
361, 395, 362, 361, 396, 362, 361, 373,
|
491
|
+
362, 361, 362, 397, 361, 362, 398, 361,
|
492
|
+
362, 399, 361, 362, 400, 361, 362, 401,
|
493
|
+
361, 362, 402, 361, 362, 403, 361, 362,
|
494
|
+
404, 361, 362, 405, 361, 362, 406, 361,
|
495
|
+
362, 407, 361, 362, 408, 361, 362, 409,
|
496
|
+
361, 362, 410, 361, 411, 0, 412, 0,
|
497
|
+
413, 0, 19, 0, 414, 0, 415, 0,
|
498
|
+
416, 0, 42, 0, 82, 0, 19, 0,
|
499
|
+
417, 0, 418, 0, 419, 0, 420, 0,
|
500
|
+
421, 0, 423, 422, 425, 424, 426, 425,
|
501
|
+
427, 428, 428, 427, 424, 429, 425, 424,
|
502
|
+
430, 425, 424, 431, 425, 424, 432, 425,
|
503
|
+
424, 433, 425, 424, 425, 434, 424, 435,
|
504
|
+
0, 6, 0, 436, 0
|
505
|
+
]
|
506
|
+
|
507
|
+
class << self
|
508
|
+
attr_accessor :_lexer_trans_targs
|
509
|
+
private :_lexer_trans_targs, :_lexer_trans_targs=
|
510
|
+
end
|
511
|
+
self._lexer_trans_targs = [
|
512
|
+
0, 2, 10, 38, 114, 353, 9, 9,
|
513
|
+
119, 129, 131, 145, 146, 149, 3, 339,
|
514
|
+
4, 5, 6, 7, 8, 9, 130, 8,
|
515
|
+
9, 130, 11, 18, 277, 329, 333, 337,
|
516
|
+
338, 12, 13, 16, 14, 15, 17, 19,
|
517
|
+
20, 21, 22, 23, 207, 24, 25, 26,
|
518
|
+
27, 28, 29, 30, 31, 30, 31, 32,
|
519
|
+
155, 185, 187, 31, 9, 192, 206, 33,
|
520
|
+
34, 35, 36, 37, 2, 10, 38, 114,
|
521
|
+
9, 9, 119, 129, 131, 145, 146, 149,
|
522
|
+
39, 43, 40, 41, 42, 44, 45, 46,
|
523
|
+
47, 48, 49, 50, 49, 50, 51, 56,
|
524
|
+
92, 94, 50, 9, 99, 113, 52, 53,
|
525
|
+
54, 55, 37, 57, 64, 75, 79, 83,
|
526
|
+
87, 91, 58, 59, 62, 60, 61, 63,
|
527
|
+
65, 66, 67, 68, 69, 70, 71, 72,
|
528
|
+
73, 74, 76, 77, 78, 80, 81, 82,
|
529
|
+
84, 85, 86, 88, 89, 90, 93, 95,
|
530
|
+
96, 97, 98, 100, 101, 102, 103, 104,
|
531
|
+
105, 106, 107, 108, 109, 110, 111, 112,
|
532
|
+
9, 115, 116, 117, 118, 120, 121, 122,
|
533
|
+
123, 122, 122, 123, 122, 124, 124, 124,
|
534
|
+
125, 124, 124, 124, 125, 126, 127, 128,
|
535
|
+
9, 128, 129, 9, 130, 132, 133, 134,
|
536
|
+
135, 136, 137, 138, 139, 140, 141, 142,
|
537
|
+
143, 144, 355, 147, 148, 9, 147, 146,
|
538
|
+
148, 149, 150, 151, 153, 154, 152, 150,
|
539
|
+
151, 152, 150, 153, 2, 10, 38, 114,
|
540
|
+
154, 119, 129, 131, 145, 146, 149, 156,
|
541
|
+
163, 168, 172, 176, 180, 184, 157, 158,
|
542
|
+
161, 159, 160, 162, 164, 165, 166, 167,
|
543
|
+
169, 170, 171, 173, 174, 175, 177, 178,
|
544
|
+
179, 181, 182, 183, 186, 188, 189, 190,
|
545
|
+
191, 193, 194, 195, 196, 197, 198, 199,
|
546
|
+
200, 201, 202, 203, 204, 205, 9, 208,
|
547
|
+
209, 208, 209, 210, 215, 251, 257, 209,
|
548
|
+
9, 262, 276, 211, 212, 213, 214, 37,
|
549
|
+
216, 223, 234, 238, 242, 246, 250, 217,
|
550
|
+
218, 221, 219, 220, 222, 224, 225, 226,
|
551
|
+
227, 228, 229, 230, 231, 232, 233, 235,
|
552
|
+
236, 237, 239, 240, 241, 243, 244, 245,
|
553
|
+
247, 248, 249, 252, 253, 254, 255, 256,
|
554
|
+
258, 259, 260, 261, 263, 264, 265, 266,
|
555
|
+
267, 268, 269, 270, 271, 272, 273, 274,
|
556
|
+
275, 9, 278, 279, 280, 281, 282, 283,
|
557
|
+
284, 283, 284, 285, 291, 310, 284, 9,
|
558
|
+
315, 286, 287, 288, 289, 290, 37, 292,
|
559
|
+
302, 306, 293, 294, 295, 296, 297, 298,
|
560
|
+
299, 300, 301, 303, 304, 305, 307, 308,
|
561
|
+
309, 311, 312, 313, 314, 316, 317, 318,
|
562
|
+
319, 320, 321, 322, 323, 324, 325, 326,
|
563
|
+
327, 328, 9, 330, 331, 332, 334, 335,
|
564
|
+
336, 340, 341, 342, 343, 344, 345, 346,
|
565
|
+
345, 346, 347, 346, 9, 348, 349, 350,
|
566
|
+
351, 352, 37, 354, 0
|
567
|
+
]
|
568
|
+
|
569
|
+
class << self
|
570
|
+
attr_accessor :_lexer_trans_actions
|
571
|
+
private :_lexer_trans_actions, :_lexer_trans_actions=
|
572
|
+
end
|
573
|
+
self._lexer_trans_actions = [
|
574
|
+
43, 29, 29, 29, 29, 0, 0, 54,
|
575
|
+
3, 1, 0, 29, 1, 35, 0, 0,
|
576
|
+
0, 0, 0, 0, 57, 149, 126, 0,
|
577
|
+
110, 23, 0, 0, 0, 0, 0, 0,
|
578
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
579
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
580
|
+
0, 0, 0, 57, 144, 0, 54, 84,
|
581
|
+
84, 84, 84, 0, 78, 33, 84, 0,
|
582
|
+
0, 0, 0, 19, 63, 63, 63, 63,
|
583
|
+
31, 130, 60, 57, 31, 63, 57, 66,
|
584
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
585
|
+
0, 0, 57, 144, 0, 54, 84, 84,
|
586
|
+
84, 84, 0, 72, 33, 84, 0, 0,
|
587
|
+
0, 0, 15, 0, 0, 0, 0, 0,
|
588
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
589
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
590
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
591
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
592
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
593
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
594
|
+
15, 0, 0, 0, 0, 0, 0, 7,
|
595
|
+
139, 48, 0, 102, 9, 5, 45, 134,
|
596
|
+
45, 0, 33, 122, 33, 33, 0, 11,
|
597
|
+
106, 0, 0, 114, 25, 0, 0, 0,
|
598
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
599
|
+
0, 0, 0, 0, 27, 118, 27, 51,
|
600
|
+
0, 0, 0, 37, 37, 54, 37, 87,
|
601
|
+
0, 0, 39, 0, 96, 96, 96, 96,
|
602
|
+
0, 93, 90, 41, 96, 90, 99, 0,
|
603
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
604
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
605
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
606
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
607
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
608
|
+
0, 0, 0, 0, 0, 0, 19, 57,
|
609
|
+
144, 0, 54, 84, 84, 84, 84, 0,
|
610
|
+
75, 33, 84, 0, 0, 0, 0, 17,
|
611
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
612
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
613
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
614
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
615
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
616
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
617
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
618
|
+
0, 17, 0, 0, 0, 0, 0, 57,
|
619
|
+
144, 0, 54, 84, 84, 84, 0, 69,
|
620
|
+
33, 0, 0, 0, 0, 0, 13, 0,
|
621
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
622
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
623
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
624
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
625
|
+
0, 0, 13, 0, 0, 0, 0, 0,
|
626
|
+
0, 0, 0, 0, 0, 0, 57, 144,
|
627
|
+
0, 54, 84, 0, 81, 0, 0, 0,
|
628
|
+
0, 0, 21, 0, 0
|
629
|
+
]
|
630
|
+
|
631
|
+
class << self
|
632
|
+
attr_accessor :_lexer_eof_actions
|
633
|
+
private :_lexer_eof_actions, :_lexer_eof_actions=
|
634
|
+
end
|
635
|
+
self._lexer_eof_actions = [
|
636
|
+
0, 43, 43, 43, 43, 43, 43, 43,
|
637
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
638
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
639
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
640
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
641
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
642
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
643
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
644
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
645
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
646
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
647
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
648
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
649
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
650
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
651
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
652
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
653
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
654
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
655
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
656
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
657
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
658
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
659
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
660
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
661
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
662
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
663
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
664
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
665
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
666
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
667
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
668
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
669
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
670
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
671
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
672
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
673
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
674
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
675
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
676
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
677
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
678
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
679
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
680
|
+
43, 43, 43, 43
|
681
|
+
]
|
682
|
+
|
683
|
+
class << self
|
684
|
+
attr_accessor :lexer_start
|
685
|
+
end
|
686
|
+
self.lexer_start = 1;
|
687
|
+
class << self
|
688
|
+
attr_accessor :lexer_first_final
|
689
|
+
end
|
690
|
+
self.lexer_first_final = 355;
|
691
|
+
class << self
|
692
|
+
attr_accessor :lexer_error
|
693
|
+
end
|
694
|
+
self.lexer_error = 0;
|
695
|
+
|
696
|
+
class << self
|
697
|
+
attr_accessor :lexer_en_main
|
698
|
+
end
|
699
|
+
self.lexer_en_main = 1;
|
700
|
+
|
701
|
+
|
702
|
+
# line 130 "ragel/i18n/zh_cn.rb.rl"
|
703
|
+
end
|
704
|
+
|
705
|
+
def scan(data)
|
706
|
+
data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
|
707
|
+
eof = pe = data.length
|
708
|
+
|
709
|
+
@line_number = 1
|
710
|
+
@last_newline = 0
|
711
|
+
|
712
|
+
|
713
|
+
# line 714 "lib/gherkin/lexer/zh_cn.rb"
|
714
|
+
begin
|
715
|
+
p ||= 0
|
716
|
+
pe ||= data.length
|
717
|
+
cs = lexer_start
|
718
|
+
end
|
719
|
+
|
720
|
+
# line 140 "ragel/i18n/zh_cn.rb.rl"
|
721
|
+
|
722
|
+
# line 723 "lib/gherkin/lexer/zh_cn.rb"
|
723
|
+
begin
|
724
|
+
_klen, _trans, _keys, _acts, _nacts = nil
|
725
|
+
_goto_level = 0
|
726
|
+
_resume = 10
|
727
|
+
_eof_trans = 15
|
728
|
+
_again = 20
|
729
|
+
_test_eof = 30
|
730
|
+
_out = 40
|
731
|
+
while true
|
732
|
+
_trigger_goto = false
|
733
|
+
if _goto_level <= 0
|
734
|
+
if p == pe
|
735
|
+
_goto_level = _test_eof
|
736
|
+
next
|
737
|
+
end
|
738
|
+
if cs == 0
|
739
|
+
_goto_level = _out
|
740
|
+
next
|
741
|
+
end
|
742
|
+
end
|
743
|
+
if _goto_level <= _resume
|
744
|
+
_keys = _lexer_key_offsets[cs]
|
745
|
+
_trans = _lexer_index_offsets[cs]
|
746
|
+
_klen = _lexer_single_lengths[cs]
|
747
|
+
_break_match = false
|
748
|
+
|
749
|
+
begin
|
750
|
+
if _klen > 0
|
751
|
+
_lower = _keys
|
752
|
+
_upper = _keys + _klen - 1
|
753
|
+
|
754
|
+
loop do
|
755
|
+
break if _upper < _lower
|
756
|
+
_mid = _lower + ( (_upper - _lower) >> 1 )
|
757
|
+
|
758
|
+
if data[p].ord < _lexer_trans_keys[_mid]
|
759
|
+
_upper = _mid - 1
|
760
|
+
elsif data[p].ord > _lexer_trans_keys[_mid]
|
761
|
+
_lower = _mid + 1
|
762
|
+
else
|
763
|
+
_trans += (_mid - _keys)
|
764
|
+
_break_match = true
|
765
|
+
break
|
766
|
+
end
|
767
|
+
end # loop
|
768
|
+
break if _break_match
|
769
|
+
_keys += _klen
|
770
|
+
_trans += _klen
|
771
|
+
end
|
772
|
+
_klen = _lexer_range_lengths[cs]
|
773
|
+
if _klen > 0
|
774
|
+
_lower = _keys
|
775
|
+
_upper = _keys + (_klen << 1) - 2
|
776
|
+
loop do
|
777
|
+
break if _upper < _lower
|
778
|
+
_mid = _lower + (((_upper-_lower) >> 1) & ~1)
|
779
|
+
if data[p].ord < _lexer_trans_keys[_mid]
|
780
|
+
_upper = _mid - 2
|
781
|
+
elsif data[p].ord > _lexer_trans_keys[_mid+1]
|
782
|
+
_lower = _mid + 2
|
783
|
+
else
|
784
|
+
_trans += ((_mid - _keys) >> 1)
|
785
|
+
_break_match = true
|
786
|
+
break
|
787
|
+
end
|
788
|
+
end # loop
|
789
|
+
break if _break_match
|
790
|
+
_trans += _klen
|
791
|
+
end
|
792
|
+
end while false
|
793
|
+
_trans = _lexer_indicies[_trans]
|
794
|
+
cs = _lexer_trans_targs[_trans]
|
795
|
+
if _lexer_trans_actions[_trans] != 0
|
796
|
+
_acts = _lexer_trans_actions[_trans]
|
797
|
+
_nacts = _lexer_actions[_acts]
|
798
|
+
_acts += 1
|
799
|
+
while _nacts > 0
|
800
|
+
_nacts -= 1
|
801
|
+
_acts += 1
|
802
|
+
case _lexer_actions[_acts - 1]
|
803
|
+
when 0 then
|
804
|
+
# line 11 "ragel/i18n/zh_cn.rb.rl"
|
805
|
+
begin
|
806
|
+
|
807
|
+
@content_start = p
|
808
|
+
@current_line = @line_number
|
809
|
+
@start_col = p - @last_newline - "#{@keyword}:".length
|
810
|
+
end
|
811
|
+
when 1 then
|
812
|
+
# line 17 "ragel/i18n/zh_cn.rb.rl"
|
813
|
+
begin
|
814
|
+
|
815
|
+
@current_line = @line_number
|
816
|
+
@start_col = p - @last_newline
|
817
|
+
end
|
818
|
+
when 2 then
|
819
|
+
# line 22 "ragel/i18n/zh_cn.rb.rl"
|
820
|
+
begin
|
821
|
+
|
822
|
+
@content_start = p
|
823
|
+
end
|
824
|
+
when 3 then
|
825
|
+
# line 26 "ragel/i18n/zh_cn.rb.rl"
|
826
|
+
begin
|
827
|
+
|
828
|
+
@docstring_content_type_start = p
|
829
|
+
end
|
830
|
+
when 4 then
|
831
|
+
# line 29 "ragel/i18n/zh_cn.rb.rl"
|
832
|
+
begin
|
833
|
+
|
834
|
+
@docstring_content_type_end = p
|
835
|
+
end
|
836
|
+
when 5 then
|
837
|
+
# line 33 "ragel/i18n/zh_cn.rb.rl"
|
838
|
+
begin
|
839
|
+
|
840
|
+
con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
|
841
|
+
con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
|
842
|
+
@listener.doc_string(con_type, con, @current_line)
|
843
|
+
end
|
844
|
+
when 6 then
|
845
|
+
# line 38 "ragel/i18n/zh_cn.rb.rl"
|
846
|
+
begin
|
847
|
+
|
848
|
+
p = store_keyword_content(:feature, data, p, eof)
|
849
|
+
end
|
850
|
+
when 7 then
|
851
|
+
# line 42 "ragel/i18n/zh_cn.rb.rl"
|
852
|
+
begin
|
853
|
+
|
854
|
+
p = store_keyword_content(:background, data, p, eof)
|
855
|
+
end
|
856
|
+
when 8 then
|
857
|
+
# line 46 "ragel/i18n/zh_cn.rb.rl"
|
858
|
+
begin
|
859
|
+
|
860
|
+
p = store_keyword_content(:scenario, data, p, eof)
|
861
|
+
end
|
862
|
+
when 9 then
|
863
|
+
# line 50 "ragel/i18n/zh_cn.rb.rl"
|
864
|
+
begin
|
865
|
+
|
866
|
+
p = store_keyword_content(:scenario_outline, data, p, eof)
|
867
|
+
end
|
868
|
+
when 10 then
|
869
|
+
# line 54 "ragel/i18n/zh_cn.rb.rl"
|
870
|
+
begin
|
871
|
+
|
872
|
+
p = store_keyword_content(:examples, data, p, eof)
|
873
|
+
end
|
874
|
+
when 11 then
|
875
|
+
# line 58 "ragel/i18n/zh_cn.rb.rl"
|
876
|
+
begin
|
877
|
+
|
878
|
+
con = utf8_pack(data[@content_start...p]).strip
|
879
|
+
@listener.step(@keyword, con, @current_line)
|
880
|
+
end
|
881
|
+
when 12 then
|
882
|
+
# line 63 "ragel/i18n/zh_cn.rb.rl"
|
883
|
+
begin
|
884
|
+
|
885
|
+
con = utf8_pack(data[@content_start...p]).strip
|
886
|
+
@listener.comment(con, @line_number)
|
887
|
+
@keyword_start = nil
|
888
|
+
end
|
889
|
+
when 13 then
|
890
|
+
# line 69 "ragel/i18n/zh_cn.rb.rl"
|
891
|
+
begin
|
892
|
+
|
893
|
+
con = utf8_pack(data[@content_start...p]).strip
|
894
|
+
@listener.tag(con, @current_line)
|
895
|
+
@keyword_start = nil
|
896
|
+
end
|
897
|
+
when 14 then
|
898
|
+
# line 75 "ragel/i18n/zh_cn.rb.rl"
|
899
|
+
begin
|
900
|
+
|
901
|
+
@line_number += 1
|
902
|
+
end
|
903
|
+
when 15 then
|
904
|
+
# line 79 "ragel/i18n/zh_cn.rb.rl"
|
905
|
+
begin
|
906
|
+
|
907
|
+
@last_newline = p + 1
|
908
|
+
end
|
909
|
+
when 16 then
|
910
|
+
# line 83 "ragel/i18n/zh_cn.rb.rl"
|
911
|
+
begin
|
912
|
+
|
913
|
+
@keyword_start ||= p
|
914
|
+
end
|
915
|
+
when 17 then
|
916
|
+
# line 87 "ragel/i18n/zh_cn.rb.rl"
|
917
|
+
begin
|
918
|
+
|
919
|
+
@keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
|
920
|
+
@keyword_start = nil
|
921
|
+
end
|
922
|
+
when 18 then
|
923
|
+
# line 92 "ragel/i18n/zh_cn.rb.rl"
|
924
|
+
begin
|
925
|
+
|
926
|
+
@next_keyword_start = p
|
927
|
+
end
|
928
|
+
when 19 then
|
929
|
+
# line 96 "ragel/i18n/zh_cn.rb.rl"
|
930
|
+
begin
|
931
|
+
|
932
|
+
p = p - 1
|
933
|
+
current_row = []
|
934
|
+
@current_line = @line_number
|
935
|
+
end
|
936
|
+
when 20 then
|
937
|
+
# line 102 "ragel/i18n/zh_cn.rb.rl"
|
938
|
+
begin
|
939
|
+
|
940
|
+
@content_start = p
|
941
|
+
end
|
942
|
+
when 21 then
|
943
|
+
# line 106 "ragel/i18n/zh_cn.rb.rl"
|
944
|
+
begin
|
945
|
+
|
946
|
+
con = utf8_pack(data[@content_start...p]).strip
|
947
|
+
current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
|
948
|
+
end
|
949
|
+
when 22 then
|
950
|
+
# line 111 "ragel/i18n/zh_cn.rb.rl"
|
951
|
+
begin
|
952
|
+
|
953
|
+
@listener.row(current_row, @current_line)
|
954
|
+
end
|
955
|
+
when 23 then
|
956
|
+
# line 115 "ragel/i18n/zh_cn.rb.rl"
|
957
|
+
begin
|
958
|
+
|
959
|
+
if cs < lexer_first_final
|
960
|
+
content = current_line_content(data, p)
|
961
|
+
raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
|
962
|
+
else
|
963
|
+
@listener.eof
|
964
|
+
end
|
965
|
+
end
|
966
|
+
# line 967 "lib/gherkin/lexer/zh_cn.rb"
|
967
|
+
end # action switch
|
968
|
+
end
|
969
|
+
end
|
970
|
+
if _trigger_goto
|
971
|
+
next
|
972
|
+
end
|
973
|
+
end
|
974
|
+
if _goto_level <= _again
|
975
|
+
if cs == 0
|
976
|
+
_goto_level = _out
|
977
|
+
next
|
978
|
+
end
|
979
|
+
p += 1
|
980
|
+
if p != pe
|
981
|
+
_goto_level = _resume
|
982
|
+
next
|
983
|
+
end
|
984
|
+
end
|
985
|
+
if _goto_level <= _test_eof
|
986
|
+
if p == eof
|
987
|
+
__acts = _lexer_eof_actions[cs]
|
988
|
+
__nacts = _lexer_actions[__acts]
|
989
|
+
__acts += 1
|
990
|
+
while __nacts > 0
|
991
|
+
__nacts -= 1
|
992
|
+
__acts += 1
|
993
|
+
case _lexer_actions[__acts - 1]
|
994
|
+
when 23 then
|
995
|
+
# line 115 "ragel/i18n/zh_cn.rb.rl"
|
996
|
+
begin
|
997
|
+
|
998
|
+
if cs < lexer_first_final
|
999
|
+
content = current_line_content(data, p)
|
1000
|
+
raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
|
1001
|
+
else
|
1002
|
+
@listener.eof
|
1003
|
+
end
|
1004
|
+
end
|
1005
|
+
# line 1006 "lib/gherkin/lexer/zh_cn.rb"
|
1006
|
+
end # eof action switch
|
1007
|
+
end
|
1008
|
+
if _trigger_goto
|
1009
|
+
next
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
if _goto_level <= _out
|
1014
|
+
break
|
1015
|
+
end
|
1016
|
+
end
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# line 141 "ragel/i18n/zh_cn.rb.rl"
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
def unindent(startcol, text)
|
1023
|
+
text.gsub(/^[\t ]{0,#{startcol}}/, "")
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
def store_keyword_content(event, data, p, eof)
|
1027
|
+
end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
|
1028
|
+
content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
|
1029
|
+
content_lines = content.split("\n")
|
1030
|
+
name = content_lines.shift || ""
|
1031
|
+
name.strip!
|
1032
|
+
description = content_lines.join("\n")
|
1033
|
+
@listener.__send__(event, @keyword, name, description, @current_line)
|
1034
|
+
@next_keyword_start ? @next_keyword_start - 1 : p
|
1035
|
+
ensure
|
1036
|
+
@next_keyword_start = nil
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
def current_line_content(data, p)
|
1040
|
+
rest = data[@last_newline..-1]
|
1041
|
+
utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
if (RUBY_VERSION =~ /^1\.9|2\.0/)
|
1045
|
+
def utf8_pack(array)
|
1046
|
+
array.pack("c*").force_encoding("UTF-8")
|
1047
|
+
end
|
1048
|
+
else
|
1049
|
+
def utf8_pack(array)
|
1050
|
+
array.pack("c*")
|
1051
|
+
end
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
end
|