Class: Gherkin::RbLexer::Cy_gb

Inherits:
Object
  • Object
show all
Defined in:
lib/gherkin/rb_lexer/cy_gb.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(listener) ⇒ Cy_gb

Returns a new instance of Cy_gb.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
# File 'lib/gherkin/rb_lexer/cy_gb.rb', line 12

def initialize(listener)
  @listener = listener
  
# line 16 "lib/gherkin/rb_lexer/cy_gb.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, 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
]

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, 112, 113, 114, 
	115, 116, 117, 118, 119, 120, 121, 122, 
	123, 124, 125, 126, 127, 128, 129, 140, 
	142, 144, 146, 148, 150, 152, 154, 156, 
	158, 160, 162, 164, 166, 168, 170, 172, 
	174, 176, 178, 180, 197, 198, 199, 200, 
	201, 202, 203, 204, 205, 206, 219, 221, 
	223, 225, 227, 229, 231, 233, 235, 237, 
	239, 241, 243, 245, 247, 249, 253, 255, 
	257, 259, 261, 263, 265, 267, 269, 271, 
	273, 275, 277, 279, 281, 283, 285, 287, 
	289, 291, 293, 295, 297, 299, 301, 303, 
	305, 308, 310, 312, 314, 316, 318, 320, 
	322, 324, 326, 328, 330, 331, 332, 333, 
	334, 335, 336, 337, 338, 339, 340, 341, 
	342, 343, 344, 345, 352, 354, 356, 358, 
	360, 362, 364, 365, 366, 367, 368, 369, 
	370, 371, 372, 373, 374, 375, 377, 378, 
	379, 380, 381, 382, 383, 384, 385, 386, 
	387, 388, 389, 390, 403, 405, 407, 409, 
	411, 413, 415, 417, 419, 421, 423, 425, 
	427, 429, 431, 433, 437, 439, 441, 443, 
	445, 447, 449, 451, 453, 455, 457, 459, 
	461, 463, 465, 467, 469, 471, 473, 475, 
	477, 479, 481, 483, 485, 487, 489, 491, 
	492, 493, 507, 509, 511, 513, 515, 517, 
	519, 521, 523, 525, 527, 529, 531, 533, 
	535, 537, 541, 543, 545, 547, 549, 551, 
	553, 555, 557, 559, 561, 563, 565, 567, 
	569, 571, 573, 575, 577, 579, 581, 583, 
	585, 587, 589, 591, 593, 595, 597, 599, 
	601, 603, 605, 608, 610, 612, 614, 616, 
	618, 620, 622, 624, 626, 628, 630, 631, 
	635, 641, 644, 646, 652, 669, 671, 673, 
	675, 677, 679, 681, 683, 685, 687, 689, 
	691, 693, 695, 697, 699, 701, 703, 705, 
	707, 709, 711, 713, 715, 717, 719, 722, 
	724, 726, 728, 730, 732, 734, 736, 738, 
	740, 742
]

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, 
	65, 67, 69, 79, 80, 83, 89, 124, 
	9, 13, -69, -65, 10, 32, 34, 35, 
	37, 42, 64, 65, 67, 69, 79, 80, 
	83, 89, 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, 32, 110, 114, 
	114, 104, 101, 103, 101, 100, 105, 103, 
	32, 97, 119, 101, 100, 100, 58, 10, 
	10, 10, 32, 35, 37, 64, 65, 67, 
	69, 83, 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, 114, 10, 119, 10, 101, 10, 100, 
	10, 100, 10, 58, 10, 32, 34, 35, 
	37, 42, 64, 65, 67, 69, 79, 80, 
	83, 89, 124, 9, 13, 101, 102, 110, 
	100, 105, 114, 58, 10, 10, 10, 32, 
	35, 37, 42, 64, 65, 79, 80, 83, 
	89, 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, 110, 114, 10, 114, 10, 
	104, 10, 101, 10, 103, 10, 101, 10, 
	100, 10, 105, 10, 103, 10, 32, 10, 
	97, 10, 119, 10, 101, 10, 100, 10, 
	100, 10, 58, 10, 110, 10, 100, 10, 
	114, 10, 121, 10, 99, 10, 101, 10, 
	110, 10, 97, 10, 114, 10, 105, 10, 
	111, 10, 32, 58, 10, 65, 10, 109, 
	10, 108, 10, 105, 10, 110, 10, 101, 
	10, 108, 10, 108, 10, 111, 10, 108, 
	10, 110, 110, 103, 104, 114, 101, 105, 
	102, 102, 116, 105, 97, 117, 58, 10, 
	10, 10, 32, 35, 65, 124, 9, 13, 
	10, 114, 10, 119, 10, 101, 10, 100, 
	10, 100, 10, 58, 110, 100, 114, 121, 
	99, 101, 110, 97, 114, 105, 111, 32, 
	58, 65, 109, 108, 105, 110, 101, 108, 
	108, 111, 108, 58, 10, 10, 10, 32, 
	35, 37, 42, 64, 65, 79, 80, 83, 
	89, 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, 110, 114, 10, 114, 10, 
	104, 10, 101, 10, 103, 10, 101, 10, 
	100, 10, 105, 10, 103, 10, 32, 10, 
	97, 10, 119, 10, 101, 10, 100, 10, 
	100, 10, 58, 10, 110, 10, 100, 10, 
	114, 10, 121, 10, 99, 10, 101, 10, 
	110, 10, 97, 10, 114, 10, 105, 10, 
	111, 10, 110, 10, 10, 10, 32, 35, 
	37, 42, 64, 65, 67, 79, 80, 83, 
	89, 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, 110, 114, 10, 114, 10, 
	104, 10, 101, 10, 103, 10, 101, 10, 
	100, 10, 105, 10, 103, 10, 32, 10, 
	97, 10, 119, 10, 101, 10, 100, 10, 
	100, 10, 58, 10, 101, 10, 102, 10, 
	110, 10, 100, 10, 105, 10, 114, 10, 
	110, 10, 100, 10, 114, 10, 121, 10, 
	99, 10, 101, 10, 110, 10, 97, 10, 
	114, 10, 105, 10, 111, 10, 32, 58, 
	10, 65, 10, 109, 10, 108, 10, 105, 
	10, 110, 10, 101, 10, 108, 10, 108, 
	10, 111, 10, 108, 10, 110, 110, 32, 
	124, 9, 13, 10, 32, 92, 124, 9, 
	13, 10, 92, 124, 10, 92, 10, 32, 
	92, 124, 9, 13, 10, 32, 34, 35, 
	37, 42, 64, 65, 67, 69, 79, 80, 
	83, 89, 124, 9, 13, 10, 101, 10, 
	102, 10, 110, 10, 100, 10, 105, 10, 
	114, 10, 110, 10, 103, 10, 104, 10, 
	114, 10, 101, 10, 105, 10, 102, 10, 
	102, 10, 116, 10, 105, 10, 97, 10, 
	117, 10, 99, 10, 101, 10, 110, 10, 
	97, 10, 114, 10, 105, 10, 111, 10, 
	32, 58, 10, 65, 10, 109, 10, 108, 
	10, 105, 10, 110, 10, 101, 10, 108, 
	10, 108, 10, 111, 10, 108, 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, 3, 1, 1, 1, 
	1, 1, 1, 1, 1, 1, 1, 1, 
	1, 1, 1, 1, 1, 1, 9, 2, 
	2, 2, 2, 2, 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, 11, 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, 2, 2, 2, 
	2, 2, 2, 2, 2, 2, 2, 2, 
	3, 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, 5, 2, 2, 2, 2, 
	2, 2, 1, 1, 1, 1, 1, 1, 
	1, 1, 1, 1, 1, 2, 1, 1, 
	1, 1, 1, 1, 1, 1, 1, 1, 
	1, 1, 1, 11, 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, 2, 2, 2, 2, 2, 
	2, 2, 2, 2, 2, 2, 2, 1, 
	1, 12, 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, 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, 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, 3, 2, 
	2, 2, 2, 2, 2, 2, 2, 2, 
	2, 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, 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, 1, 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, 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, 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, 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, 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
]

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, 136, 138, 140, 
	142, 144, 146, 148, 150, 152, 154, 156, 
	158, 160, 162, 164, 166, 168, 170, 181, 
	184, 187, 190, 193, 196, 199, 202, 205, 
	208, 211, 214, 217, 220, 223, 226, 229, 
	232, 235, 238, 241, 258, 260, 262, 264, 
	266, 268, 270, 272, 274, 276, 289, 292, 
	295, 298, 301, 304, 307, 310, 313, 316, 
	319, 322, 325, 328, 331, 334, 339, 342, 
	345, 348, 351, 354, 357, 360, 363, 366, 
	369, 372, 375, 378, 381, 384, 387, 390, 
	393, 396, 399, 402, 405, 408, 411, 414, 
	417, 421, 424, 427, 430, 433, 436, 439, 
	442, 445, 448, 451, 454, 456, 458, 460, 
	462, 464, 466, 468, 470, 472, 474, 476, 
	478, 480, 482, 484, 491, 494, 497, 500, 
	503, 506, 509, 511, 513, 515, 517, 519, 
	521, 523, 525, 527, 529, 531, 534, 536, 
	538, 540, 542, 544, 546, 548, 550, 552, 
	554, 556, 558, 560, 573, 576, 579, 582, 
	585, 588, 591, 594, 597, 600, 603, 606, 
	609, 612, 615, 618, 623, 626, 629, 632, 
	635, 638, 641, 644, 647, 650, 653, 656, 
	659, 662, 665, 668, 671, 674, 677, 680, 
	683, 686, 689, 692, 695, 698, 701, 704, 
	706, 708, 722, 725, 728, 731, 734, 737, 
	740, 743, 746, 749, 752, 755, 758, 761, 
	764, 767, 772, 775, 778, 781, 784, 787, 
	790, 793, 796, 799, 802, 805, 808, 811, 
	814, 817, 820, 823, 826, 829, 832, 835, 
	838, 841, 844, 847, 850, 853, 856, 859, 
	862, 865, 868, 872, 875, 878, 881, 884, 
	887, 890, 893, 896, 899, 902, 905, 907, 
	911, 917, 921, 924, 930, 947, 950, 953, 
	956, 959, 962, 965, 968, 971, 974, 977, 
	980, 983, 986, 989, 992, 995, 998, 1001, 
	1004, 1007, 1010, 1013, 1016, 1019, 1022, 1026, 
	1029, 1032, 1035, 1038, 1041, 1044, 1047, 1050, 
	1053, 1056
]

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, 76, 140, 162, 164, 166, 294, 295, 
	4, 0, 3, 0, 4, 0, 4, 4, 
	5, 14, 16, 30, 33, 36, 76, 140, 
	162, 164, 166, 294, 295, 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, 337, 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, 31, 37, 47, 0, 
	38, 0, 39, 0, 40, 0, 41, 0, 
	42, 0, 43, 0, 44, 0, 45, 0, 
	46, 0, 30, 0, 48, 0, 49, 0, 
	50, 0, 51, 0, 52, 0, 54, 53, 
	54, 53, 54, 54, 4, 55, 4, 69, 
	301, 307, 319, 54, 53, 54, 56, 53, 
	54, 57, 53, 54, 58, 53, 54, 59, 
	53, 54, 60, 53, 54, 61, 53, 54, 
	62, 53, 54, 63, 53, 54, 64, 53, 
	54, 65, 53, 54, 66, 53, 54, 67, 
	53, 54, 68, 53, 54, 4, 53, 54, 
	70, 53, 54, 71, 53, 54, 72, 53, 
	54, 73, 53, 54, 74, 53, 54, 75, 
	53, 4, 4, 5, 14, 16, 30, 33, 
	36, 76, 140, 162, 164, 166, 294, 295, 
	4, 0, 77, 0, 78, 0, 79, 0, 
	80, 0, 81, 0, 82, 0, 83, 0, 
	85, 84, 85, 84, 85, 85, 4, 86, 
	100, 4, 101, 117, 119, 121, 139, 85, 
	84, 85, 87, 84, 85, 88, 84, 85, 
	89, 84, 85, 90, 84, 85, 91, 84, 
	85, 92, 84, 85, 93, 84, 85, 94, 
	84, 85, 95, 84, 85, 96, 84, 85, 
	97, 84, 85, 98, 84, 85, 99, 84, 
	85, 4, 84, 85, 75, 84, 85, 75, 
	102, 112, 84, 85, 103, 84, 85, 104, 
	84, 85, 105, 84, 85, 106, 84, 85, 
	107, 84, 85, 108, 84, 85, 109, 84, 
	85, 110, 84, 85, 111, 84, 85, 100, 
	84, 85, 113, 84, 85, 114, 84, 85, 
	115, 84, 85, 116, 84, 85, 75, 84, 
	85, 118, 84, 85, 100, 84, 85, 120, 
	84, 85, 118, 84, 85, 122, 84, 85, 
	123, 84, 85, 124, 84, 85, 125, 84, 
	85, 126, 84, 85, 127, 84, 85, 128, 
	84, 85, 129, 75, 84, 85, 130, 84, 
	85, 131, 84, 85, 132, 84, 85, 133, 
	84, 85, 134, 84, 85, 135, 84, 85, 
	136, 84, 85, 137, 84, 85, 138, 84, 
	85, 116, 84, 85, 111, 84, 141, 0, 
	142, 0, 143, 0, 144, 0, 145, 0, 
	146, 0, 147, 0, 148, 0, 149, 0, 
	150, 0, 151, 0, 152, 0, 153, 0, 
	155, 154, 155, 154, 155, 155, 4, 156, 
	4, 155, 154, 155, 157, 154, 155, 158, 
	154, 155, 159, 154, 155, 160, 154, 155, 
	161, 154, 155, 75, 154, 163, 0, 30, 
	0, 165, 0, 163, 0, 167, 0, 168, 
	0, 169, 0, 170, 0, 171, 0, 172, 
	0, 173, 0, 174, 231, 0, 175, 0, 
	176, 0, 177, 0, 178, 0, 179, 0, 
	180, 0, 181, 0, 182, 0, 183, 0, 
	184, 0, 185, 0, 187, 186, 187, 186, 
	187, 187, 4, 188, 202, 4, 203, 219, 
	221, 223, 230, 187, 186, 187, 189, 186, 
	187, 190, 186, 187, 191, 186, 187, 192, 
	186, 187, 193, 186, 187, 194, 186, 187, 
	195, 186, 187, 196, 186, 187, 197, 186, 
	187, 198, 186, 187, 199, 186, 187, 200, 
	186, 187, 201, 186, 187, 4, 186, 187, 
	75, 186, 187, 75, 204, 214, 186, 187, 
	205, 186, 187, 206, 186, 187, 207, 186, 
	187, 208, 186, 187, 209, 186, 187, 210, 
	186, 187, 211, 186, 187, 212, 186, 187, 
	213, 186, 187, 202, 186, 187, 215, 186, 
	187, 216, 186, 187, 217, 186, 187, 218, 
	186, 187, 75, 186, 187, 220, 186, 187, 
	202, 186, 187, 222, 186, 187, 220, 186, 
	187, 224, 186, 187, 225, 186, 187, 226, 
	186, 187, 227, 186, 187, 228, 186, 187, 
	229, 186, 187, 218, 186, 187, 213, 186, 
	233, 232, 233, 232, 233, 233, 4, 234, 
	248, 4, 249, 265, 271, 273, 275, 293, 
	233, 232, 233, 235, 232, 233, 236, 232, 
	233, 237, 232, 233, 238, 232, 233, 239, 
	232, 233, 240, 232, 233, 241, 232, 233, 
	242, 232, 233, 243, 232, 233, 244, 232, 
	233, 245, 232, 233, 246, 232, 233, 247, 
	232, 233, 4, 232, 233, 75, 232, 233, 
	75, 250, 260, 232, 233, 251, 232, 233, 
	252, 232, 233, 253, 232, 233, 254, 232, 
	233, 255, 232, 233, 256, 232, 233, 257, 
	232, 233, 258, 232, 233, 259, 232, 233, 
	248, 232, 233, 261, 232, 233, 262, 232, 
	233, 263, 232, 233, 264, 232, 233, 75, 
	232, 233, 266, 232, 233, 267, 232, 233, 
	268, 232, 233, 269, 232, 233, 270, 232, 
	233, 264, 232, 233, 272, 232, 233, 248, 
	232, 233, 274, 232, 233, 272, 232, 233, 
	276, 232, 233, 277, 232, 233, 278, 232, 
	233, 279, 232, 233, 280, 232, 233, 281, 
	232, 233, 282, 232, 233, 283, 75, 232, 
	233, 284, 232, 233, 285, 232, 233, 286, 
	232, 233, 287, 232, 233, 288, 232, 233, 
	289, 232, 233, 290, 232, 233, 291, 232, 
	233, 292, 232, 233, 264, 232, 233, 259, 
	232, 46, 0, 295, 296, 295, 0, 300, 
	299, 298, 296, 299, 297, 0, 298, 296, 
	297, 0, 298, 297, 300, 299, 298, 296, 
	299, 297, 300, 300, 5, 14, 16, 30, 
	33, 36, 76, 140, 162, 164, 166, 294, 
	295, 300, 0, 54, 302, 53, 54, 303, 
	53, 54, 304, 53, 54, 305, 53, 54, 
	306, 53, 54, 74, 53, 54, 308, 53, 
	54, 309, 53, 54, 310, 53, 54, 311, 
	53, 54, 312, 53, 54, 313, 53, 54, 
	314, 53, 54, 315, 53, 54, 316, 53, 
	54, 317, 53, 54, 318, 53, 54, 74, 
	53, 54, 320, 53, 54, 321, 53, 54, 
	322, 53, 54, 323, 53, 54, 324, 53, 
	54, 325, 53, 54, 326, 53, 54, 327, 
	75, 53, 54, 328, 53, 54, 329, 53, 
	54, 330, 53, 54, 331, 53, 54, 332, 
	53, 54, 333, 53, 54, 334, 53, 54, 
	335, 53, 54, 336, 53, 54, 74, 53, 
	0, 0
]

