RedCloth 4.2.3 → 4.2.4.pre1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of RedCloth might be problematic. Click here for more details.
- data/.gitignore +25 -0
- data/.rspec +1 -0
- data/.rvmrc +1 -0
- data/CHANGELOG +6 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +33 -0
- data/README +18 -9
- data/Rakefile +7 -254
- data/doc/textile_reference.html +631 -0
- data/ext/redcloth_scan/extconf.rb +4 -7
- data/ext/redcloth_scan/redcloth_attributes.c +37 -32
- data/ext/redcloth_scan/redcloth_inline.c +135 -130
- data/ext/redcloth_scan/redcloth_scan.c +223 -218
- data/lib/redcloth.rb +8 -7
- data/lib/redcloth/formatters/latex_entities.yml +8 -8
- data/lib/redcloth/version.rb +6 -5
- data/redcloth.gemspec +48 -0
- data/spec/benchmark_spec.rb +15 -0
- data/spec/fixtures/code.yml +6 -6
- data/spec/fixtures/table.yml +2 -2
- data/spec/fixtures/textism.yml +3 -3
- data/spec/fixtures/threshold.yml +3 -3
- data/spec/spec_helper.rb +26 -32
- data/tasks/compile.rake +47 -0
- data/tasks/gems.rake +38 -0
- data/tasks/ragel_extension_task.rb +127 -0
- data/tasks/release.rake +15 -0
- data/tasks/rspec.rake +11 -0
- data/tasks/rvm.rake +43 -0
- data/test/ragel_profiler.rb +73 -0
- data/test/validate_fixtures.rb +74 -0
- metadata +125 -46
- data/RedCloth.gemspec +0 -35
- data/spec/differs/inline.rb +0 -48
- data/spec/spec.opts +0 -3
@@ -1,9 +1,6 @@
|
|
1
1
|
require 'mkmf'
|
2
|
-
|
3
|
-
$CFLAGS <<
|
4
|
-
|
5
|
-
|
6
|
-
# dir_config("redcloth_scan")
|
7
|
-
# have_library("c", "main")
|
8
|
-
|
2
|
+
CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
|
3
|
+
$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc/
|
4
|
+
dir_config("redcloth_scan")
|
5
|
+
have_library("c", "main")
|
9
6
|
create_makefile("redcloth_scan")
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
#line 1 "ragel/redcloth_attributes.c.rl"
|
2
3
|
/*
|
3
4
|
* redcloth_attributes.c.rl
|
4
5
|
*
|
@@ -7,11 +8,12 @@
|
|
7
8
|
#include <ruby.h>
|
8
9
|
#include "redcloth.h"
|
9
10
|
|
10
|
-
|
11
|
+
|
12
|
+
#line 15 "ragel/redcloth_attributes.c.rl"
|
11
13
|
|
12
14
|
|
13
15
|
|
14
|
-
#line
|
16
|
+
#line 17 "ext/redcloth_scan/redcloth_attributes.c"
|
15
17
|
static const char _redcloth_attributes_actions[] = {
|
16
18
|
0, 1, 2, 1, 4, 1, 5, 1,
|
17
19
|
6, 1, 7, 1, 8, 1, 11, 1,
|
@@ -402,7 +404,8 @@ static const int redcloth_attributes_error = 0;
|
|
402
404
|
static const int redcloth_attributes_en_inline = 61;
|
403
405
|
static const int redcloth_attributes_en_link_says = 29;
|
404
406
|
|
405
|
-
|
407
|
+
|
408
|
+
#line 18 "ragel/redcloth_attributes.c.rl"
|
406
409
|
|
407
410
|
|
408
411
|
VALUE
|
@@ -417,19 +420,20 @@ redcloth_attribute_parser(machine, self, p, pe)
|
|
417
420
|
VALUE attr_regs = rb_hash_new();
|
418
421
|
|
419
422
|
|
420
|
-
#line
|
423
|
+
#line 424 "ext/redcloth_scan/redcloth_attributes.c"
|
421
424
|
{
|
422
425
|
cs = redcloth_attributes_start;
|
423
426
|
ts = 0;
|
424
427
|
te = 0;
|
425
428
|
act = 0;
|
426
429
|
}
|
427
|
-
|
430
|
+
|
431
|
+
#line 32 "ragel/redcloth_attributes.c.rl"
|
428
432
|
|
429
433
|
cs = machine;
|
430
434
|
|
431
435
|
|
432
|
-
#line
|
436
|
+
#line 437 "ext/redcloth_scan/redcloth_attributes.c"
|
433
437
|
{
|
434
438
|
int _klen;
|
435
439
|
unsigned int _trans;
|
@@ -447,10 +451,10 @@ _resume:
|
|
447
451
|
while ( _nacts-- > 0 ) {
|
448
452
|
switch ( *_acts++ ) {
|
449
453
|
case 12:
|
450
|
-
#line 1 "
|
454
|
+
#line 1 "NONE"
|
451
455
|
{ts = p;}
|
452
456
|
break;
|
453
|
-
#line
|
457
|
+
#line 458 "ext/redcloth_scan/redcloth_attributes.c"
|
454
458
|
}
|
455
459
|
}
|
456
460
|
|
@@ -517,78 +521,78 @@ _eof_trans:
|
|
517
521
|
switch ( *_acts++ )
|
518
522
|
{
|
519
523
|
case 0:
|
520
|
-
#line 5 "
|
524
|
+
#line 5 "ragel/redcloth_common.rl"
|
521
525
|
{ MARK(); }
|
522
526
|
break;
|
523
527
|
case 1:
|
524
|
-
#line 6 "
|
528
|
+
#line 6 "ragel/redcloth_common.rl"
|
525
529
|
{ MARK_B(); }
|
526
530
|
break;
|
527
531
|
case 2:
|
528
|
-
#line 7 "
|
532
|
+
#line 7 "ragel/redcloth_common.rl"
|
529
533
|
{ MARK_ATTR(); }
|
530
534
|
break;
|
531
535
|
case 3:
|
532
|
-
#line 9 "
|
536
|
+
#line 9 "ragel/redcloth_common.rl"
|
533
537
|
{ STORE("text"); }
|
534
538
|
break;
|
535
539
|
case 4:
|
536
|
-
#line 10 "
|
540
|
+
#line 10 "ragel/redcloth_common.rl"
|
537
541
|
{ CLEAR_REGS(); RESET_REG(); }
|
538
542
|
break;
|
539
543
|
case 5:
|
540
|
-
#line 35 "
|
544
|
+
#line 35 "ragel/redcloth_common.rl"
|
541
545
|
{ STORE_ATTR("class"); }
|
542
546
|
break;
|
543
547
|
case 6:
|
544
|
-
#line 36 "
|
548
|
+
#line 36 "ragel/redcloth_common.rl"
|
545
549
|
{ STORE_ATTR("id"); }
|
546
550
|
break;
|
547
551
|
case 7:
|
548
|
-
#line 38 "
|
552
|
+
#line 38 "ragel/redcloth_common.rl"
|
549
553
|
{ STORE_ATTR("lang"); }
|
550
554
|
break;
|
551
555
|
case 8:
|
552
|
-
#line 39 "
|
556
|
+
#line 39 "ragel/redcloth_common.rl"
|
553
557
|
{ STORE_ATTR("style"); }
|
554
558
|
break;
|
555
559
|
case 9:
|
556
|
-
#line 20 "
|
560
|
+
#line 20 "ragel/redcloth_attributes.rl"
|
557
561
|
{ STORE("name"); }
|
558
562
|
break;
|
559
563
|
case 10:
|
560
|
-
#line 21 "
|
564
|
+
#line 21 "ragel/redcloth_attributes.rl"
|
561
565
|
{ STORE_B("name_without_attributes"); }
|
562
566
|
break;
|
563
567
|
case 13:
|
564
|
-
#line 1 "
|
568
|
+
#line 1 "NONE"
|
565
569
|
{te = p+1;}
|
566
570
|
break;
|
567
571
|
case 14:
|
568
|
-
#line 16 "
|
572
|
+
#line 16 "ragel/redcloth_attributes.rl"
|
569
573
|
{te = p;p--;{ SET_ATTRIBUTES(); }}
|
570
574
|
break;
|
571
575
|
case 15:
|
572
|
-
#line 16 "
|
576
|
+
#line 16 "ragel/redcloth_attributes.rl"
|
573
577
|
{{p = ((te))-1;}{ SET_ATTRIBUTES(); }}
|
574
578
|
break;
|
575
579
|
case 16:
|
576
|
-
#line 25 "
|
580
|
+
#line 25 "ragel/redcloth_attributes.rl"
|
577
581
|
{te = p;p--;{ SET_ATTRIBUTES(); }}
|
578
582
|
break;
|
579
583
|
case 17:
|
580
|
-
#line 26 "
|
584
|
+
#line 26 "ragel/redcloth_attributes.rl"
|
581
585
|
{te = p;p--;{ SET_ATTRIBUTE("name_without_attributes", "name"); }}
|
582
586
|
break;
|
583
587
|
case 18:
|
584
|
-
#line 25 "
|
588
|
+
#line 25 "ragel/redcloth_attributes.rl"
|
585
589
|
{{p = ((te))-1;}{ SET_ATTRIBUTES(); }}
|
586
590
|
break;
|
587
591
|
case 19:
|
588
|
-
#line 26 "
|
592
|
+
#line 26 "ragel/redcloth_attributes.rl"
|
589
593
|
{{p = ((te))-1;}{ SET_ATTRIBUTE("name_without_attributes", "name"); }}
|
590
594
|
break;
|
591
|
-
#line
|
595
|
+
#line 596 "ext/redcloth_scan/redcloth_attributes.c"
|
592
596
|
}
|
593
597
|
}
|
594
598
|
|
@@ -598,10 +602,10 @@ _again:
|
|
598
602
|
while ( _nacts-- > 0 ) {
|
599
603
|
switch ( *_acts++ ) {
|
600
604
|
case 11:
|
601
|
-
#line 1 "
|
605
|
+
#line 1 "NONE"
|
602
606
|
{ts = 0;}
|
603
607
|
break;
|
604
|
-
#line
|
608
|
+
#line 609 "ext/redcloth_scan/redcloth_attributes.c"
|
605
609
|
}
|
606
610
|
}
|
607
611
|
|
@@ -620,7 +624,8 @@ _again:
|
|
620
624
|
|
621
625
|
_out: {}
|
622
626
|
}
|
623
|
-
|
627
|
+
|
628
|
+
#line 36 "ragel/redcloth_attributes.c.rl"
|
624
629
|
|
625
630
|
return regs;
|
626
631
|
}
|
@@ -641,4 +646,4 @@ redcloth_link_attributes(self, str)
|
|
641
646
|
StringValue(str);
|
642
647
|
int cs = redcloth_attributes_en_link_says;
|
643
648
|
return redcloth_attribute_parser(cs, self, RSTRING_PTR(str), RSTRING_PTR(str) + RSTRING_LEN(str) + 1);
|
644
|
-
}
|
649
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
#line 1 "ragel/redcloth_inline.c.rl"
|
2
3
|
/*
|
3
4
|
* redcloth_inline.c.rl
|
4
5
|
*
|
@@ -7,11 +8,12 @@
|
|
7
8
|
#include <ruby.h>
|
8
9
|
#include "redcloth.h"
|
9
10
|
|
10
|
-
|
11
|
+
|
12
|
+
#line 15 "ragel/redcloth_inline.c.rl"
|
11
13
|
|
12
14
|
|
13
15
|
|
14
|
-
#line
|
16
|
+
#line 17 "ext/redcloth_scan/redcloth_inline.c"
|
15
17
|
static const char _redcloth_inline_actions[] = {
|
16
18
|
0, 1, 0, 1, 1, 1, 3, 1,
|
17
19
|
4, 1, 8, 1, 9, 1, 10, 1,
|
@@ -7111,7 +7113,8 @@ static const int redcloth_inline_error = 0;
|
|
7111
7113
|
static const int redcloth_inline_en_code_tag = 1516;
|
7112
7114
|
static const int redcloth_inline_en_main = 1270;
|
7113
7115
|
|
7114
|
-
|
7116
|
+
|
7117
|
+
#line 18 "ragel/redcloth_inline.c.rl"
|
7115
7118
|
|
7116
7119
|
VALUE
|
7117
7120
|
red_pass(VALUE self, VALUE regs, VALUE ref, ID meth, VALUE refs)
|
@@ -7252,17 +7255,18 @@ redcloth_inline(self, p, pe, refs)
|
|
7252
7255
|
VALUE attr_regs = Qnil;
|
7253
7256
|
|
7254
7257
|
|
7255
|
-
#line
|
7258
|
+
#line 7259 "ext/redcloth_scan/redcloth_inline.c"
|
7256
7259
|
{
|
7257
7260
|
cs = redcloth_inline_start;
|
7258
7261
|
ts = 0;
|
7259
7262
|
te = 0;
|
7260
7263
|
act = 0;
|
7261
7264
|
}
|
7262
|
-
|
7265
|
+
|
7266
|
+
#line 158 "ragel/redcloth_inline.c.rl"
|
7263
7267
|
|
7264
7268
|
|
7265
|
-
#line
|
7269
|
+
#line 7270 "ext/redcloth_scan/redcloth_inline.c"
|
7266
7270
|
{
|
7267
7271
|
int _klen;
|
7268
7272
|
unsigned int _trans;
|
@@ -7281,14 +7285,14 @@ _resume:
|
|
7281
7285
|
while ( _nacts-- > 0 ) {
|
7282
7286
|
switch ( *_acts++ ) {
|
7283
7287
|
case 3:
|
7284
|
-
#line 9 "
|
7288
|
+
#line 9 "ragel/redcloth_common.rl"
|
7285
7289
|
{ STORE("text"); }
|
7286
7290
|
break;
|
7287
7291
|
case 22:
|
7288
|
-
#line 1 "
|
7292
|
+
#line 1 "NONE"
|
7289
7293
|
{ts = p;}
|
7290
7294
|
break;
|
7291
|
-
#line
|
7295
|
+
#line 7296 "ext/redcloth_scan/redcloth_inline.c"
|
7292
7296
|
}
|
7293
7297
|
}
|
7294
7298
|
|
@@ -7313,7 +7317,7 @@ _resume:
|
|
7313
7317
|
case 0: {
|
7314
7318
|
_widec = (short)(128 + ((*p) - -128));
|
7315
7319
|
if (
|
7316
|
-
#line 10 "
|
7320
|
+
#line 10 "ragel/redcloth_common.c.rl"
|
7317
7321
|
|
7318
7322
|
p == orig_p || *(p-1) == '\r' || *(p-1) == '\n' || *(p-1) == '\f'
|
7319
7323
|
) _widec += 256;
|
@@ -7322,7 +7326,7 @@ _resume:
|
|
7322
7326
|
case 1: {
|
7323
7327
|
_widec = (short)(640 + ((*p) - -128));
|
7324
7328
|
if (
|
7325
|
-
#line 13 "
|
7329
|
+
#line 13 "ragel/redcloth_common.c.rl"
|
7326
7330
|
|
7327
7331
|
p == orig_p || *(p-1) == '\r' || *(p-1) == '\n' || *(p-1) == '\f' || *(p-1) == ' '
|
7328
7332
|
) _widec += 256;
|
@@ -7397,459 +7401,459 @@ _eof_trans:
|
|
7397
7401
|
switch ( *_acts++ )
|
7398
7402
|
{
|
7399
7403
|
case 0:
|
7400
|
-
#line 5 "
|
7404
|
+
#line 5 "ragel/redcloth_common.rl"
|
7401
7405
|
{ MARK(); }
|
7402
7406
|
break;
|
7403
7407
|
case 1:
|
7404
|
-
#line 7 "
|
7408
|
+
#line 7 "ragel/redcloth_common.rl"
|
7405
7409
|
{ MARK_ATTR(); }
|
7406
7410
|
break;
|
7407
7411
|
case 2:
|
7408
|
-
#line 8 "
|
7412
|
+
#line 8 "ragel/redcloth_common.rl"
|
7409
7413
|
{ SET_ATTRIBUTES(); }
|
7410
7414
|
break;
|
7411
7415
|
case 3:
|
7412
|
-
#line 9 "
|
7416
|
+
#line 9 "ragel/redcloth_common.rl"
|
7413
7417
|
{ STORE("text"); }
|
7414
7418
|
break;
|
7415
7419
|
case 4:
|
7416
|
-
#line 10 "
|
7420
|
+
#line 10 "ragel/redcloth_common.rl"
|
7417
7421
|
{ CLEAR_REGS(); RESET_REG(); }
|
7418
7422
|
break;
|
7419
7423
|
case 5:
|
7420
|
-
#line 26 "
|
7424
|
+
#line 26 "ragel/redcloth_common.rl"
|
7421
7425
|
{ ATTR_SET("align", "left"); }
|
7422
7426
|
break;
|
7423
7427
|
case 6:
|
7424
|
-
#line 27 "
|
7428
|
+
#line 27 "ragel/redcloth_common.rl"
|
7425
7429
|
{ ATTR_SET("align", "right"); }
|
7426
7430
|
break;
|
7427
7431
|
case 7:
|
7428
|
-
#line 29 "
|
7432
|
+
#line 29 "ragel/redcloth_common.rl"
|
7429
7433
|
{ ATTR_SET("align", "center"); }
|
7430
7434
|
break;
|
7431
7435
|
case 8:
|
7432
|
-
#line 35 "
|
7436
|
+
#line 35 "ragel/redcloth_common.rl"
|
7433
7437
|
{ STORE_ATTR("class"); }
|
7434
7438
|
break;
|
7435
7439
|
case 9:
|
7436
|
-
#line 36 "
|
7440
|
+
#line 36 "ragel/redcloth_common.rl"
|
7437
7441
|
{ STORE_ATTR("id"); }
|
7438
7442
|
break;
|
7439
7443
|
case 10:
|
7440
|
-
#line 38 "
|
7444
|
+
#line 38 "ragel/redcloth_common.rl"
|
7441
7445
|
{ STORE_ATTR("lang"); }
|
7442
7446
|
break;
|
7443
7447
|
case 11:
|
7444
|
-
#line 39 "
|
7448
|
+
#line 39 "ragel/redcloth_common.rl"
|
7445
7449
|
{ STORE_ATTR("style"); }
|
7446
7450
|
break;
|
7447
7451
|
case 12:
|
7448
|
-
#line 29 "
|
7452
|
+
#line 29 "ragel/redcloth_inline.rl"
|
7449
7453
|
{ STORE("name"); }
|
7450
7454
|
break;
|
7451
7455
|
case 13:
|
7452
|
-
#line 31 "
|
7456
|
+
#line 31 "ragel/redcloth_inline.rl"
|
7453
7457
|
{ STORE_URL("href"); }
|
7454
7458
|
break;
|
7455
7459
|
case 14:
|
7456
|
-
#line 33 "
|
7460
|
+
#line 33 "ragel/redcloth_inline.rl"
|
7457
7461
|
{ STORE("href"); }
|
7458
7462
|
break;
|
7459
7463
|
case 15:
|
7460
|
-
#line 37 "
|
7464
|
+
#line 37 "ragel/redcloth_inline.rl"
|
7461
7465
|
{ STORE("src"); }
|
7462
7466
|
break;
|
7463
7467
|
case 16:
|
7464
|
-
#line 38 "
|
7468
|
+
#line 38 "ragel/redcloth_inline.rl"
|
7465
7469
|
{ STORE_URL("href"); }
|
7466
7470
|
break;
|
7467
7471
|
case 17:
|
7468
|
-
#line 46 "
|
7472
|
+
#line 46 "ragel/redcloth_inline.rl"
|
7469
7473
|
{ p--; }
|
7470
7474
|
break;
|
7471
7475
|
case 18:
|
7472
|
-
#line 57 "
|
7476
|
+
#line 57 "ragel/redcloth_inline.rl"
|
7473
7477
|
{ STORE("beginning_space"); }
|
7474
7478
|
break;
|
7475
7479
|
case 19:
|
7476
|
-
#line 65 "
|
7480
|
+
#line 65 "ragel/redcloth_inline.rl"
|
7477
7481
|
{ STORE_ATTR("text"); }
|
7478
7482
|
break;
|
7479
7483
|
case 20:
|
7480
|
-
#line 82 "
|
7484
|
+
#line 82 "ragel/redcloth_inline.rl"
|
7481
7485
|
{ STORE("title"); }
|
7482
7486
|
break;
|
7483
7487
|
case 23:
|
7484
|
-
#line 1 "
|
7488
|
+
#line 1 "NONE"
|
7485
7489
|
{te = p+1;}
|
7486
7490
|
break;
|
7487
7491
|
case 24:
|
7488
|
-
#line 103 "
|
7492
|
+
#line 103 "ragel/redcloth_inline.rl"
|
7489
7493
|
{te = p+1;{ CAT(block); {cs = 1270; goto _again;} }}
|
7490
7494
|
break;
|
7491
7495
|
case 25:
|
7492
|
-
#line 6 "
|
7496
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
7493
7497
|
{te = p+1;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
7494
7498
|
break;
|
7495
7499
|
case 26:
|
7496
|
-
#line 6 "
|
7500
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
7497
7501
|
{te = p;p--;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
7498
7502
|
break;
|
7499
7503
|
case 27:
|
7500
|
-
#line 6 "
|
7504
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
7501
7505
|
{{p = ((te))-1;}{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
7502
7506
|
break;
|
7503
7507
|
case 28:
|
7504
|
-
#line 110 "
|
7508
|
+
#line 110 "ragel/redcloth_inline.rl"
|
7505
7509
|
{act = 4;}
|
7506
7510
|
break;
|
7507
7511
|
case 29:
|
7508
|
-
#line 112 "
|
7512
|
+
#line 112 "ragel/redcloth_inline.rl"
|
7509
7513
|
{act = 5;}
|
7510
7514
|
break;
|
7511
7515
|
case 30:
|
7512
|
-
#line 115 "
|
7516
|
+
#line 115 "ragel/redcloth_inline.rl"
|
7513
7517
|
{act = 7;}
|
7514
7518
|
break;
|
7515
7519
|
case 31:
|
7516
|
-
#line 116 "
|
7520
|
+
#line 116 "ragel/redcloth_inline.rl"
|
7517
7521
|
{act = 8;}
|
7518
7522
|
break;
|
7519
7523
|
case 32:
|
7520
|
-
#line 118 "
|
7524
|
+
#line 118 "ragel/redcloth_inline.rl"
|
7521
7525
|
{act = 10;}
|
7522
7526
|
break;
|
7523
7527
|
case 33:
|
7524
|
-
#line 120 "
|
7528
|
+
#line 120 "ragel/redcloth_inline.rl"
|
7525
7529
|
{act = 12;}
|
7526
7530
|
break;
|
7527
7531
|
case 34:
|
7528
|
-
#line 134 "
|
7532
|
+
#line 134 "ragel/redcloth_inline.rl"
|
7529
7533
|
{act = 26;}
|
7530
7534
|
break;
|
7531
7535
|
case 35:
|
7532
|
-
#line 135 "
|
7536
|
+
#line 135 "ragel/redcloth_inline.rl"
|
7533
7537
|
{act = 27;}
|
7534
7538
|
break;
|
7535
7539
|
case 36:
|
7536
|
-
#line 136 "
|
7540
|
+
#line 136 "ragel/redcloth_inline.rl"
|
7537
7541
|
{act = 28;}
|
7538
7542
|
break;
|
7539
7543
|
case 37:
|
7540
|
-
#line 138 "
|
7544
|
+
#line 138 "ragel/redcloth_inline.rl"
|
7541
7545
|
{act = 29;}
|
7542
7546
|
break;
|
7543
7547
|
case 38:
|
7544
|
-
#line 139 "
|
7548
|
+
#line 139 "ragel/redcloth_inline.rl"
|
7545
7549
|
{act = 30;}
|
7546
7550
|
break;
|
7547
7551
|
case 39:
|
7548
|
-
#line 141 "
|
7552
|
+
#line 141 "ragel/redcloth_inline.rl"
|
7549
7553
|
{act = 32;}
|
7550
7554
|
break;
|
7551
7555
|
case 40:
|
7552
|
-
#line 142 "
|
7556
|
+
#line 142 "ragel/redcloth_inline.rl"
|
7553
7557
|
{act = 33;}
|
7554
7558
|
break;
|
7555
7559
|
case 41:
|
7556
|
-
#line 151 "
|
7560
|
+
#line 151 "ragel/redcloth_inline.rl"
|
7557
7561
|
{act = 41;}
|
7558
7562
|
break;
|
7559
7563
|
case 42:
|
7560
|
-
#line 152 "
|
7564
|
+
#line 152 "ragel/redcloth_inline.rl"
|
7561
7565
|
{act = 42;}
|
7562
7566
|
break;
|
7563
7567
|
case 43:
|
7564
|
-
#line 154 "
|
7568
|
+
#line 154 "ragel/redcloth_inline.rl"
|
7565
7569
|
{act = 44;}
|
7566
7570
|
break;
|
7567
7571
|
case 44:
|
7568
|
-
#line 5 "
|
7572
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7569
7573
|
{act = 48;}
|
7570
7574
|
break;
|
7571
7575
|
case 45:
|
7572
|
-
#line 5 "
|
7576
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7573
7577
|
{act = 49;}
|
7574
7578
|
break;
|
7575
7579
|
case 46:
|
7576
|
-
#line 5 "
|
7580
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7577
7581
|
{act = 50;}
|
7578
7582
|
break;
|
7579
7583
|
case 47:
|
7580
|
-
#line 113 "
|
7584
|
+
#line 113 "ragel/redcloth_inline.rl"
|
7581
7585
|
{te = p+1;{ PARSE_LINK_ATTR("name"); PASS(block, "name", "link"); }}
|
7582
7586
|
break;
|
7583
7587
|
case 48:
|
7584
|
-
#line 115 "
|
7588
|
+
#line 115 "ragel/redcloth_inline.rl"
|
7585
7589
|
{te = p+1;{ PASS_CODE(block, "text", "code"); }}
|
7586
7590
|
break;
|
7587
7591
|
case 49:
|
7588
|
-
#line 116 "
|
7592
|
+
#line 116 "ragel/redcloth_inline.rl"
|
7589
7593
|
{te = p+1;{ CAT(block); {cs = 1516; goto _again;} }}
|
7590
7594
|
break;
|
7591
7595
|
case 50:
|
7592
|
-
#line 117 "
|
7596
|
+
#line 117 "ragel/redcloth_inline.rl"
|
7593
7597
|
{te = p+1;{ INLINE(block, "notextile"); }}
|
7594
7598
|
break;
|
7595
7599
|
case 51:
|
7596
|
-
#line 118 "
|
7600
|
+
#line 118 "ragel/redcloth_inline.rl"
|
7597
7601
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "strong"); }}
|
7598
7602
|
break;
|
7599
7603
|
case 52:
|
7600
|
-
#line 119 "
|
7604
|
+
#line 119 "ragel/redcloth_inline.rl"
|
7601
7605
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "b"); }}
|
7602
7606
|
break;
|
7603
7607
|
case 53:
|
7604
|
-
#line 121 "
|
7608
|
+
#line 121 "ragel/redcloth_inline.rl"
|
7605
7609
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "i"); }}
|
7606
7610
|
break;
|
7607
7611
|
case 54:
|
7608
|
-
#line 122 "
|
7612
|
+
#line 122 "ragel/redcloth_inline.rl"
|
7609
7613
|
{te = p+1;{ PASS(block, "text", "del"); }}
|
7610
7614
|
break;
|
7611
7615
|
case 55:
|
7612
|
-
#line 123 "
|
7616
|
+
#line 123 "ragel/redcloth_inline.rl"
|
7613
7617
|
{te = p+1;{ PASS(block, "text", "del_phrase"); }}
|
7614
7618
|
break;
|
7615
7619
|
case 56:
|
7616
|
-
#line 124 "
|
7620
|
+
#line 124 "ragel/redcloth_inline.rl"
|
7617
7621
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "ins"); }}
|
7618
7622
|
break;
|
7619
7623
|
case 57:
|
7620
|
-
#line 125 "
|
7624
|
+
#line 125 "ragel/redcloth_inline.rl"
|
7621
7625
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "sup"); }}
|
7622
7626
|
break;
|
7623
7627
|
case 58:
|
7624
|
-
#line 126 "
|
7628
|
+
#line 126 "ragel/redcloth_inline.rl"
|
7625
7629
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "sup_phrase"); }}
|
7626
7630
|
break;
|
7627
7631
|
case 59:
|
7628
|
-
#line 127 "
|
7632
|
+
#line 127 "ragel/redcloth_inline.rl"
|
7629
7633
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "sub"); }}
|
7630
7634
|
break;
|
7631
7635
|
case 60:
|
7632
|
-
#line 128 "
|
7636
|
+
#line 128 "ragel/redcloth_inline.rl"
|
7633
7637
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "sub_phrase"); }}
|
7634
7638
|
break;
|
7635
7639
|
case 61:
|
7636
|
-
#line 129 "
|
7640
|
+
#line 129 "ragel/redcloth_inline.rl"
|
7637
7641
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "span"); }}
|
7638
7642
|
break;
|
7639
7643
|
case 62:
|
7640
|
-
#line 130 "
|
7644
|
+
#line 130 "ragel/redcloth_inline.rl"
|
7641
7645
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "span_phrase"); }}
|
7642
7646
|
break;
|
7643
7647
|
case 63:
|
7644
|
-
#line 131 "
|
7648
|
+
#line 131 "ragel/redcloth_inline.rl"
|
7645
7649
|
{te = p+1;{ PARSE_ATTR("text"); PASS(block, "text", "cite"); }}
|
7646
7650
|
break;
|
7647
7651
|
case 64:
|
7648
|
-
#line 7 "
|
7652
|
+
#line 7 "ragel/redcloth_common.c.rl"
|
7649
7653
|
{te = p+1;{ rb_str_append(block, rb_funcall(self, rb_intern("ignore"), 1, regs)); }}
|
7650
7654
|
break;
|
7651
7655
|
case 65:
|
7652
|
-
#line 133 "
|
7656
|
+
#line 133 "ragel/redcloth_inline.rl"
|
7653
7657
|
{te = p+1;{ PASS(block, "text", "snip"); }}
|
7654
7658
|
break;
|
7655
7659
|
case 66:
|
7656
|
-
#line 134 "
|
7660
|
+
#line 134 "ragel/redcloth_inline.rl"
|
7657
7661
|
{te = p+1;{ PASS(block, "text", "quote1"); }}
|
7658
7662
|
break;
|
7659
7663
|
case 67:
|
7660
|
-
#line 135 "
|
7664
|
+
#line 135 "ragel/redcloth_inline.rl"
|
7661
7665
|
{te = p+1;{ PASS(block, "text", "quote2"); }}
|
7662
7666
|
break;
|
7663
7667
|
case 68:
|
7664
|
-
#line 138 "
|
7668
|
+
#line 138 "ragel/redcloth_inline.rl"
|
7665
7669
|
{te = p+1;{ INLINE(block, "ellipsis"); }}
|
7666
7670
|
break;
|
7667
7671
|
case 69:
|
7668
|
-
#line 139 "
|
7672
|
+
#line 139 "ragel/redcloth_inline.rl"
|
7669
7673
|
{te = p+1;{ INLINE(block, "emdash"); }}
|
7670
7674
|
break;
|
7671
7675
|
case 70:
|
7672
|
-
#line 140 "
|
7676
|
+
#line 140 "ragel/redcloth_inline.rl"
|
7673
7677
|
{te = p+1;{ INLINE(block, "endash"); }}
|
7674
7678
|
break;
|
7675
7679
|
case 71:
|
7676
|
-
#line 141 "
|
7680
|
+
#line 141 "ragel/redcloth_inline.rl"
|
7677
7681
|
{te = p+1;{ INLINE(block, "arrow"); }}
|
7678
7682
|
break;
|
7679
7683
|
case 72:
|
7680
|
-
#line 143 "
|
7684
|
+
#line 143 "ragel/redcloth_inline.rl"
|
7681
7685
|
{te = p+1;{ INLINE(block, "acronym"); }}
|
7682
7686
|
break;
|
7683
7687
|
case 73:
|
7684
|
-
#line 145 "
|
7688
|
+
#line 145 "ragel/redcloth_inline.rl"
|
7685
7689
|
{te = p+1;{ INLINE(block, "trademark"); }}
|
7686
7690
|
break;
|
7687
7691
|
case 74:
|
7688
|
-
#line 146 "
|
7692
|
+
#line 146 "ragel/redcloth_inline.rl"
|
7689
7693
|
{te = p+1;{ INLINE(block, "registered"); }}
|
7690
7694
|
break;
|
7691
7695
|
case 75:
|
7692
|
-
#line 147 "
|
7696
|
+
#line 147 "ragel/redcloth_inline.rl"
|
7693
7697
|
{te = p+1;{ INLINE(block, "copyright"); }}
|
7694
7698
|
break;
|
7695
7699
|
case 76:
|
7696
|
-
#line 148 "
|
7700
|
+
#line 148 "ragel/redcloth_inline.rl"
|
7697
7701
|
{te = p+1;{ PASS(block, "text", "footno"); }}
|
7698
7702
|
break;
|
7699
7703
|
case 77:
|
7700
|
-
#line 149 "
|
7704
|
+
#line 149 "ragel/redcloth_inline.rl"
|
7701
7705
|
{te = p+1;{ INLINE(block, "entity"); }}
|
7702
7706
|
break;
|
7703
7707
|
case 78:
|
7704
|
-
#line 158 "
|
7708
|
+
#line 158 "ragel/redcloth_inline.rl"
|
7705
7709
|
{te = p+1;{ INLINE(block, "inline_redcloth_version"); }}
|
7706
7710
|
break;
|
7707
7711
|
case 79:
|
7708
|
-
#line 5 "
|
7712
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7709
7713
|
{te = p+1;{ rb_str_cat_escaped(self, block, ts, te); }}
|
7710
7714
|
break;
|
7711
7715
|
case 80:
|
7712
|
-
#line 5 "
|
7716
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7713
7717
|
{te = p+1;{ rb_str_cat_escaped(self, block, ts, te); }}
|
7714
7718
|
break;
|
7715
7719
|
case 81:
|
7716
|
-
#line 164 "
|
7720
|
+
#line 164 "ragel/redcloth_inline.rl"
|
7717
7721
|
{te = p+1;}
|
7718
7722
|
break;
|
7719
7723
|
case 82:
|
7720
|
-
#line 109 "
|
7724
|
+
#line 109 "ragel/redcloth_inline.rl"
|
7721
7725
|
{te = p;p--;{ PARSE_IMAGE_ATTR("src"); INLINE(block, "image"); }}
|
7722
7726
|
break;
|
7723
7727
|
case 83:
|
7724
|
-
#line 110 "
|
7728
|
+
#line 110 "ragel/redcloth_inline.rl"
|
7725
7729
|
{te = p;p--;{ PARSE_IMAGE_ATTR("src"); INLINE(block, "image"); }}
|
7726
7730
|
break;
|
7727
7731
|
case 84:
|
7728
|
-
#line 112 "
|
7732
|
+
#line 112 "ragel/redcloth_inline.rl"
|
7729
7733
|
{te = p;p--;{ PARSE_LINK_ATTR("name"); PASS(block, "name", "link"); }}
|
7730
7734
|
break;
|
7731
7735
|
case 85:
|
7732
|
-
#line 116 "
|
7736
|
+
#line 116 "ragel/redcloth_inline.rl"
|
7733
7737
|
{te = p;p--;{ CAT(block); {cs = 1516; goto _again;} }}
|
7734
7738
|
break;
|
7735
7739
|
case 86:
|
7736
|
-
#line 118 "
|
7740
|
+
#line 118 "ragel/redcloth_inline.rl"
|
7737
7741
|
{te = p;p--;{ PARSE_ATTR("text"); PASS(block, "text", "strong"); }}
|
7738
7742
|
break;
|
7739
7743
|
case 87:
|
7740
|
-
#line 119 "
|
7744
|
+
#line 119 "ragel/redcloth_inline.rl"
|
7741
7745
|
{te = p;p--;{ PARSE_ATTR("text"); PASS(block, "text", "b"); }}
|
7742
7746
|
break;
|
7743
7747
|
case 88:
|
7744
|
-
#line 120 "
|
7748
|
+
#line 120 "ragel/redcloth_inline.rl"
|
7745
7749
|
{te = p;p--;{ PARSE_ATTR("text"); PASS(block, "text", "em"); }}
|
7746
7750
|
break;
|
7747
7751
|
case 89:
|
7748
|
-
#line 121 "
|
7752
|
+
#line 121 "ragel/redcloth_inline.rl"
|
7749
7753
|
{te = p;p--;{ PARSE_ATTR("text"); PASS(block, "text", "i"); }}
|
7750
7754
|
break;
|
7751
7755
|
case 90:
|
7752
|
-
#line 124 "
|
7756
|
+
#line 124 "ragel/redcloth_inline.rl"
|
7753
7757
|
{te = p;p--;{ PARSE_ATTR("text"); PASS(block, "text", "ins"); }}
|
7754
7758
|
break;
|
7755
7759
|
case 91:
|
7756
|
-
#line 131 "
|
7760
|
+
#line 131 "ragel/redcloth_inline.rl"
|
7757
7761
|
{te = p;p--;{ PARSE_ATTR("text"); PASS(block, "text", "cite"); }}
|
7758
7762
|
break;
|
7759
7763
|
case 92:
|
7760
|
-
#line 7 "
|
7764
|
+
#line 7 "ragel/redcloth_common.c.rl"
|
7761
7765
|
{te = p;p--;{ rb_str_append(block, rb_funcall(self, rb_intern("ignore"), 1, regs)); }}
|
7762
7766
|
break;
|
7763
7767
|
case 93:
|
7764
|
-
#line 133 "
|
7768
|
+
#line 133 "ragel/redcloth_inline.rl"
|
7765
7769
|
{te = p;p--;{ PASS(block, "text", "snip"); }}
|
7766
7770
|
break;
|
7767
7771
|
case 94:
|
7768
|
-
#line 135 "
|
7772
|
+
#line 135 "ragel/redcloth_inline.rl"
|
7769
7773
|
{te = p;p--;{ PASS(block, "text", "quote2"); }}
|
7770
7774
|
break;
|
7771
7775
|
case 95:
|
7772
|
-
#line 136 "
|
7776
|
+
#line 136 "ragel/redcloth_inline.rl"
|
7773
7777
|
{te = p;p--;{ PASS(block, "text", "multi_paragraph_quote"); }}
|
7774
7778
|
break;
|
7775
7779
|
case 96:
|
7776
|
-
#line 138 "
|
7780
|
+
#line 138 "ragel/redcloth_inline.rl"
|
7777
7781
|
{te = p;p--;{ INLINE(block, "ellipsis"); }}
|
7778
7782
|
break;
|
7779
7783
|
case 97:
|
7780
|
-
#line 142 "
|
7784
|
+
#line 142 "ragel/redcloth_inline.rl"
|
7781
7785
|
{te = p;p--;{ INLINE(block, "caps"); }}
|
7782
7786
|
break;
|
7783
7787
|
case 98:
|
7784
|
-
#line 144 "
|
7788
|
+
#line 144 "ragel/redcloth_inline.rl"
|
7785
7789
|
{te = p;p--;{ INLINE(block, "dim"); }}
|
7786
7790
|
break;
|
7787
7791
|
case 99:
|
7788
|
-
#line 151 "
|
7792
|
+
#line 151 "ragel/redcloth_inline.rl"
|
7789
7793
|
{te = p;p--;{ INLINE(block, "inline_html"); }}
|
7790
7794
|
break;
|
7791
7795
|
case 100:
|
7792
|
-
#line 152 "
|
7796
|
+
#line 152 "ragel/redcloth_inline.rl"
|
7793
7797
|
{te = p;p--;{ INLINE(block, "inline_html"); }}
|
7794
7798
|
break;
|
7795
7799
|
case 101:
|
7796
|
-
#line 153 "
|
7800
|
+
#line 153 "ragel/redcloth_inline.rl"
|
7797
7801
|
{te = p;p--;{ INLINE(block, "inline_html"); }}
|
7798
7802
|
break;
|
7799
7803
|
case 102:
|
7800
|
-
#line 154 "
|
7804
|
+
#line 154 "ragel/redcloth_inline.rl"
|
7801
7805
|
{te = p;p--;{ INLINE(block, "inline_html"); }}
|
7802
7806
|
break;
|
7803
7807
|
case 103:
|
7804
|
-
#line 155 "
|
7808
|
+
#line 155 "ragel/redcloth_inline.rl"
|
7805
7809
|
{te = p;p--;{ INLINE(block, "inline_html"); }}
|
7806
7810
|
break;
|
7807
7811
|
case 104:
|
7808
|
-
#line 156 "
|
7812
|
+
#line 156 "ragel/redcloth_inline.rl"
|
7809
7813
|
{te = p;p--;{ INLINE(block, "inline_html"); }}
|
7810
7814
|
break;
|
7811
7815
|
case 105:
|
7812
|
-
#line 5 "
|
7816
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7813
7817
|
{te = p;p--;{ rb_str_cat_escaped(self, block, ts, te); }}
|
7814
7818
|
break;
|
7815
7819
|
case 106:
|
7816
|
-
#line 5 "
|
7820
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7817
7821
|
{te = p;p--;{ rb_str_cat_escaped(self, block, ts, te); }}
|
7818
7822
|
break;
|
7819
7823
|
case 107:
|
7820
|
-
#line 5 "
|
7824
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7821
7825
|
{te = p;p--;{ rb_str_cat_escaped(self, block, ts, te); }}
|
7822
7826
|
break;
|
7823
7827
|
case 108:
|
7824
|
-
#line 109 "
|
7828
|
+
#line 109 "ragel/redcloth_inline.rl"
|
7825
7829
|
{{p = ((te))-1;}{ PARSE_IMAGE_ATTR("src"); INLINE(block, "image"); }}
|
7826
7830
|
break;
|
7827
7831
|
case 109:
|
7828
|
-
#line 112 "
|
7832
|
+
#line 112 "ragel/redcloth_inline.rl"
|
7829
7833
|
{{p = ((te))-1;}{ PARSE_LINK_ATTR("name"); PASS(block, "name", "link"); }}
|
7830
7834
|
break;
|
7831
7835
|
case 110:
|
7832
|
-
#line 144 "
|
7836
|
+
#line 144 "ragel/redcloth_inline.rl"
|
7833
7837
|
{{p = ((te))-1;}{ INLINE(block, "dim"); }}
|
7834
7838
|
break;
|
7835
7839
|
case 111:
|
7836
|
-
#line 152 "
|
7840
|
+
#line 152 "ragel/redcloth_inline.rl"
|
7837
7841
|
{{p = ((te))-1;}{ INLINE(block, "inline_html"); }}
|
7838
7842
|
break;
|
7839
7843
|
case 112:
|
7840
|
-
#line 5 "
|
7844
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7841
7845
|
{{p = ((te))-1;}{ rb_str_cat_escaped(self, block, ts, te); }}
|
7842
7846
|
break;
|
7843
7847
|
case 113:
|
7844
|
-
#line 5 "
|
7848
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7845
7849
|
{{p = ((te))-1;}{ rb_str_cat_escaped(self, block, ts, te); }}
|
7846
7850
|
break;
|
7847
7851
|
case 114:
|
7848
|
-
#line 5 "
|
7852
|
+
#line 5 "ragel/redcloth_common.c.rl"
|
7849
7853
|
{{p = ((te))-1;}{ rb_str_cat_escaped(self, block, ts, te); }}
|
7850
7854
|
break;
|
7851
7855
|
case 115:
|
7852
|
-
#line 1 "
|
7856
|
+
#line 1 "NONE"
|
7853
7857
|
{ switch( act ) {
|
7854
7858
|
case 4:
|
7855
7859
|
{{p = ((te))-1;} PARSE_IMAGE_ATTR("src"); INLINE(block, "image"); }
|
@@ -7911,7 +7915,7 @@ _eof_trans:
|
|
7911
7915
|
}
|
7912
7916
|
}
|
7913
7917
|
break;
|
7914
|
-
#line
|
7918
|
+
#line 7919 "ext/redcloth_scan/redcloth_inline.c"
|
7915
7919
|
}
|
7916
7920
|
}
|
7917
7921
|
|
@@ -7921,10 +7925,10 @@ _again:
|
|
7921
7925
|
while ( _nacts-- > 0 ) {
|
7922
7926
|
switch ( *_acts++ ) {
|
7923
7927
|
case 21:
|
7924
|
-
#line 1 "
|
7928
|
+
#line 1 "NONE"
|
7925
7929
|
{ts = 0;}
|
7926
7930
|
break;
|
7927
|
-
#line
|
7931
|
+
#line 7932 "ext/redcloth_scan/redcloth_inline.c"
|
7928
7932
|
}
|
7929
7933
|
}
|
7930
7934
|
|
@@ -7943,7 +7947,8 @@ _again:
|
|
7943
7947
|
|
7944
7948
|
_out: {}
|
7945
7949
|
}
|
7946
|
-
|
7950
|
+
|
7951
|
+
#line 160 "ragel/redcloth_inline.c.rl"
|
7947
7952
|
|
7948
7953
|
return block;
|
7949
7954
|
}
|