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