class << self
	attr_accessor :_lexer_trans_actions
	private :_lexer_trans_actions, :_lexer_trans_actions=
end
self._lexer_trans_actions = [
	0, 47, 0, 3, 1, 0, 25, 1, 
	25, 25, 25, 25, 25, 25, 25, 31, 
	0, 39, 0, 39, 0, 39, 47, 0, 
	3, 1, 0, 25, 1, 25, 25, 25, 
	25, 25, 25, 25, 31, 0, 39, 0, 
	39, 0, 39, 47, 0, 0, 39, 119, 
	41, 41, 41, 5, 111, 29, 29, 29, 
	0, 111, 29, 29, 29, 0, 111, 29, 
	0, 29, 0, 95, 7, 7, 39, 47, 
	0, 0, 39, 103, 21, 0, 47, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 39, 50, 
	99, 19, 0, 39, 39, 39, 39, 0, 
	23, 107, 23, 23, 44, 23, 0, 47, 
	0, 1, 0, 39, 0, 0, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 124, 50, 
	47, 0, 47, 0, 62, 29, 62, 77, 
	77, 77, 77, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 9, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 9, 
	0, 115, 27, 53, 50, 27, 56, 50, 
	56, 56, 56, 56, 56, 56, 56, 59, 
	27, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	124, 50, 47, 0, 47, 0, 65, 29, 
	77, 65, 77, 77, 77, 77, 77, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 11, 0, 47, 11, 0, 47, 11, 
	0, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 11, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 11, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	124, 50, 47, 0, 47, 0, 74, 77, 
	74, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 17, 0, 0, 39, 0, 
	39, 0, 39, 0, 39, 0, 39, 0, 
	39, 0, 39, 0, 39, 0, 39, 0, 
	39, 0, 39, 0, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 0, 39, 0, 39, 
	0, 39, 0, 39, 124, 50, 47, 0, 
	47, 0, 71, 29, 77, 71, 77, 77, 
	77, 77, 77, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 15, 0, 47, 
	15, 0, 47, 15, 0, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 15, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	124, 50, 47, 0, 47, 0, 68, 29, 
	77, 68, 77, 77, 77, 77, 77, 77, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 13, 0, 47, 13, 0, 47, 
	13, 0, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 13, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 13, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 0, 39, 0, 0, 0, 39, 47, 
	33, 33, 80, 33, 33, 39, 0, 35, 
	0, 39, 0, 0, 47, 0, 0, 35, 
	0, 0, 47, 0, 86, 83, 37, 89, 
	83, 89, 89, 89, 89, 89, 89, 89, 
	92, 0, 39, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	9, 0, 47, 0, 0, 47, 0, 0, 
	47, 0, 0, 47, 0, 0, 47, 0, 
	0, 47, 0, 0, 47, 0, 0, 47, 
	0, 0, 47, 0, 0, 47, 0, 0, 
	0, 0
]

