# line 1 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" module Gherkin module RbLexer class Vi #:nodoc: # line 123 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" def initialize(listener) @listener = listener # line 14 "lib/gherkin/rb_lexer/vi.rb" class << self attr_accessor :_lexer_actions private :_lexer_actions, :_lexer_actions= end self._lexer_actions = [ 0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 9, 1, 10, 1, 11, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1, 21, 2, 2, 16, 2, 11, 0, 2, 12, 13, 2, 15, 0, 2, 15, 1, 2, 15, 14, 2, 15, 17, 2, 16, 4, 2, 16, 5, 2, 16, 6, 2, 16, 7, 2, 16, 8, 2, 16, 14, 2, 18, 19, 2, 20, 0, 2, 20, 1, 2, 20, 14, 2, 20, 17, 3, 3, 12, 13, 3, 9, 12, 13, 3, 10, 12, 13, 3, 11, 12, 13, 3, 12, 13, 16, 3, 15, 12, 13, 4, 2, 12, 13, 16, 4, 15, 0, 12, 13 ] class << self attr_accessor :_lexer_key_offsets private :_lexer_key_offsets, :_lexer_key_offsets= end self._lexer_key_offsets = [ 0, 0, 18, 19, 20, 37, 38, 39, 43, 48, 53, 58, 63, 68, 72, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97, 102, 109, 114, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 210, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 311, 313, 315, 317, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 359, 361, 363, 365, 367, 369, 370, 371, 372, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 402, 404, 406, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 486, 488, 490, 492, 494, 496, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 535, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 623, 625, 627, 629, 631, 633, 635, 637, 639, 641, 643, 645, 647, 649, 651, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 674, 676, 678, 680, 681, 682, 683, 684, 688, 694, 696, 697, 703, 720, 722, 724, 726, 728, 730, 732, 734, 737, 739, 741, 743, 745, 747, 749, 751, 753, 755, 757, 759, 762, 764, 766, 768, 771, 773, 775, 777, 779, 781, 783, 785, 787, 789, 791, 793, 795, 797, 799, 801, 803, 805, 807, 810, 812, 814, 816, 818, 819, 820, 821, 822 ] class << self attr_accessor :_lexer_trans_keys private :_lexer_trans_keys, :_lexer_trans_keys= end self._lexer_trans_keys = [ -17, 10, 32, 34, 35, 37, 42, 64, 66, 67, 68, 75, 78, 84, 86, 124, 9, 13, -69, -65, 10, 32, 34, 35, 37, 42, 64, 66, 67, 68, 75, 78, 84, 86, 124, 9, 13, 34, 34, 10, 32, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 9, 13, 10, 32, 9, 13, 10, 13, 10, 95, 70, 69, 65, 84, 85, 82, 69, 95, 69, 78, 68, 95, 37, 32, 10, 10, 13, 13, 32, 64, 9, 10, 9, 10, 13, 32, 64, 11, 12, 10, 32, 64, 9, 13, -31, 105, -69, -111, 105, 32, 99, -31, -70, -93, 110, 104, 58, 10, 10, 10, 32, 35, 37, 42, 64, 66, 67, 75, 78, 84, 86, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 32, 34, 35, 37, 42, 64, 66, 67, 68, 75, 78, 84, 86, 124, 9, 13, 104, 111, -31, -69, -81, 32, 108, 105, -31, -69, -121, 117, 58, 10, 10, 10, 32, 124, 9, 13, -31, 104, -69, -117, 99, 104, 32, 98, -31, -70, -93, 110, 58, 10, 10, 10, 32, 35, 37, 42, 64, 66, 67, 75, 78, 84, 86, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 105, -31, 10, -70, 10, -65, 10, 10, 116, 10, 104, 10, 111, -31, 10, 104, -69, 10, -117, 10, 10, 99, 10, 104, 10, 32, 10, 98, -31, 10, -70, 10, -93, 10, 10, 110, 10, 58, 10, 105, 117, 10, 110, 10, 103, 10, 32, 10, 107, 116, -31, 10, -61, 10, -84, 10, 10, 110, 10, 104, 10, 32, 10, 104, 10, 117, -31, 10, -69, 10, -111, 10, 10, 110, 10, 103, 10, 104, -58, 10, -80, 10, 10, 110, 10, 103, -61, 10, 104, -61, 10, -84, 10, -61, 10, -96, 10, 105, 117, 110, 103, 32, 107, 116, -31, -69, -117, 99, 104, 32, 98, -31, -70, -93, 110, 58, 10, 10, 10, 32, 35, 37, 42, 64, 66, 67, 75, 78, 84, 86, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 105, -31, 10, -70, 10, -65, 10, 10, 116, 10, 104, 10, 111, -31, 10, 104, -69, 10, -117, 10, 10, 99, 10, 104, 10, 32, 10, 98, -31, 10, -70, 10, -93, 10, 10, 110, 10, 58, 10, 105, 10, 104, -58, 10, -80, 10, 10, 110, 10, 103, -61, 10, 104, -84, 10, 10, 110, 10, 104, 10, 32, 10, 104, 10, 117, -31, 10, -69, 10, -111, 10, 10, 110, 10, 103, -61, 10, -84, 10, -61, 10, -96, 10, -61, -84, 110, 104, 32, 104, 117, -31, -69, -111, 110, 103, 104, -58, -80, 110, 103, -61, 104, -84, -83, 110, 104, 32, 104, 117, -31, -69, -111, 110, 103, 110, 104, 32, 110, -60, -125, 110, 103, 58, 10, 10, 10, 32, 35, 37, 64, 66, 75, 84, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, -31, 10, -69, 10, -111, 10, 10, 105, 10, 32, 10, 99, -31, 10, -70, 10, -93, 10, 10, 110, 10, 104, 10, 58, -31, 10, 104, -69, 10, -117, 10, 10, 99, 10, 104, 10, 32, 10, 98, -31, 10, -70, 10, -93, 10, 10, 110, 10, 117, 10, 110, 10, 103, 10, 32, 10, 107, 116, -31, 10, -61, 10, -84, 10, 10, 110, 10, 104, 10, 32, 10, 104, 10, 117, -31, 10, -69, 10, -111, 10, 10, 110, 10, 103, -61, -84, -61, -96, 32, 124, 9, 13, 10, 32, 92, 124, 9, 13, 92, 124, 92, 10, 32, 92, 124, 9, 13, 10, 32, 34, 35, 37, 42, 64, 66, 67, 68, 75, 78, 84, 86, 124, 9, 13, 10, 105, -31, 10, -70, 10, -65, 10, 10, 116, 10, 104, 10, 111, -31, 10, 104, -69, 10, -117, 10, 10, 99, 10, 104, 10, 32, 10, 98, -31, 10, -70, 10, -93, 10, 10, 110, 10, 58, 10, 105, 117, 10, 110, 10, 103, 10, 32, 10, 107, 116, -31, 10, -61, 10, -84, 10, 10, 110, 10, 104, 10, 32, 10, 104, 10, 117, -31, 10, -69, 10, -111, 10, 10, 110, 10, 103, 10, 104, -58, 10, -80, 10, 10, 110, 10, 103, -61, 10, 104, -61, 10, -84, 10, -61, 10, -96, 10, -31, -70, -65, 116, 0 ] class << self attr_accessor :_lexer_single_lengths private :_lexer_single_lengths, :_lexer_single_lengths= end self._lexer_single_lengths = [ 0, 16, 1, 1, 15, 1, 1, 2, 3, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 5, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 4, 2, 1, 4, 15, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0 ] class << self attr_accessor :_lexer_range_lengths private :_lexer_range_lengths, :_lexer_range_lengths= end self._lexer_range_lengths = [ 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] class << self attr_accessor :_lexer_index_offsets private :_lexer_index_offsets, :_lexer_index_offsets= end self._lexer_index_offsets = [ 0, 0, 18, 20, 22, 39, 41, 43, 47, 52, 57, 62, 67, 72, 76, 80, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 120, 125, 132, 137, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 180, 183, 186, 189, 192, 195, 198, 201, 204, 207, 210, 213, 216, 219, 222, 225, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 277, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 320, 323, 326, 329, 332, 335, 338, 341, 344, 347, 350, 353, 356, 359, 362, 365, 368, 371, 374, 377, 380, 383, 386, 390, 393, 396, 399, 402, 405, 408, 411, 414, 417, 420, 423, 427, 430, 433, 436, 440, 443, 446, 449, 452, 455, 458, 461, 464, 467, 470, 473, 476, 479, 482, 485, 488, 491, 494, 498, 501, 504, 507, 510, 513, 515, 517, 519, 522, 524, 526, 528, 530, 532, 534, 536, 538, 540, 542, 544, 546, 548, 550, 564, 567, 570, 573, 576, 579, 582, 585, 588, 591, 594, 597, 600, 603, 606, 609, 612, 615, 618, 621, 624, 627, 630, 634, 637, 640, 643, 646, 649, 652, 655, 658, 661, 664, 667, 670, 673, 676, 679, 682, 685, 689, 692, 695, 698, 701, 704, 707, 710, 713, 716, 719, 722, 725, 728, 731, 734, 736, 738, 740, 742, 744, 746, 748, 750, 752, 754, 756, 758, 760, 762, 764, 766, 768, 771, 774, 776, 778, 780, 782, 784, 786, 788, 790, 792, 794, 796, 798, 800, 802, 804, 806, 808, 810, 812, 814, 816, 826, 829, 832, 835, 838, 841, 844, 847, 850, 853, 856, 859, 862, 865, 868, 871, 874, 877, 880, 883, 886, 889, 892, 895, 898, 901, 904, 908, 911, 914, 917, 920, 923, 926, 929, 932, 935, 938, 941, 944, 947, 950, 954, 957, 960, 963, 966, 969, 972, 975, 978, 981, 984, 987, 990, 993, 995, 997, 999, 1001, 1005, 1011, 1014, 1016, 1022, 1039, 1042, 1045, 1048, 1051, 1054, 1057, 1060, 1064, 1067, 1070, 1073, 1076, 1079, 1082, 1085, 1088, 1091, 1094, 1097, 1101, 1104, 1107, 1110, 1114, 1117, 1120, 1123, 1126, 1129, 1132, 1135, 1138, 1141, 1144, 1147, 1150, 1153, 1156, 1159, 1162, 1165, 1168, 1172, 1175, 1178, 1181, 1184, 1186, 1188, 1190, 1192 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 2, 4, 4, 5, 15, 17, 31, 34, 37, 68, 70, 84, 249, 254, 335, 337, 4, 0, 3, 0, 4, 0, 4, 4, 5, 15, 17, 31, 34, 37, 68, 70, 84, 249, 254, 335, 337, 4, 0, 6, 0, 7, 0, 8, 7, 7, 0, 9, 9, 10, 9, 9, 9, 9, 10, 9, 9, 9, 9, 11, 9, 9, 9, 9, 12, 9, 9, 4, 13, 14, 13, 0, 4, 13, 13, 0, 4, 13, 13, 0, 4, 16, 15, 4, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 394, 0, 32, 0, 0, 33, 4, 16, 33, 0, 0, 0, 0, 35, 36, 4, 36, 36, 34, 35, 35, 4, 36, 34, 36, 0, 38, 390, 0, 39, 0, 40, 0, 41, 0, 42, 0, 43, 0, 44, 0, 45, 0, 46, 0, 47, 0, 48, 0, 49, 0, 51, 50, 51, 50, 51, 51, 4, 52, 66, 4, 343, 348, 350, 380, 385, 388, 51, 50, 51, 53, 50, 51, 54, 50, 51, 55, 50, 51, 56, 50, 51, 57, 50, 51, 58, 50, 51, 59, 50, 51, 60, 50, 51, 61, 50, 51, 62, 50, 51, 63, 50, 51, 64, 50, 51, 65, 50, 51, 4, 50, 51, 67, 50, 4, 4, 5, 15, 17, 31, 34, 37, 68, 70, 84, 249, 254, 335, 337, 4, 0, 69, 0, 31, 0, 71, 0, 72, 0, 73, 0, 74, 0, 75, 0, 76, 0, 77, 0, 78, 0, 79, 0, 80, 0, 81, 0, 83, 82, 83, 82, 83, 83, 4, 83, 82, 85, 161, 0, 86, 0, 87, 0, 88, 0, 89, 0, 90, 0, 91, 0, 92, 0, 93, 0, 94, 0, 95, 0, 96, 0, 98, 97, 98, 97, 98, 98, 4, 99, 113, 4, 114, 119, 121, 151, 156, 159, 98, 97, 98, 100, 97, 98, 101, 97, 98, 102, 97, 98, 103, 97, 98, 104, 97, 98, 105, 97, 98, 106, 97, 98, 107, 97, 98, 108, 97, 98, 109, 97, 98, 110, 97, 98, 111, 97, 98, 112, 97, 98, 4, 97, 98, 67, 97, 98, 115, 97, 116, 98, 97, 117, 98, 97, 118, 98, 97, 98, 113, 97, 98, 120, 97, 98, 113, 97, 122, 98, 133, 97, 123, 98, 97, 124, 98, 97, 98, 125, 97, 98, 126, 97, 98, 127, 97, 98, 128, 97, 129, 98, 97, 130, 98, 97, 131, 98, 97, 98, 132, 97, 98, 67, 97, 98, 113, 134, 97, 98, 135, 97, 98, 136, 97, 98, 137, 97, 98, 138, 139, 97, 122, 98, 97, 140, 98, 97, 141, 98, 97, 98, 142, 97, 98, 143, 97, 98, 144, 97, 98, 145, 97, 98, 146, 97, 147, 98, 97, 148, 98, 97, 149, 98, 97, 98, 150, 97, 98, 132, 97, 98, 152, 97, 153, 98, 97, 154, 98, 97, 98, 155, 97, 98, 113, 97, 140, 98, 157, 97, 158, 98, 97, 113, 98, 97, 160, 98, 97, 113, 98, 97, 31, 162, 0, 163, 0, 164, 0, 165, 0, 166, 237, 0, 167, 0, 168, 0, 169, 0, 170, 0, 171, 0, 172, 0, 173, 0, 174, 0, 175, 0, 176, 0, 177, 0, 178, 0, 180, 179, 180, 179, 180, 180, 4, 181, 195, 4, 196, 201, 203, 216, 221, 235, 180, 179, 180, 182, 179, 180, 183, 179, 180, 184, 179, 180, 185, 179, 180, 186, 179, 180, 187, 179, 180, 188, 179, 180, 189, 179, 180, 190, 179, 180, 191, 179, 180, 192, 179, 180, 193, 179, 180, 194, 179, 180, 4, 179, 180, 67, 179, 180, 197, 179, 198, 180, 179, 199, 180, 179, 200, 180, 179, 180, 195, 179, 180, 202, 179, 180, 195, 179, 204, 180, 215, 179, 205, 180, 179, 206, 180, 179, 180, 207, 179, 180, 208, 179, 180, 209, 179, 180, 210, 179, 211, 180, 179, 212, 180, 179, 213, 180, 179, 180, 214, 179, 180, 67, 179, 180, 195, 179, 180, 217, 179, 218, 180, 179, 219, 180, 179, 180, 220, 179, 180, 195, 179, 222, 180, 233, 179, 223, 180, 179, 180, 224, 179, 180, 225, 179, 180, 226, 179, 180, 227, 179, 180, 228, 179, 229, 180, 179, 230, 180, 179, 231, 180, 179, 180, 232, 179, 180, 214, 179, 234, 180, 179, 195, 180, 179, 236, 180, 179, 195, 180, 179, 238, 0, 239, 0, 240, 0, 241, 0, 242, 0, 243, 0, 244, 0, 245, 0, 246, 0, 247, 0, 248, 0, 177, 0, 250, 0, 251, 0, 252, 0, 253, 0, 31, 0, 255, 333, 0, 256, 266, 0, 257, 0, 258, 0, 259, 0, 260, 0, 261, 0, 262, 0, 263, 0, 264, 0, 265, 0, 95, 0, 267, 0, 268, 0, 269, 0, 270, 0, 271, 0, 272, 0, 273, 0, 274, 0, 275, 0, 277, 276, 277, 276, 277, 277, 4, 278, 4, 292, 304, 321, 277, 276, 277, 279, 276, 277, 280, 276, 277, 281, 276, 277, 282, 276, 277, 283, 276, 277, 284, 276, 277, 285, 276, 277, 286, 276, 277, 287, 276, 277, 288, 276, 277, 289, 276, 277, 290, 276, 277, 291, 276, 277, 4, 276, 293, 277, 276, 294, 277, 276, 295, 277, 276, 277, 296, 276, 277, 297, 276, 277, 298, 276, 299, 277, 276, 300, 277, 276, 301, 277, 276, 277, 302, 276, 277, 303, 276, 277, 67, 276, 305, 277, 315, 276, 306, 277, 276, 307, 277, 276, 277, 308, 276, 277, 309, 276, 277, 310, 276, 277, 311, 276, 312, 277, 276, 313, 277, 276, 314, 277, 276, 277, 303, 276, 277, 316, 276, 277, 317, 276, 277, 318, 276, 277, 319, 276, 277, 320, 321, 276, 305, 277, 276, 322, 277, 276, 323, 277, 276, 277, 324, 276, 277, 325, 276, 277, 326, 276, 277, 327, 276, 277, 328, 276, 329, 277, 276, 330, 277, 276, 331, 277, 276, 277, 332, 276, 277, 303, 276, 334, 0, 31, 0, 336, 0, 31, 0, 337, 338, 337, 0, 342, 341, 340, 338, 341, 339, 340, 338, 339, 340, 339, 342, 341, 340, 338, 341, 339, 342, 342, 5, 15, 17, 31, 34, 37, 68, 70, 84, 249, 254, 335, 337, 342, 0, 51, 344, 50, 345, 51, 50, 346, 51, 50, 347, 51, 50, 51, 66, 50, 51, 349, 50, 51, 66, 50, 351, 51, 362, 50, 352, 51, 50, 353, 51, 50, 51, 354, 50, 51, 355, 50, 51, 356, 50, 51, 357, 50, 358, 51, 50, 359, 51, 50, 360, 51, 50, 51, 361, 50, 51, 67, 50, 51, 66, 363, 50, 51, 364, 50, 51, 365, 50, 51, 366, 50, 51, 367, 368, 50, 351, 51, 50, 369, 51, 50, 370, 51, 50, 51, 371, 50, 51, 372, 50, 51, 373, 50, 51, 374, 50, 51, 375, 50, 376, 51, 50, 377, 51, 50, 378, 51, 50, 51, 379, 50, 51, 361, 50, 51, 381, 50, 382, 51, 50, 383, 51, 50, 51, 384, 50, 51, 66, 50, 369, 51, 386, 50, 387, 51, 50, 66, 51, 50, 389, 51, 50, 66, 51, 50, 391, 0, 392, 0, 393, 0, 31, 0, 0, 0 ] class << self attr_accessor :_lexer_trans_actions private :_lexer_trans_actions, :_lexer_trans_actions= end self._lexer_trans_actions = [ 0, 45, 0, 3, 1, 0, 23, 1, 23, 23, 23, 23, 23, 23, 23, 29, 0, 37, 0, 37, 0, 37, 45, 0, 3, 1, 0, 23, 1, 23, 23, 23, 23, 23, 23, 23, 29, 0, 37, 0, 37, 0, 37, 45, 0, 0, 37, 117, 39, 39, 39, 5, 109, 27, 27, 27, 0, 109, 27, 27, 27, 0, 109, 27, 0, 27, 0, 93, 7, 0, 7, 37, 45, 0, 0, 37, 93, 7, 7, 37, 101, 19, 0, 45, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 37, 48, 97, 17, 0, 37, 37, 37, 37, 0, 21, 105, 21, 21, 42, 21, 0, 45, 0, 1, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 63, 27, 75, 63, 75, 75, 75, 75, 75, 75, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 11, 0, 45, 11, 0, 113, 25, 51, 48, 25, 54, 48, 54, 54, 54, 54, 54, 54, 54, 57, 25, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 72, 0, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 66, 27, 75, 66, 75, 75, 75, 75, 75, 75, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 13, 0, 45, 13, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 13, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 69, 27, 75, 69, 75, 75, 75, 75, 75, 75, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 15, 0, 45, 15, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 15, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 60, 27, 60, 75, 75, 75, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 9, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 9, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 0, 0, 37, 45, 31, 31, 78, 31, 31, 0, 33, 0, 0, 0, 45, 0, 0, 33, 0, 0, 45, 0, 84, 81, 35, 87, 81, 87, 87, 87, 87, 87, 87, 87, 90, 0, 37, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 11, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 0 ] class << self attr_accessor :_lexer_eof_actions private :_lexer_eof_actions, :_lexer_eof_actions= end self._lexer_eof_actions = [ 0, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37 ] class << self attr_accessor :lexer_start end self.lexer_start = 1; class << self attr_accessor :lexer_first_final end self.lexer_first_final = 394; class << self attr_accessor :lexer_error end self.lexer_error = 0; class << self attr_accessor :lexer_en_main end self.lexer_en_main = 1; # line 128 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" end def scan(data) data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably eof = pe = data.length @line_number = 1 @last_newline = 0 # line 777 "lib/gherkin/rb_lexer/vi.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 138 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" # line 786 "lib/gherkin/rb_lexer/vi.rb" begin _klen, _trans, _keys, _acts, _nacts = nil _goto_level = 0 _resume = 10 _eof_trans = 15 _again = 20 _test_eof = 30 _out = 40 while true _trigger_goto = false if _goto_level <= 0 if p == pe _goto_level = _test_eof next end if cs == 0 _goto_level = _out next end end if _goto_level <= _resume _keys = _lexer_key_offsets[cs] _trans = _lexer_index_offsets[cs] _klen = _lexer_single_lengths[cs] _break_match = false begin if _klen > 0 _lower = _keys _upper = _keys + _klen - 1 loop do break if _upper < _lower _mid = _lower + ( (_upper - _lower) >> 1 ) if data[p] < _lexer_trans_keys[_mid] _upper = _mid - 1 elsif data[p] > _lexer_trans_keys[_mid] _lower = _mid + 1 else _trans += (_mid - _keys) _break_match = true break end end # loop break if _break_match _keys += _klen _trans += _klen end _klen = _lexer_range_lengths[cs] if _klen > 0 _lower = _keys _upper = _keys + (_klen << 1) - 2 loop do break if _upper < _lower _mid = _lower + (((_upper-_lower) >> 1) & ~1) if data[p] < _lexer_trans_keys[_mid] _upper = _mid - 2 elsif data[p] > _lexer_trans_keys[_mid+1] _lower = _mid + 2 else _trans += ((_mid - _keys) >> 1) _break_match = true break end end # loop break if _break_match _trans += _klen end end while false cs = _lexer_trans_targs[_trans] if _lexer_trans_actions[_trans] != 0 _acts = _lexer_trans_actions[_trans] _nacts = _lexer_actions[_acts] _acts += 1 while _nacts > 0 _nacts -= 1 _acts += 1 case _lexer_actions[_acts - 1] when 0 then # line 7 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @content_start = p @current_line = @line_number end # line 7 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 1 then # line 12 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end # line 12 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 2 then # line 17 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @content_start = p end # line 17 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 3 then # line 21 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""')) @listener.py_string(con, @current_line) end # line 21 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 4 then # line 26 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin store_keyword_content(:feature, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end # line 26 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 5 then # line 32 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin store_keyword_content(:background, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end # line 32 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 6 then # line 38 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin store_keyword_content(:scenario, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end # line 38 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 7 then # line 44 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin store_keyword_content(:scenario_outline, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end # line 44 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 8 then # line 50 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin store_keyword_content(:examples, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end # line 50 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 9 then # line 56 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip @listener.step(@keyword, con, @current_line) end # line 56 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 10 then # line 61 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip @listener.comment(con, @line_number) @keyword_start = nil end # line 61 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 11 then # line 67 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip @listener.tag(con, @current_line) @keyword_start = nil end # line 67 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 12 then # line 73 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @line_number += 1 end # line 73 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 13 then # line 77 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @last_newline = p + 1 end # line 77 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 14 then # line 81 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @keyword_start ||= p end # line 81 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 15 then # line 85 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'') @keyword_start = nil end # line 85 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 16 then # line 90 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @next_keyword_start = p end # line 90 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 17 then # line 94 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin p = p - 1 current_row = [] @current_line = @line_number end # line 94 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 18 then # line 100 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @content_start = p end # line 100 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 19 then # line 104 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip current_row << con.gsub(/\\\|/, "|").gsub(/\\\\/, "\\") end # line 104 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 20 then # line 109 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin @listener.row(current_row, @current_line) end # line 109 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" when 21 then # line 113 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin if cs < lexer_first_final content = current_line_content(data, p) raise LexingError.new("Lexing error on line %d: '%s'." % [@line_number, content]) else @listener.eof end end # line 113 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" # line 1047 "lib/gherkin/rb_lexer/vi.rb" end # action switch end end if _trigger_goto next end end if _goto_level <= _again if cs == 0 _goto_level = _out next end p += 1 if p != pe _goto_level = _resume next end end if _goto_level <= _test_eof if p == eof __acts = _lexer_eof_actions[cs] __nacts = _lexer_actions[__acts] __acts += 1 while __nacts > 0 __nacts -= 1 __acts += 1 case _lexer_actions[__acts - 1] when 21 then # line 113 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" begin if cs < lexer_first_final content = current_line_content(data, p) raise LexingError.new("Lexing error on line %d: '%s'." % [@line_number, content]) else @listener.eof end end # line 113 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" # line 1087 "lib/gherkin/rb_lexer/vi.rb" end # eof action switch end if _trigger_goto next end end end if _goto_level <= _out break end end end # line 139 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/vi.rb.rl" end CRLF_RE = /\r\n/ LF_RE = /[^\r]\n/ CRLF = "\r\n" LF = "\n" def multiline_strip(text) crlf_count = text.scan(CRLF_RE).size lf_count = text.scan(LF_RE).size eol = crlf_count > lf_count ? CRLF : LF text.split(/\r?\n/).map{|s| s.strip}.join(eol).strip end def unindent(startcol, text) text.gsub(/^[\t ]{0,#{startcol}}/, "") end def store_keyword_content(event, data, p, eof) end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start con = yield utf8_pack(data[@content_start...end_point]) @listener.send(event, @keyword, con, @current_line) end def current_line_content(data, p) rest = data[@last_newline..-1] utf8_pack(rest[0..rest.index(10)||-1]).strip end def utf8_pack(array) (RUBY_VERSION =~ /^1\.9/) ? array.pack("c*").force_encoding("UTF-8") : array.pack("c*") end end end end