UNPKG

gherkin

Version:

A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.

1,070 lines (1,005 loc) 34.1 kB
/* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ ;(function() { /* line 117 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ /* line 11 "js/lib/gherkin/lexer/is.js" */ const _lexer_actions = [ 0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 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 ]; const _lexer_key_offsets = [ 0, 0, 18, 19, 21, 22, 23, 24, 26, 43, 44, 45, 49, 54, 59, 64, 69, 73, 77, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 99, 106, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 124, 125, 126, 140, 142, 145, 147, 149, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 191, 193, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 319, 321, 323, 325, 327, 329, 331, 332, 333, 334, 335, 336, 337, 338, 345, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 391, 393, 395, 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, 480, 482, 484, 486, 488, 490, 492, 494, 496, 498, 500, 502, 505, 507, 509, 511, 513, 515, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 537, 538, 539, 540, 541, 542, 543, 544, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 574, 576, 579, 581, 583, 585, 587, 589, 591, 593, 595, 597, 599, 601, 603, 605, 607, 609, 611, 613, 615, 617, 619, 621, 623, 625, 627, 629, 631, 633, 635, 637, 639, 641, 645, 647, 649, 651, 653, 655, 657, 659, 661, 663, 664, 665, 666, 667, 668, 672, 678, 681, 683, 689, 706, 708, 710, 712, 714, 716, 718, 720, 722, 724, 726, 728, 730, 732, 734, 736, 738, 740, 742, 744, 746, 748, 750, 752, 754, 756, 758, 760, 762, 764, 766, 768, 770, 772, 774, 776, 778, 780, 782, 786, 788, 790, 792, 794, 796, 798, 800, 802, 804, 806, 808, 810, 812, 814, 816, 819, 821, 823, 825, 827, 829, 831, 833, 835, 837, 839, 841, 843, 845, 847, 849, 851, 853, 854, 855, 856, 857, 858, 859 ]; const _lexer_trans_keys = [ -61, 10, 32, 34, 35, 37, 42, 64, 65, 66, 68, 69, 76, 79, 124, 239, 9, 13, -98, -61, 101, -95, 32, 10, 10, 13, -61, 10, 32, 34, 35, 37, 42, 64, 65, 66, 68, 69, 76, 79, 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, 13, 32, 64, 9, 10, 9, 10, 13, 32, 64, 11, 12, 10, 32, 64, 9, 13, 116, 98, 117, 114, -61, -80, 97, 114, -61, -95, 115, 58, 105, 10, 10, -61, 10, 32, 35, 37, 42, 64, 65, 66, 69, 76, 79, 9, 13, -98, 10, -61, 10, 101, -95, 10, 10, 32, -61, 10, 32, 34, 35, 37, 42, 64, 65, 66, 68, 69, 76, 79, 124, 9, 13, 97, 107, 103, 114, 117, 110, 110, 117, 114, 58, 10, 10, -61, 10, 32, 35, 37, 42, 64, 65, 69, 76, 79, 9, 13, -98, 10, -61, 10, 101, -95, 10, 10, 32, 10, 103, 10, 97, 10, 114, 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, 116, 10, 98, 10, 117, 10, 114, -61, 10, -80, 10, 10, 97, 10, 114, -61, 10, -95, 10, 10, 115, 10, 58, 10, 102, 105, 110, 10, 103, 10, 105, 10, 110, 10, 108, 10, 101, 10, 105, 10, 107, 10, 105, -61, 10, -67, 10, 10, 115, 10, 105, 10, 110, 10, 103, 10, 32, 10, 65, 68, 10, 116, 10, 98, 10, 117, 10, 114, -61, 10, -80, 10, 10, 97, 10, 114, -61, 10, -95, 10, 10, 115, 10, 97, 10, 114, -61, 10, -90, 10, 10, 109, 10, 97, 10, 103, -61, -90, 109, 105, 58, 10, 10, 10, 32, 35, 69, 124, 9, 13, 10, 105, 10, 103, 10, 105, 10, 110, 10, 108, 10, 101, 10, 105, 10, 107, 10, 105, 10, 58, 102, 105, 110, 103, 105, 110, 108, 101, 105, 107, 105, 58, 10, 10, 10, 32, 35, 37, 64, 65, 66, 68, 69, 76, 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, 116, 10, 98, 10, 117, 10, 114, -61, 10, -80, 10, 10, 97, 10, 114, -61, 10, -95, 10, 10, 115, 10, 58, 105, 10, 114, 10, 58, 10, 97, 10, 107, 10, 103, 10, 114, 10, 117, 10, 110, 10, 110, 10, 117, -61, 10, -90, 10, 10, 109, 10, 105, 10, 105, 10, 103, 10, 105, 10, 110, 10, 108, 10, 101, 10, 105, 10, 107, -61, 10, -67, 10, 10, 115, 10, 105, 10, 110, 10, 103, 10, 32, 10, 65, 68, 10, 116, 10, 98, 10, 117, 10, 114, -61, 10, -80, 10, 10, 97, 10, 114, -61, 10, -95, 10, 10, 115, 10, 97, -61, 10, -90, 10, 10, 109, 10, 97, -61, -67, 115, 105, 110, 103, 32, 65, 68, 116, 98, 117, 114, -61, -80, 97, 114, -61, -95, 115, 97, 114, 58, 10, 10, -61, 10, 32, 35, 37, 42, 64, 65, 69, 79, 9, 13, -98, 10, -61, 10, 101, -95, 10, 10, 32, 10, 103, 10, 97, 10, 114, 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, 116, 10, 98, 10, 117, 10, 114, -61, 10, -80, 10, 10, 97, 10, 114, -61, 10, -95, 10, 10, 115, 10, 58, 10, 102, 105, 110, 10, 103, 10, 105, 10, 110, 10, 108, 10, 101, 10, 105, 10, 107, 10, 105, 10, 103, -61, -90, 109, 97, 103, 32, 124, 9, 13, 10, 32, 92, 124, 9, 13, 10, 92, 124, 10, 92, 10, 32, 92, 124, 9, 13, -61, 10, 32, 34, 35, 37, 42, 64, 65, 66, 68, 69, 76, 79, 124, 9, 13, 10, 103, 10, 97, 10, 114, 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, 116, 10, 98, 10, 117, 10, 114, -61, 10, -80, 10, 10, 97, 10, 114, -61, 10, -95, 10, 10, 115, 10, 58, 10, 97, 10, 107, 10, 103, 10, 114, 10, 117, 10, 110, 10, 110, 10, 117, 10, 114, 10, 102, 105, 110, 10, 103, 10, 105, 10, 110, 10, 108, 10, 101, 10, 105, 10, 107, 10, 105, -61, 10, -67, 10, 10, 115, 10, 105, 10, 110, 10, 103, 10, 32, 10, 65, 68, 10, 116, 10, 98, 10, 117, 10, 114, -61, 10, -80, 10, 10, 97, 10, 114, -61, 10, -95, 10, 10, 115, 10, 97, -61, 10, -90, 10, 10, 109, 10, 97, 10, 103, 114, 103, 97, 114, 187, 191, 0 ]; const _lexer_single_lengths = [ 0, 16, 1, 2, 1, 1, 1, 2, 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, 3, 5, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 12, 2, 3, 2, 2, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2, 3, 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, 2, 2, 2, 2, 2, 4, 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, 2, 1, 1, 1, 1, 1, 1, 1, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 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, 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, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 2, 3, 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, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 4, 3, 2, 4, 15, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 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, 1, 1, 1, 1, 1, 1, 0 ]; const _lexer_range_lengths = [ 0, 1, 0, 0, 0, 0, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 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, 1, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; const _lexer_index_offsets = [ 0, 0, 18, 20, 23, 25, 27, 29, 32, 49, 51, 53, 57, 62, 67, 72, 77, 81, 85, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 123, 130, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, 160, 162, 164, 178, 181, 185, 188, 191, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 245, 248, 252, 255, 258, 261, 264, 267, 270, 273, 276, 279, 282, 285, 288, 291, 294, 297, 300, 303, 306, 309, 312, 315, 318, 321, 324, 327, 330, 333, 336, 339, 342, 345, 350, 353, 356, 359, 362, 365, 368, 371, 374, 377, 380, 383, 386, 389, 392, 395, 399, 402, 405, 408, 411, 414, 417, 420, 423, 426, 429, 432, 435, 438, 441, 444, 447, 450, 453, 455, 457, 459, 461, 463, 465, 467, 474, 477, 480, 483, 486, 489, 492, 495, 498, 501, 504, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 542, 545, 548, 551, 554, 557, 560, 563, 566, 569, 572, 575, 578, 581, 584, 587, 590, 593, 596, 599, 602, 605, 608, 611, 614, 617, 621, 624, 627, 630, 633, 636, 639, 642, 645, 648, 651, 654, 657, 660, 663, 666, 669, 672, 675, 678, 681, 684, 687, 690, 693, 696, 699, 702, 705, 708, 712, 715, 718, 721, 724, 727, 730, 733, 736, 739, 742, 745, 748, 751, 754, 757, 760, 762, 764, 766, 768, 770, 772, 774, 777, 779, 781, 783, 785, 787, 789, 791, 793, 795, 797, 799, 801, 803, 805, 807, 809, 821, 824, 828, 831, 834, 837, 840, 843, 846, 849, 852, 855, 858, 861, 864, 867, 870, 873, 876, 879, 882, 885, 888, 891, 894, 897, 900, 903, 906, 909, 912, 915, 918, 921, 926, 929, 932, 935, 938, 941, 944, 947, 950, 953, 955, 957, 959, 961, 963, 967, 973, 977, 980, 986, 1003, 1006, 1009, 1012, 1015, 1018, 1021, 1024, 1027, 1030, 1033, 1036, 1039, 1042, 1045, 1048, 1051, 1054, 1057, 1060, 1063, 1066, 1069, 1072, 1075, 1078, 1081, 1084, 1087, 1090, 1093, 1096, 1099, 1102, 1105, 1108, 1111, 1114, 1117, 1122, 1125, 1128, 1131, 1134, 1137, 1140, 1143, 1146, 1149, 1152, 1155, 1158, 1161, 1164, 1167, 1171, 1174, 1177, 1180, 1183, 1186, 1189, 1192, 1195, 1198, 1201, 1204, 1207, 1210, 1213, 1216, 1219, 1222, 1224, 1226, 1228, 1230, 1232, 1234 ]; const _lexer_indicies = [ 1, 3, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 2, 0, 17, 0, 18, 19, 0, 20, 0, 21, 0, 0, 22, 24, 25, 23, 1, 3, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2, 0, 26, 0, 27, 0, 28, 27, 27, 0, 31, 30, 32, 30, 29, 35, 34, 36, 34, 33, 35, 34, 37, 34, 33, 35, 34, 38, 34, 33, 40, 39, 39, 0, 3, 41, 41, 0, 43, 44, 42, 3, 0, 45, 0, 46, 0, 47, 0, 48, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 58, 0, 0, 0, 0, 0, 59, 60, 61, 60, 60, 63, 62, 59, 3, 64, 8, 64, 0, 65, 0, 66, 0, 67, 0, 68, 0, 69, 0, 70, 0, 71, 0, 72, 0, 73, 0, 74, 0, 75, 0, 76, 77, 0, 79, 78, 81, 80, 82, 81, 83, 84, 85, 86, 84, 87, 88, 89, 90, 91, 83, 80, 92, 81, 80, 93, 81, 94, 80, 95, 81, 80, 81, 96, 80, 97, 99, 98, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 98, 0, 112, 0, 113, 0, 114, 0, 115, 0, 116, 0, 117, 0, 118, 0, 119, 0, 120, 0, 121, 0, 123, 122, 125, 124, 126, 125, 127, 128, 129, 130, 128, 131, 132, 133, 134, 127, 124, 135, 125, 124, 136, 125, 137, 124, 138, 125, 124, 125, 139, 124, 125, 140, 124, 125, 141, 124, 125, 138, 124, 125, 142, 124, 125, 143, 124, 125, 144, 124, 125, 145, 124, 125, 146, 124, 125, 147, 124, 125, 148, 124, 125, 149, 124, 125, 150, 124, 125, 151, 124, 125, 152, 124, 125, 153, 124, 125, 154, 124, 125, 155, 124, 125, 156, 124, 125, 157, 124, 125, 158, 124, 125, 159, 124, 160, 125, 124, 161, 125, 124, 125, 162, 124, 125, 163, 124, 164, 125, 124, 165, 125, 124, 125, 166, 124, 125, 139, 124, 125, 138, 167, 138, 124, 125, 168, 124, 125, 169, 124, 125, 170, 124, 125, 171, 124, 125, 172, 124, 125, 173, 124, 125, 174, 124, 125, 166, 124, 175, 125, 124, 176, 125, 124, 125, 177, 124, 125, 178, 124, 125, 179, 124, 125, 180, 124, 125, 181, 124, 125, 182, 183, 124, 125, 184, 124, 125, 185, 124, 125, 186, 124, 125, 187, 124, 188, 125, 124, 189, 125, 124, 125, 190, 124, 125, 191, 124, 192, 125, 124, 193, 125, 124, 125, 194, 124, 125, 195, 124, 125, 166, 124, 196, 125, 124, 197, 125, 124, 125, 198, 124, 125, 166, 124, 125, 138, 124, 199, 0, 200, 0, 201, 0, 202, 0, 203, 0, 205, 204, 207, 206, 207, 208, 209, 210, 209, 208, 206, 207, 211, 206, 207, 212, 206, 207, 213, 206, 207, 214, 206, 207, 215, 206, 207, 216, 206, 207, 217, 206, 207, 218, 206, 207, 219, 206, 207, 220, 206, 20, 221, 20, 0, 222, 0, 223, 0, 224, 0, 225, 0, 226, 0, 227, 0, 228, 0, 229, 0, 230, 0, 232, 231, 234, 233, 234, 235, 236, 237, 236, 238, 239, 240, 241, 242, 235, 233, 234, 243, 233, 234, 244, 233, 234, 245, 233, 234, 246, 233, 234, 247, 233, 234, 248, 233, 234, 249, 233, 234, 250, 233, 234, 251, 233, 234, 252, 233, 234, 253, 233, 234, 254, 233, 234, 255, 233, 234, 256, 233, 234, 257, 233, 234, 258, 233, 234, 259, 233, 234, 260, 233, 261, 234, 233, 262, 234, 233, 234, 263, 233, 234, 264, 233, 265, 234, 233, 266, 234, 233, 234, 267, 233, 234, 268, 269, 233, 234, 270, 233, 234, 268, 233, 234, 271, 233, 234, 272, 233, 234, 273, 233, 234, 274, 233, 234, 275, 233, 234, 276, 233, 234, 277, 233, 234, 269, 233, 278, 234, 233, 279, 234, 233, 234, 280, 233, 234, 270, 233, 234, 281, 233, 234, 282, 233, 234, 283, 233, 234, 284, 233, 234, 285, 233, 234, 286, 233, 234, 287, 233, 234, 280, 233, 288, 234, 233, 289, 234, 233, 234, 290, 233, 234, 291, 233, 234, 292, 233, 234, 293, 233, 234, 294, 233, 234, 295, 296, 233, 234, 297, 233, 234, 298, 233, 234, 299, 233, 234, 300, 233, 301, 234, 233, 302, 234, 233, 234, 303, 233, 234, 304, 233, 305, 234, 233, 306, 234, 233, 234, 307, 233, 234, 269, 233, 308, 234, 233, 309, 234, 233, 234, 310, 233, 234, 270, 233, 311, 0, 312, 0, 313, 0, 314, 0, 315, 0, 316, 0, 317, 0, 318, 319, 0, 320, 0, 321, 0, 322, 0, 323, 0, 324, 0, 325, 0, 326, 0, 327, 0, 328, 0, 329, 0, 330, 0, 331, 0, 332, 0, 333, 0, 335, 334, 337, 336, 338, 337, 339, 340, 341, 342, 340, 343, 344, 345, 339, 336, 346, 337, 336, 347, 337, 348, 336, 349, 337, 336, 337, 350, 336, 337, 351, 336, 337, 352, 336, 337, 349, 336, 337, 353, 336, 337, 354, 336, 337, 355, 336, 337, 356, 336, 337, 357, 336, 337, 358, 336, 337, 359, 336, 337, 360, 336, 337, 361, 336, 337, 362, 336, 337, 363, 336, 337, 364, 336, 337, 365, 336, 337, 366, 336, 337, 367, 336, 337, 368, 336, 337, 369, 336, 337, 370, 336, 371, 337, 336, 372, 337, 336, 337, 373, 336, 337, 374, 336, 375, 337, 336, 376, 337, 336, 337, 377, 336, 337, 350, 336, 337, 349, 378, 349, 336, 337, 379, 336, 337, 380, 336, 337, 381, 336, 337, 382, 336, 337, 383, 336, 337, 384, 336, 337, 385, 336, 337, 377, 336, 337, 349, 336, 386, 0, 387, 0, 388, 0, 332, 0, 20, 0, 389, 390, 389, 0, 393, 392, 394, 395, 392, 391, 0, 397, 398, 396, 0, 397, 396, 393, 399, 397, 398, 399, 396, 400, 393, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 401, 0, 81, 414, 80, 81, 415, 80, 81, 95, 80, 81, 416, 80, 81, 417, 80, 81, 418, 80, 81, 419, 80, 81, 420, 80, 81, 421, 80, 81, 422, 80, 81, 423, 80, 81, 424, 80, 81, 425, 80, 81, 426, 80, 81, 427, 80, 81, 428, 80, 81, 429, 80, 81, 430, 80, 81, 431, 80, 81, 432, 80, 81, 433, 80, 434, 81, 80, 435, 81, 80, 81, 436, 80, 81, 437, 80, 438, 81, 80, 439, 81, 80, 81, 440, 80, 81, 96, 80, 81, 441, 80, 81, 442, 80, 81, 443, 80, 81, 444, 80, 81, 445, 80, 81, 446, 80, 81, 447, 80, 81, 448, 80, 81, 440, 80, 81, 95, 449, 95, 80, 81, 450, 80, 81, 451, 80, 81, 452, 80, 81, 453, 80, 81, 454, 80, 81, 455, 80, 81, 456, 80, 81, 440, 80, 457, 81, 80, 458, 81, 80, 81, 459, 80, 81, 460, 80, 81, 461, 80, 81, 462, 80, 81, 463, 80, 81, 464, 465, 80, 81, 466, 80, 81, 467, 80, 81, 468, 80, 81, 469, 80, 470, 81, 80, 471, 81, 80, 81, 472, 80, 81, 473, 80, 474, 81, 80, 475, 81, 80, 81, 476, 80, 81, 448, 80, 477, 81, 80, 478, 81, 80, 81, 479, 80, 81, 440, 80, 81, 95, 80, 202, 0, 480, 0, 481, 0, 20, 0, 482, 0, 2, 0, 483, 0 ]; const _lexer_trans_targs = [ 0, 2, 8, 8, 9, 18, 20, 5, 34, 37, 57, 138, 156, 241, 313, 314, 396, 3, 4, 393, 5, 6, 7, 7, 8, 19, 10, 11, 12, 13, 13, 13, 14, 13, 13, 13, 14, 15, 16, 17, 8, 17, 18, 8, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 398, 35, 36, 8, 35, 34, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 392, 50, 51, 50, 51, 52, 51, 8, 323, 55, 337, 349, 358, 367, 391, 53, 54, 320, 55, 56, 2, 8, 8, 9, 18, 20, 5, 34, 37, 57, 138, 156, 241, 313, 314, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 68, 69, 70, 69, 8, 77, 73, 91, 103, 112, 137, 71, 72, 74, 73, 56, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 8, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 104, 105, 106, 107, 108, 109, 110, 111, 113, 114, 115, 116, 117, 118, 119, 120, 133, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 144, 145, 145, 8, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 56, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 167, 168, 168, 8, 169, 183, 197, 205, 209, 217, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 8, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 56, 195, 196, 198, 199, 200, 201, 202, 203, 204, 206, 207, 208, 210, 211, 212, 213, 214, 215, 216, 218, 219, 220, 221, 222, 223, 224, 225, 237, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 238, 239, 240, 242, 243, 244, 245, 246, 247, 248, 249, 309, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 264, 265, 266, 265, 8, 273, 269, 287, 299, 308, 267, 268, 270, 269, 56, 271, 272, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 8, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 300, 301, 302, 303, 304, 305, 306, 307, 310, 311, 312, 314, 315, 316, 318, 319, 317, 315, 316, 317, 315, 318, 2, 319, 9, 18, 20, 5, 34, 37, 57, 138, 156, 241, 313, 314, 321, 322, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 8, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 350, 351, 352, 353, 354, 355, 356, 357, 359, 360, 361, 362, 363, 364, 365, 366, 368, 369, 370, 371, 372, 373, 374, 375, 387, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 388, 389, 390, 394, 395, 397, 0 ]; const _lexer_trans_actions = [ 39, 25, 0, 47, 3, 1, 0, 25, 1, 25, 25, 25, 25, 25, 25, 31, 0, 0, 0, 0, 0, 0, 50, 0, 99, 19, 0, 0, 47, 5, 41, 119, 41, 0, 29, 111, 29, 29, 0, 7, 95, 0, 0, 103, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 107, 23, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 77, 0, 68, 29, 77, 77, 77, 77, 77, 77, 0, 0, 0, 0, 13, 56, 27, 115, 53, 50, 27, 56, 50, 56, 56, 56, 56, 56, 56, 59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 77, 0, 65, 29, 77, 77, 77, 77, 77, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 0, 74, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 0, 62, 29, 77, 77, 77, 77, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 77, 0, 71, 29, 77, 77, 77, 77, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 33, 47, 33, 80, 0, 0, 35, 0, 89, 0, 86, 83, 37, 89, 83, 89, 89, 89, 89, 89, 89, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; const _lexer_eof_actions = [ 0, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39 ]; const lexer_start = 1; const lexer_first_final = 398; const lexer_error = 0; const lexer_en_main = 1; /* line 120 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ /* line 121 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ /* line 122 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ var Lexer = function(listener) { // Check that listener has the required functions var events = ['comment', 'tag', 'feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'doc_string', 'row', 'eof']; for(e in events) { var event = events[e]; if(typeof listener[event] != 'function') { "Error. No " + event + " function exists on " + JSON.stringify(listener); } } this.listener = listener; }; Lexer.prototype.scan = function(data) { var ending = "\n%_FEATURE_END_%"; if(typeof data == 'string') { data = this.stringToBytes(data + ending); } else if(typeof Buffer != 'undefined' && Buffer.isBuffer(data)) { // Node.js var buf = new Buffer(data.length + ending.length); data.copy(buf, 0, 0); new Buffer(ending).copy(buf, data.length, 0); data = buf; } var eof = pe = data.length; var p = 0; this.line_number = 1; this.last_newline = 0; /* line 737 "js/lib/gherkin/lexer/is.js" */ { this.cs = lexer_start; } /* JSCodeGen::writeInit */ /* line 153 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ /* line 744 "js/lib/gherkin/lexer/is.js" */ { var _klen, _trans, _keys, _ps, _widec, _acts, _nacts; var _goto_level, _resume, _eof_trans, _again, _test_eof; var _out; _klen = _trans = _keys = _acts = _nacts = null; _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; continue; } if ( this.cs == 0) { _goto_level = _out; continue; } } if (_goto_level <= _resume) { _keys = _lexer_key_offsets[ this.cs]; _trans = _lexer_index_offsets[ this.cs]; _klen = _lexer_single_lengths[ this.cs]; _break_match = false; do { if (_klen > 0) { _lower = _keys; _upper = _keys + _klen - 1; while (true) { if (_upper < _lower) { break; } _mid = _lower + ( (_upper - _lower) >> 1 ); if ( data[p] < _lexer_trans_keys[_mid]) { _upper = _mid - 1; } else if ( data[p] > _lexer_trans_keys[_mid]) { _lower = _mid + 1; } else { _trans += (_mid - _keys); _break_match = true; break; }; } /* while */ if (_break_match) { break; } _keys += _klen; _trans += _klen; } _klen = _lexer_range_lengths[ this.cs]; if (_klen > 0) { _lower = _keys; _upper = _keys + (_klen << 1) - 2; while (true) { if (_upper < _lower) { break; } _mid = _lower + (((_upper-_lower) >> 1) & ~1); if ( data[p] < _lexer_trans_keys[_mid]) { _upper = _mid - 2; } else if ( data[p] > _lexer_trans_keys[_mid+1]) { _lower = _mid + 2; } else { _trans += ((_mid - _keys) >> 1); _break_match = true; break; } } /* while */ if (_break_match) { break; } _trans += _klen } } while (false); _trans = _lexer_indicies[_trans]; this.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; switch (_lexer_actions[_acts - 1]) { case 0: /* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.content_start = p; this.current_line = this.line_number; this.start_col = p - this.last_newline - (this.keyword+':').length; break; case 1: /* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.current_line = this.line_number; this.start_col = p - this.last_newline; break; case 2: /* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.content_start = p; break; case 3: /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ var con = this.unindent( this.start_col, this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*$/, '').replace(/\\\"\\\"\\\"/mg, '"""') ); this.listener.doc_string(con, this.current_line); break; case 4: /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ p = this.store_keyword_content('feature', data, p, eof); break; case 5: /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ p = this.store_keyword_content('background', data, p, eof); break; case 6: /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ p = this.store_keyword_content('scenario', data, p, eof); break; case 7: /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ p = this.store_keyword_content('scenario_outline', data, p, eof); break; case 8: /* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ p = this.store_keyword_content('examples', data, p, eof); break; case 9: /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); this.listener.step(this.keyword, con, this.current_line); break; case 10: /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); this.listener.comment(con, this.line_number); this.keyword_start = null; break; case 11: /* line 60 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); this.listener.tag(con, this.line_number); this.keyword_start = null; break; case 12: /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.line_number++; break; case 13: /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.last_newline = p + 1; break; case 14: /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.keyword_start = this.keyword_start || p; break; case 15: /* line 78 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, ''); this.keyword_start = null; break; case 16: /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.next_keyword_start = p; break; case 17: /* line 87 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ p = p - 1; current_row = []; this.current_line = this.line_number; break; case 18: /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.content_start = p; break; case 19: /* line 97 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\")); break; case 20: /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ this.listener.row(current_row, this.current_line); break; case 21: /* line 106 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ if(this.cs < lexer_first_final) { var content = this.current_line_content(data, p); throw "Lexing error on line " + this.line_number + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information."; } else { this.listener.eof(); } break; /* line 960 "js/lib/gherkin/lexer/is.js" */ } /* action switch */ } } if (_trigger_goto) { continue; } } if (_goto_level <= _again) { if ( this.cs == 0) { _goto_level = _out; continue; } p += 1; if (p != pe) { _goto_level = _resume; continue; } } if (_goto_level <= _test_eof) { if (p == eof) { __acts = _lexer_eof_actions[ this.cs]; __nacts = _lexer_actions[__acts]; __acts += 1; while (__nacts > 0) { __nacts -= 1; __acts += 1; switch (_lexer_actions[__acts - 1]) { case 21: /* line 106 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ if(this.cs < lexer_first_final) { var content = this.current_line_content(data, p); throw "Lexing error on line " + this.line_number + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information."; } else { this.listener.eof(); } break; /* line 999 "js/lib/gherkin/lexer/is.js" */ } /* eof action switch */ } if (_trigger_goto) { continue; } } } if (_goto_level <= _out) { break; } } } /* line 154 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/is.js.rl" */ }; Lexer.prototype.bytesToString = function(bytes) { if(typeof bytes.write == 'function') { // Node.js return bytes.toString('utf-8'); } else { var result = ""; for(var b in bytes) { result += String.fromCharCode(bytes[b]); } return result; } }; Lexer.prototype.stringToBytes = function(string) { var bytes = []; for(var i = 0; i < string.length; i++) { bytes[i] = string.charCodeAt(i); } return bytes; }; Lexer.prototype.unindent = function(startcol, text) { startcol = startcol || 0; return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), ''); }; Lexer.prototype.store_keyword_content = function(event, data, p, eof) { var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start; var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).replace(/\s+$/,""); var content_lines = content.split("\n") var name = content_lines.shift() || ""; name = name.trim(); var description = content_lines.join("\n"); this.listener[event](this.keyword, name, description, this.current_line); var nks = this.next_keyword_start; this.next_keyword_start = null; return nks ? nks - 1 : p; }; Lexer.prototype.current_line_content = function(data, p) { var rest = data.slice(this.last_newline, -1); var end = rest.indexOf(10) || -1; return this.bytesToString(rest.slice(0, end)).trim(); }; // Node.js export if(typeof exports !== 'undefined') { exports.Lexer = Lexer; } // Require.js export if (typeof define !== 'undefined' && define.amd) { define('gherkin/lexer/is', [], function() {return Lexer}); } })();