class << self
	attr_accessor :_lexer_eof_actions
	private :_lexer_eof_actions, :_lexer_eof_actions=
end
self._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
]

class << self
	attr_accessor :lexer_start
end
self.lexer_start = 1;
class << self
	attr_accessor :lexer_first_final
end
self.lexer_first_final = 337;
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 121 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
end

Instance Method Details

#current_line_content(data, p) ⇒ Object



1012
1013
1014
1015
# File 'lib/gherkin/rb_lexer/cy_gb.rb', line 1012

def current_line_content(data, p)
  rest = data[@last_newline..-1]
  utf8_pack(rest[0..rest.index(10)||-1]).strip
end

#scan(data) ⇒ Object



692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
# File 'lib/gherkin/rb_lexer/cy_gb.rb', line 692

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 701 "lib/gherkin/rb_lexer/cy_gb.rb"
begin
	p ||= 0
	pe ||= data.length
	cs = lexer_start
end

# line 131 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
  
# line 710 "lib/gherkin/rb_lexer/cy_gb.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 9 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @content_start = p
    @current_line = @line_number
    @start_col = p - @last_newline - "#{@keyword}:".length
  		end
when 1 then
# line 15 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @current_line = @line_number
    @start_col = p - @last_newline
  		end
when 2 then
# line 20 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @content_start = p
  		end
