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