gherkin 2.4.18 → 2.4.20

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