when 3 then
# line 24 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.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
when 4 then
# line 29 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    p = store_keyword_content(:feature, data, p, eof)
  		end
when 5 then
# line 33 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    p = store_keyword_content(:background, data, p, eof)
  		end
when 6 then
# line 37 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    p = store_keyword_content(:scenario, data, p, eof)
  		end
when 7 then
# line 41 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    p = store_keyword_content(:scenario_outline, data, p, eof)
  		end
when 8 then
# line 45 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    p = store_keyword_content(:examples, data, p, eof)
  		end
when 9 then
# line 49 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    con = utf8_pack(data[@content_start...p]).strip
    @listener.step(@keyword, con, @current_line)
  		end
when 10 then
# line 54 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    con = utf8_pack(data[@content_start...p]).strip
    @listener.comment(con, @line_number)
    @keyword_start = nil
  		end
when 11 then
# line 60 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    con = utf8_pack(data[@content_start...p]).strip
    @listener.tag(con, @current_line)
    @keyword_start = nil
  		end
when 12 then
# line 66 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @line_number += 1
  		end
when 13 then
# line 70 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @last_newline = p + 1
  		end
when 14 then
# line 74 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @keyword_start ||= p
  		end
when 15 then
# line 78 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
    @keyword_start = nil
  		end
when 16 then
# line 83 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @next_keyword_start = p
  		end
