gherkin 2.4.18 → 2.4.20

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