# 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, 67, 71, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 92, 97, 104, 109, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 205, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 306, 308, 310, 312, 315, 317, 319, 321, 323, 325, 327, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 354, 356, 358, 360, 362, 364, 365, 366, 367, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 397, 399, 401, 403, 405, 407, 409, 411, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431, 433, 435, 437, 439, 441, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 481, 483, 485, 487, 489, 491, 493, 495, 497, 499, 501, 503, 505, 507, 509, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 530, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 563, 565, 567, 569, 571, 573, 575, 577, 579, 581, 583, 585, 587, 589, 591, 593, 595, 597, 599, 601, 603, 605, 607, 609, 611, 613, 615, 618, 620, 622, 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 644, 646, 649, 651, 653, 655, 657, 659, 661, 663, 665, 667, 669, 671, 673, 675, 676, 677, 678, 679, 683, 688, 689, 694, 711, 713, 715, 717, 719, 721, 723, 725, 728, 730, 732, 734, 736, 738, 740, 742, 744, 746, 748, 750, 753, 755, 757, 759, 762, 764, 766, 768, 770, 772, 774, 776, 778, 780, 782, 784, 786, 788, 790, 792, 794, 796, 798, 801, 803, 805, 807, 809, 810, 811, 812, 813 ] 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, 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, 124, 9, 13, 124, 10, 32, 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, 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, 3, 1, 3, 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, 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, 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, 71, 75, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 115, 120, 127, 132, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 175, 178, 181, 184, 187, 190, 193, 196, 199, 202, 205, 208, 211, 214, 217, 220, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 272, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 315, 318, 321, 324, 327, 330, 333, 336, 339, 342, 345, 348, 351, 354, 357, 360, 363, 366, 369, 372, 375, 378, 381, 385, 388, 391, 394, 397, 400, 403, 406, 409, 412, 415, 418, 422, 425, 428, 431, 435, 438, 441, 444, 447, 450, 453, 456, 459, 462, 465, 468, 471, 474, 477, 480, 483, 486, 489, 493, 496, 499, 502, 505, 508, 510, 512, 514, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 537, 539, 541, 543, 545, 559, 562, 565, 568, 571, 574, 577, 580, 583, 586, 589, 592, 595, 598, 601, 604, 607, 610, 613, 616, 619, 622, 625, 629, 632, 635, 638, 641, 644, 647, 650, 653, 656, 659, 662, 665, 668, 671, 674, 677, 680, 684, 687, 690, 693, 696, 699, 702, 705, 708, 711, 714, 717, 720, 723, 726, 729, 731, 733, 735, 737, 739, 741, 743, 745, 747, 749, 751, 753, 755, 757, 759, 761, 763, 766, 769, 771, 773, 775, 777, 779, 781, 783, 785, 787, 789, 791, 793, 795, 797, 799, 801, 803, 805, 807, 809, 811, 821, 824, 827, 830, 833, 836, 839, 842, 845, 848, 851, 854, 857, 860, 863, 866, 869, 872, 875, 878, 881, 884, 887, 890, 893, 896, 899, 903, 906, 909, 912, 915, 918, 921, 924, 927, 930, 933, 936, 939, 942, 945, 949, 952, 955, 958, 961, 964, 967, 970, 973, 976, 979, 982, 985, 988, 990, 992, 994, 996, 1000, 1005, 1007, 1012, 1029, 1032, 1035, 1038, 1041, 1044, 1047, 1050, 1054, 1057, 1060, 1063, 1066, 1069, 1072, 1075, 1078, 1081, 1084, 1087, 1091, 1094, 1097, 1100, 1104, 1107, 1110, 1113, 1116, 1119, 1122, 1125, 1128, 1131, 1134, 1137, 1140, 1143, 1146, 1149, 1152, 1155, 1158, 1162, 1165, 1168, 1171, 1174, 1176, 1178, 1180, 1182 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 2, 4, 4, 5, 14, 16, 30, 33, 36, 67, 69, 83, 248, 253, 334, 336, 4, 0, 3, 0, 4, 0, 4, 4, 5, 14, 16, 30, 33, 36, 67, 69, 83, 248, 253, 334, 336, 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, 13, 0, 4, 13, 13, 0, 4, 15, 14, 4, 0, 17, 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, 392, 0, 31, 0, 0, 32, 4, 15, 32, 0, 0, 0, 0, 34, 35, 4, 35, 35, 33, 34, 34, 4, 35, 33, 35, 0, 37, 388, 0, 38, 0, 39, 0, 40, 0, 41, 0, 42, 0, 43, 0, 44, 0, 45, 0, 46, 0, 47, 0, 48, 0, 50, 49, 50, 49, 50, 50, 4, 51, 65, 4, 341, 346, 348, 378, 383, 386, 50, 49, 50, 52, 49, 50, 53, 49, 50, 54, 49, 50, 55, 49, 50, 56, 49, 50, 57, 49, 50, 58, 49, 50, 59, 49, 50, 60, 49, 50, 61, 49, 50, 62, 49, 50, 63, 49, 50, 64, 49, 50, 4, 49, 50, 66, 49, 4, 4, 5, 14, 16, 30, 33, 36, 67, 69, 83, 248, 253, 334, 336, 4, 0, 68, 0, 30, 0, 70, 0, 71, 0, 72, 0, 73, 0, 74, 0, 75, 0, 76, 0, 77, 0, 78, 0, 79, 0, 80, 0, 82, 81, 82, 81, 82, 82, 4, 82, 81, 84, 160, 0, 85, 0, 86, 0, 87, 0, 88, 0, 89, 0, 90, 0, 91, 0, 92, 0, 93, 0, 94, 0, 95, 0, 97, 96, 97, 96, 97, 97, 4, 98, 112, 4, 113, 118, 120, 150, 155, 158, 97, 96, 97, 99, 96, 97, 100, 96, 97, 101, 96, 97, 102, 96, 97, 103, 96, 97, 104, 96, 97, 105, 96, 97, 106, 96, 97, 107, 96, 97, 108, 96, 97, 109, 96, 97, 110, 96, 97, 111, 96, 97, 4, 96, 97, 66, 96, 97, 114, 96, 115, 97, 96, 116, 97, 96, 117, 97, 96, 97, 112, 96, 97, 119, 96, 97, 112, 96, 121, 97, 132, 96, 122, 97, 96, 123, 97, 96, 97, 124, 96, 97, 125, 96, 97, 126, 96, 97, 127, 96, 128, 97, 96, 129, 97, 96, 130, 97, 96, 97, 131, 96, 97, 66, 96, 97, 112, 133, 96, 97, 134, 96, 97, 135, 96, 97, 136, 96, 97, 137, 138, 96, 121, 97, 96, 139, 97, 96, 140, 97, 96, 97, 141, 96, 97, 142, 96, 97, 143, 96, 97, 144, 96, 97, 145, 96, 146, 97, 96, 147, 97, 96, 148, 97, 96, 97, 149, 96, 97, 131, 96, 97, 151, 96, 152, 97, 96, 153, 97, 96, 97, 154, 96, 97, 112, 96, 139, 97, 156, 96, 157, 97, 96, 112, 97, 96, 159, 97, 96, 112, 97, 96, 30, 161, 0, 162, 0, 163, 0, 164, 0, 165, 236, 0, 166, 0, 167, 0, 168, 0, 169, 0, 170, 0, 171, 0, 172, 0, 173, 0, 174, 0, 175, 0, 176, 0, 177, 0, 179, 178, 179, 178, 179, 179, 4, 180, 194, 4, 195, 200, 202, 215, 220, 234, 179, 178, 179, 181, 178, 179, 182, 178, 179, 183, 178, 179, 184, 178, 179, 185, 178, 179, 186, 178, 179, 187, 178, 179, 188, 178, 179, 189, 178, 179, 190, 178, 179, 191, 178, 179, 192, 178, 179, 193, 178, 179, 4, 178, 179, 66, 178, 179, 196, 178, 197, 179, 178, 198, 179, 178, 199, 179, 178, 179, 194, 178, 179, 201, 178, 179, 194, 178, 203, 179, 214, 178, 204, 179, 178, 205, 179, 178, 179, 206, 178, 179, 207, 178, 179, 208, 178, 179, 209, 178, 210, 179, 178, 211, 179, 178, 212, 179, 178, 179, 213, 178, 179, 66, 178, 179, 194, 178, 179, 216, 178, 217, 179, 178, 218, 179, 178, 179, 219, 178, 179, 194, 178, 221, 179, 232, 178, 222, 179, 178, 179, 223, 178, 179, 224, 178, 179, 225, 178, 179, 226, 178, 179, 227, 178, 228, 179, 178, 229, 179, 178, 230, 179, 178, 179, 231, 178, 179, 213, 178, 233, 179, 178, 194, 179, 178, 235, 179, 178, 194, 179, 178, 237, 0, 238, 0, 239, 0, 240, 0, 241, 0, 242, 0, 243, 0, 244, 0, 245, 0, 246, 0, 247, 0, 176, 0, 249, 0, 250, 0, 251, 0, 252, 0, 30, 0, 254, 332, 0, 255, 265, 0, 256, 0, 257, 0, 258, 0, 259, 0, 260, 0, 261, 0, 262, 0, 263, 0, 264, 0, 94, 0, 266, 0, 267, 0, 268, 0, 269, 0, 270, 0, 271, 0, 272, 0, 273, 0, 274, 0, 276, 275, 276, 275, 276, 276, 4, 277, 4, 291, 303, 320, 276, 275, 276, 278, 275, 276, 279, 275, 276, 280, 275, 276, 281, 275, 276, 282, 275, 276, 283, 275, 276, 284, 275, 276, 285, 275, 276, 286, 275, 276, 287, 275, 276, 288, 275, 276, 289, 275, 276, 290, 275, 276, 4, 275, 292, 276, 275, 293, 276, 275, 294, 276, 275, 276, 295, 275, 276, 296, 275, 276, 297, 275, 298, 276, 275, 299, 276, 275, 300, 276, 275, 276, 301, 275, 276, 302, 275, 276, 66, 275, 304, 276, 314, 275, 305, 276, 275, 306, 276, 275, 276, 307, 275, 276, 308, 275, 276, 309, 275, 276, 310, 275, 311, 276, 275, 312, 276, 275, 313, 276, 275, 276, 302, 275, 276, 315, 275, 276, 316, 275, 276, 317, 275, 276, 318, 275, 276, 319, 320, 275, 304, 276, 275, 321, 276, 275, 322, 276, 275, 276, 323, 275, 276, 324, 275, 276, 325, 275, 276, 326, 275, 276, 327, 275, 328, 276, 275, 329, 276, 275, 330, 276, 275, 276, 331, 275, 276, 302, 275, 333, 0, 30, 0, 335, 0, 30, 0, 336, 337, 336, 0, 340, 339, 337, 339, 338, 337, 338, 340, 339, 337, 339, 338, 340, 340, 5, 14, 16, 30, 33, 36, 67, 69, 83, 248, 253, 334, 336, 340, 0, 50, 342, 49, 343, 50, 49, 344, 50, 49, 345, 50, 49, 50, 65, 49, 50, 347, 49, 50, 65, 49, 349, 50, 360, 49, 350, 50, 49, 351, 50, 49, 50, 352, 49, 50, 353, 49, 50, 354, 49, 50, 355, 49, 356, 50, 49, 357, 50, 49, 358, 50, 49, 50, 359, 49, 50, 66, 49, 50, 65, 361, 49, 50, 362, 49, 50, 363, 49, 50, 364, 49, 50, 365, 366, 49, 349, 50, 49, 367, 50, 49, 368, 50, 49, 50, 369, 49, 50, 370, 49, 50, 371, 49, 50, 372, 49, 50, 373, 49, 374, 50, 49, 375, 50, 49, 376, 50, 49, 50, 377, 49, 50, 359, 49, 50, 379, 49, 380, 50, 49, 381, 50, 49, 50, 382, 49, 50, 65, 49, 367, 50, 384, 49, 385, 50, 49, 65, 50, 49, 387, 50, 49, 65, 50, 49, 389, 0, 390, 0, 391, 0, 30, 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, 7, 37, 45, 0, 0, 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, 78, 31, 31, 33, 0, 45, 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 ] class << self attr_accessor :lexer_start end self.lexer_start = 1; class << self attr_accessor :lexer_first_final end self.lexer_first_final = 392; 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 772 "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 781 "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 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 1042 "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 1082 "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