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