when 17 then
# line 87 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    p = p - 1
    current_row = []
    @current_line = @line_number
  		end
when 18 then
# line 93 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @content_start = p
  		end
when 19 then
# line 97 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    con = utf8_pack(data[@content_start...p]).strip
    current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
  		end
when 20 then
# line 102 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    @listener.row(current_row, @current_line)
  		end
when 21 then
# line 106 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    if cs < lexer_first_final
      content = current_line_content(data, p)
      raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information." % [@line_number, content])
    else
      @listener.eof
    end
  		end
# line 940 "lib/gherkin/rb_lexer/cy_gb.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 106 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
		begin

    if cs < lexer_first_final
      content = current_line_content(data, p)
      raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information." % [@line_number, content])
    else
      @listener.eof
    end
  		end
# line 979 "lib/gherkin/rb_lexer/cy_gb.rb"
		end # eof action switch
	end
	if _trigger_goto
		next
	end
end
	end
	if _goto_level <= _out
		break
	end
	end
	end

# line 132 "/home/ben/oib/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl"
end

#store_keyword_content(event, data, p, eof) ⇒ Object



999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
# File 'lib/gherkin/rb_lexer/cy_gb.rb', line 999

def store_keyword_content(event, data, p, eof)
  end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
  content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
  content_lines = content.split("\n")
  name = content_lines.shift || ""
  name.strip!
  description = content_lines.join("\n")
  @listener.__send__(event, @keyword, name, description, @current_line)
  @next_keyword_start ? @next_keyword_start - 1 : p
ensure
  @next_keyword_start = nil
end

#unindent(startcol, text) ⇒ Object



995
996
997
# File 'lib/gherkin/rb_lexer/cy_gb.rb', line 995

def unindent(startcol, text)
  text.gsub(/^[\t ]{0,#{startcol}}/, "")
end

#utf8_pack(array) ⇒ Object



1018
1019
1020
# File 'lib/gherkin/rb_lexer/cy_gb.rb', line 1018

def utf8_pack(array)
  array.pack("c*").force_encoding("UTF-8")
end