gherkin 2.12.0 → 2.12.1

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