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