gherkin 2.12.0 → 2.12.1

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