oga 0.3.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +0 -1
- data/LICENSE +362 -19
- data/README.md +33 -18
- data/ext/c/lexer.c +71 -73
- data/ext/c/lexer.rl +0 -1
- data/ext/java/org/liboga/xml/Lexer.java +33 -35
- data/ext/java/org/liboga/xml/Lexer.rl +0 -1
- data/ext/ragel/base_lexer.rl +0 -1
- data/lib/oga/blacklist.rb +40 -0
- data/lib/oga/css/lexer.rb +47 -45
- data/lib/oga/css/parser.rb +3 -1
- data/lib/oga/lru.rb +2 -0
- data/lib/oga/version.rb +1 -1
- data/lib/oga/whitelist.rb +20 -0
- data/lib/oga/xml/document.rb +1 -1
- data/lib/oga/xml/element.rb +15 -13
- data/lib/oga/xml/entities.rb +1 -1
- data/lib/oga/xml/html_void_elements.rb +6 -21
- data/lib/oga/xml/lexer.rb +87 -19
- data/lib/oga/xml/parser.rb +51 -52
- data/lib/oga/xml/text.rb +1 -1
- data/lib/oga/xpath/evaluator.rb +30 -23
- data/lib/oga/xpath/lexer.rb +72 -70
- data/lib/oga/xpath/parser.rb +3 -1
- data/lib/oga.rb +2 -0
- data/oga.gemspec +1 -1
- metadata +6 -5
- data/doc/DCO.md +0 -25
data/ext/c/lexer.c
CHANGED
@@ -140,7 +140,6 @@ VALUE oga_xml_lexer_advance(VALUE self, VALUE data_block)
|
|
140
140
|
ID id_on_element_name = rb_intern("on_element_name");
|
141
141
|
ID id_on_element_ns = rb_intern("on_element_ns");
|
142
142
|
ID id_on_element_open_end = rb_intern("on_element_open_end");
|
143
|
-
ID id_on_element_start = rb_intern("on_element_start");
|
144
143
|
ID id_on_proc_ins_end = rb_intern("on_proc_ins_end");
|
145
144
|
ID id_on_proc_ins_name = rb_intern("on_proc_ins_name");
|
146
145
|
ID id_on_proc_ins_start = rb_intern("on_proc_ins_start");
|
@@ -157,7 +156,7 @@ VALUE oga_xml_lexer_advance(VALUE self, VALUE data_block)
|
|
157
156
|
lines = state->lines;
|
158
157
|
|
159
158
|
|
160
|
-
#line
|
159
|
+
#line 160 "ext/c/lexer.c"
|
161
160
|
{
|
162
161
|
if ( p == pe )
|
163
162
|
goto _test_eof;
|
@@ -267,7 +266,7 @@ _resume:
|
|
267
266
|
{
|
268
267
|
tr0:
|
269
268
|
( state->cs) = 34;
|
270
|
-
#line
|
269
|
+
#line 504 "ext/ragel/base_lexer.rl"
|
271
270
|
{{p = ((te))-1;}{
|
272
271
|
p--;
|
273
272
|
( state->cs) = 80;
|
@@ -292,14 +291,14 @@ tr17:
|
|
292
291
|
}}
|
293
292
|
goto _again;
|
294
293
|
tr20:
|
295
|
-
#line
|
294
|
+
#line 374 "ext/ragel/base_lexer.rl"
|
296
295
|
{te = p+1;{
|
297
296
|
callback_simple(id_on_element_end);
|
298
297
|
}}
|
299
298
|
goto st34;
|
300
299
|
tr42:
|
301
300
|
( state->cs) = 34;
|
302
|
-
#line
|
301
|
+
#line 504 "ext/ragel/base_lexer.rl"
|
303
302
|
{te = p+1;{
|
304
303
|
p--;
|
305
304
|
( state->cs) = 80;
|
@@ -307,7 +306,7 @@ tr42:
|
|
307
306
|
goto _again;
|
308
307
|
tr44:
|
309
308
|
( state->cs) = 34;
|
310
|
-
#line
|
309
|
+
#line 504 "ext/ragel/base_lexer.rl"
|
311
310
|
{te = p;p--;{
|
312
311
|
p--;
|
313
312
|
( state->cs) = 80;
|
@@ -317,7 +316,6 @@ tr46:
|
|
317
316
|
( state->cs) = 34;
|
318
317
|
#line 369 "ext/ragel/base_lexer.rl"
|
319
318
|
{te = p+1;{
|
320
|
-
callback_simple(id_on_element_start);
|
321
319
|
p--;
|
322
320
|
( state->cs) = 71;
|
323
321
|
}}
|
@@ -377,7 +375,7 @@ st34:
|
|
377
375
|
case 34:
|
378
376
|
#line 1 "NONE"
|
379
377
|
{ts = p;}
|
380
|
-
#line
|
378
|
+
#line 379 "ext/c/lexer.c"
|
381
379
|
if ( (*p) == 60 )
|
382
380
|
goto tr43;
|
383
381
|
goto tr42;
|
@@ -389,7 +387,7 @@ st35:
|
|
389
387
|
if ( ++p == pe )
|
390
388
|
goto _test_eof35;
|
391
389
|
case 35:
|
392
|
-
#line
|
390
|
+
#line 391 "ext/c/lexer.c"
|
393
391
|
switch( (*p) ) {
|
394
392
|
case 33: goto st1;
|
395
393
|
case 45: goto tr46;
|
@@ -499,7 +497,7 @@ st36:
|
|
499
497
|
if ( ++p == pe )
|
500
498
|
goto _test_eof36;
|
501
499
|
case 36:
|
502
|
-
#line
|
500
|
+
#line 501 "ext/c/lexer.c"
|
503
501
|
switch( (*p) ) {
|
504
502
|
case 13: goto tr11;
|
505
503
|
case 32: goto tr11;
|
@@ -619,7 +617,7 @@ st37:
|
|
619
617
|
if ( ++p == pe )
|
620
618
|
goto _test_eof37;
|
621
619
|
case 37:
|
622
|
-
#line
|
620
|
+
#line 621 "ext/c/lexer.c"
|
623
621
|
switch( (*p) ) {
|
624
622
|
case 45: goto tr21;
|
625
623
|
case 95: goto tr21;
|
@@ -712,7 +710,7 @@ st40:
|
|
712
710
|
case 40:
|
713
711
|
#line 1 "NONE"
|
714
712
|
{ts = p;}
|
715
|
-
#line
|
713
|
+
#line 714 "ext/c/lexer.c"
|
716
714
|
if ( (*p) == 45 )
|
717
715
|
goto tr54;
|
718
716
|
goto tr53;
|
@@ -726,7 +724,7 @@ st41:
|
|
726
724
|
if ( ++p == pe )
|
727
725
|
goto _test_eof41;
|
728
726
|
case 41:
|
729
|
-
#line
|
727
|
+
#line 728 "ext/c/lexer.c"
|
730
728
|
if ( (*p) == 45 )
|
731
729
|
goto tr55;
|
732
730
|
goto tr53;
|
@@ -742,7 +740,7 @@ st42:
|
|
742
740
|
if ( ++p == pe )
|
743
741
|
goto _test_eof42;
|
744
742
|
case 42:
|
745
|
-
#line
|
743
|
+
#line 744 "ext/c/lexer.c"
|
746
744
|
if ( (*p) == 45 )
|
747
745
|
goto st19;
|
748
746
|
goto tr55;
|
@@ -796,7 +794,7 @@ st43:
|
|
796
794
|
case 43:
|
797
795
|
#line 1 "NONE"
|
798
796
|
{ts = p;}
|
799
|
-
#line
|
797
|
+
#line 798 "ext/c/lexer.c"
|
800
798
|
if ( (*p) == 93 )
|
801
799
|
goto tr58;
|
802
800
|
goto tr57;
|
@@ -810,7 +808,7 @@ st44:
|
|
810
808
|
if ( ++p == pe )
|
811
809
|
goto _test_eof44;
|
812
810
|
case 44:
|
813
|
-
#line
|
811
|
+
#line 812 "ext/c/lexer.c"
|
814
812
|
if ( (*p) == 93 )
|
815
813
|
goto tr59;
|
816
814
|
goto tr57;
|
@@ -826,7 +824,7 @@ st45:
|
|
826
824
|
if ( ++p == pe )
|
827
825
|
goto _test_eof45;
|
828
826
|
case 45:
|
829
|
-
#line
|
827
|
+
#line 828 "ext/c/lexer.c"
|
830
828
|
if ( (*p) == 93 )
|
831
829
|
goto st20;
|
832
830
|
goto tr59;
|
@@ -867,7 +865,7 @@ st46:
|
|
867
865
|
case 46:
|
868
866
|
#line 1 "NONE"
|
869
867
|
{ts = p;}
|
870
|
-
#line
|
868
|
+
#line 869 "ext/c/lexer.c"
|
871
869
|
if ( (*p) == 63 )
|
872
870
|
goto tr62;
|
873
871
|
goto tr61;
|
@@ -881,7 +879,7 @@ st47:
|
|
881
879
|
if ( ++p == pe )
|
882
880
|
goto _test_eof47;
|
883
881
|
case 47:
|
884
|
-
#line
|
882
|
+
#line 883 "ext/c/lexer.c"
|
885
883
|
if ( (*p) == 63 )
|
886
884
|
goto tr63;
|
887
885
|
goto tr61;
|
@@ -895,7 +893,7 @@ st48:
|
|
895
893
|
if ( ++p == pe )
|
896
894
|
goto _test_eof48;
|
897
895
|
case 48:
|
898
|
-
#line
|
896
|
+
#line 897 "ext/c/lexer.c"
|
899
897
|
if ( (*p) == 62 )
|
900
898
|
goto tr64;
|
901
899
|
goto tr63;
|
@@ -928,7 +926,7 @@ st49:
|
|
928
926
|
case 49:
|
929
927
|
#line 1 "NONE"
|
930
928
|
{ts = p;}
|
931
|
-
#line
|
929
|
+
#line 930 "ext/c/lexer.c"
|
932
930
|
if ( (*p) == 39 )
|
933
931
|
goto tr66;
|
934
932
|
goto tr65;
|
@@ -942,7 +940,7 @@ st50:
|
|
942
940
|
if ( ++p == pe )
|
943
941
|
goto _test_eof50;
|
944
942
|
case 50:
|
945
|
-
#line
|
943
|
+
#line 944 "ext/c/lexer.c"
|
946
944
|
if ( (*p) == 39 )
|
947
945
|
goto tr67;
|
948
946
|
goto tr65;
|
@@ -975,7 +973,7 @@ st51:
|
|
975
973
|
case 51:
|
976
974
|
#line 1 "NONE"
|
977
975
|
{ts = p;}
|
978
|
-
#line
|
976
|
+
#line 977 "ext/c/lexer.c"
|
979
977
|
if ( (*p) == 34 )
|
980
978
|
goto tr69;
|
981
979
|
goto tr68;
|
@@ -989,7 +987,7 @@ st52:
|
|
989
987
|
if ( ++p == pe )
|
990
988
|
goto _test_eof52;
|
991
989
|
case 52:
|
992
|
-
#line
|
990
|
+
#line 991 "ext/c/lexer.c"
|
993
991
|
if ( (*p) == 34 )
|
994
992
|
goto tr70;
|
995
993
|
goto tr68;
|
@@ -1019,7 +1017,7 @@ st53:
|
|
1019
1017
|
case 53:
|
1020
1018
|
#line 1 "NONE"
|
1021
1019
|
{ts = p;}
|
1022
|
-
#line
|
1020
|
+
#line 1021 "ext/c/lexer.c"
|
1023
1021
|
if ( (*p) == 93 )
|
1024
1022
|
goto tr72;
|
1025
1023
|
goto tr71;
|
@@ -1033,7 +1031,7 @@ st54:
|
|
1033
1031
|
if ( ++p == pe )
|
1034
1032
|
goto _test_eof54;
|
1035
1033
|
case 54:
|
1036
|
-
#line
|
1034
|
+
#line 1035 "ext/c/lexer.c"
|
1037
1035
|
if ( (*p) == 93 )
|
1038
1036
|
goto tr73;
|
1039
1037
|
goto tr71;
|
@@ -1112,7 +1110,7 @@ st55:
|
|
1112
1110
|
case 55:
|
1113
1111
|
#line 1 "NONE"
|
1114
1112
|
{ts = p;}
|
1115
|
-
#line
|
1113
|
+
#line 1114 "ext/c/lexer.c"
|
1116
1114
|
switch( (*p) ) {
|
1117
1115
|
case 9: goto tr74;
|
1118
1116
|
case 10: goto tr76;
|
@@ -1162,7 +1160,7 @@ st57:
|
|
1162
1160
|
if ( ++p == pe )
|
1163
1161
|
goto _test_eof57;
|
1164
1162
|
case 57:
|
1165
|
-
#line
|
1163
|
+
#line 1164 "ext/c/lexer.c"
|
1166
1164
|
switch( (*p) ) {
|
1167
1165
|
case 45: goto tr80;
|
1168
1166
|
case 95: goto tr80;
|
@@ -1429,7 +1427,7 @@ st68:
|
|
1429
1427
|
case 68:
|
1430
1428
|
#line 1 "NONE"
|
1431
1429
|
{ts = p;}
|
1432
|
-
#line
|
1430
|
+
#line 1431 "ext/c/lexer.c"
|
1433
1431
|
switch( (*p) ) {
|
1434
1432
|
case 34: goto tr98;
|
1435
1433
|
case 39: goto tr99;
|
@@ -1456,7 +1454,7 @@ st69:
|
|
1456
1454
|
if ( ++p == pe )
|
1457
1455
|
goto _test_eof69;
|
1458
1456
|
case 69:
|
1459
|
-
#line
|
1457
|
+
#line 1458 "ext/c/lexer.c"
|
1460
1458
|
switch( (*p) ) {
|
1461
1459
|
case 45: goto st69;
|
1462
1460
|
case 95: goto st69;
|
@@ -1480,20 +1478,20 @@ st70:
|
|
1480
1478
|
if ( ++p == pe )
|
1481
1479
|
goto _test_eof70;
|
1482
1480
|
case 70:
|
1483
|
-
#line
|
1481
|
+
#line 1482 "ext/c/lexer.c"
|
1484
1482
|
if ( (*p) == 62 )
|
1485
1483
|
goto tr105;
|
1486
1484
|
goto tr104;
|
1487
1485
|
tr107:
|
1488
1486
|
( state->cs) = 71;
|
1489
|
-
#line
|
1487
|
+
#line 390 "ext/ragel/base_lexer.rl"
|
1490
1488
|
{te = p;p--;{
|
1491
1489
|
callback(id_on_element_name, data, encoding, ts, te);
|
1492
1490
|
( state->cs) = 76;
|
1493
1491
|
}}
|
1494
1492
|
goto _again;
|
1495
1493
|
tr108:
|
1496
|
-
#line
|
1494
|
+
#line 386 "ext/ragel/base_lexer.rl"
|
1497
1495
|
{te = p+1;{
|
1498
1496
|
callback(id_on_element_ns, data, encoding, ts, te - 1);
|
1499
1497
|
}}
|
@@ -1506,7 +1504,7 @@ st71:
|
|
1506
1504
|
case 71:
|
1507
1505
|
#line 1 "NONE"
|
1508
1506
|
{ts = p;}
|
1509
|
-
#line
|
1507
|
+
#line 1508 "ext/c/lexer.c"
|
1510
1508
|
switch( (*p) ) {
|
1511
1509
|
case 45: goto st72;
|
1512
1510
|
case 95: goto st72;
|
@@ -1547,14 +1545,14 @@ tr110:
|
|
1547
1545
|
goto st73;
|
1548
1546
|
tr111:
|
1549
1547
|
( state->cs) = 73;
|
1550
|
-
#line
|
1548
|
+
#line 405 "ext/ragel/base_lexer.rl"
|
1551
1549
|
{te = p+1;{
|
1552
1550
|
p--;
|
1553
1551
|
( state->cs) = 75;
|
1554
1552
|
}}
|
1555
1553
|
goto _again;
|
1556
1554
|
tr112:
|
1557
|
-
#line
|
1555
|
+
#line 412 "ext/ragel/base_lexer.rl"
|
1558
1556
|
{te = p;p--;{
|
1559
1557
|
callback_simple(id_on_string_squote);
|
1560
1558
|
|
@@ -1571,7 +1569,7 @@ st73:
|
|
1571
1569
|
case 73:
|
1572
1570
|
#line 1 "NONE"
|
1573
1571
|
{ts = p;}
|
1574
|
-
#line
|
1572
|
+
#line 1573 "ext/c/lexer.c"
|
1575
1573
|
switch( (*p) ) {
|
1576
1574
|
case 13: goto tr110;
|
1577
1575
|
case 32: goto tr110;
|
@@ -1611,7 +1609,7 @@ tr113:
|
|
1611
1609
|
goto st75;
|
1612
1610
|
tr114:
|
1613
1611
|
( state->cs) = 75;
|
1614
|
-
#line
|
1612
|
+
#line 434 "ext/ragel/base_lexer.rl"
|
1615
1613
|
{te = p+1;{
|
1616
1614
|
callback_simple(id_on_string_dquote);
|
1617
1615
|
|
@@ -1620,7 +1618,7 @@ tr114:
|
|
1620
1618
|
goto _again;
|
1621
1619
|
tr115:
|
1622
1620
|
( state->cs) = 75;
|
1623
|
-
#line
|
1621
|
+
#line 428 "ext/ragel/base_lexer.rl"
|
1624
1622
|
{te = p+1;{
|
1625
1623
|
callback_simple(id_on_string_squote);
|
1626
1624
|
|
@@ -1635,14 +1633,14 @@ st75:
|
|
1635
1633
|
case 75:
|
1636
1634
|
#line 1 "NONE"
|
1637
1635
|
{ts = p;}
|
1638
|
-
#line
|
1636
|
+
#line 1637 "ext/c/lexer.c"
|
1639
1637
|
switch( (*p) ) {
|
1640
1638
|
case 34: goto tr114;
|
1641
1639
|
case 39: goto tr115;
|
1642
1640
|
}
|
1643
1641
|
goto tr113;
|
1644
1642
|
tr116:
|
1645
|
-
#line
|
1643
|
+
#line 493 "ext/ragel/base_lexer.rl"
|
1646
1644
|
{te = p+1;}
|
1647
1645
|
goto st76;
|
1648
1646
|
tr117:
|
@@ -1652,7 +1650,7 @@ tr117:
|
|
1652
1650
|
}}
|
1653
1651
|
goto st76;
|
1654
1652
|
tr121:
|
1655
|
-
#line
|
1653
|
+
#line 458 "ext/ragel/base_lexer.rl"
|
1656
1654
|
{te = p+1;{
|
1657
1655
|
if ( html_p )
|
1658
1656
|
{
|
@@ -1666,7 +1664,7 @@ tr121:
|
|
1666
1664
|
goto st76;
|
1667
1665
|
tr122:
|
1668
1666
|
( state->cs) = 76;
|
1669
|
-
#line
|
1667
|
+
#line 470 "ext/ragel/base_lexer.rl"
|
1670
1668
|
{te = p+1;{
|
1671
1669
|
callback_simple(id_on_element_open_end);
|
1672
1670
|
|
@@ -1691,24 +1689,24 @@ tr123:
|
|
1691
1689
|
}}
|
1692
1690
|
goto st76;
|
1693
1691
|
tr124:
|
1694
|
-
#line
|
1692
|
+
#line 453 "ext/ragel/base_lexer.rl"
|
1695
1693
|
{te = p;p--;{
|
1696
1694
|
callback(id_on_attribute, data, encoding, ts, te);
|
1697
1695
|
}}
|
1698
1696
|
goto st76;
|
1699
1697
|
tr125:
|
1700
|
-
#line
|
1698
|
+
#line 449 "ext/ragel/base_lexer.rl"
|
1701
1699
|
{te = p+1;{
|
1702
1700
|
callback(id_on_attribute_ns, data, encoding, ts, te - 1);
|
1703
1701
|
}}
|
1704
1702
|
goto st76;
|
1705
1703
|
tr126:
|
1706
|
-
#line
|
1704
|
+
#line 493 "ext/ragel/base_lexer.rl"
|
1707
1705
|
{te = p;p--;}
|
1708
1706
|
goto st76;
|
1709
1707
|
tr127:
|
1710
1708
|
( state->cs) = 76;
|
1711
|
-
#line
|
1709
|
+
#line 488 "ext/ragel/base_lexer.rl"
|
1712
1710
|
{te = p+1;{
|
1713
1711
|
callback_simple(id_on_element_end);
|
1714
1712
|
( state->cs) = 34;
|
@@ -1722,7 +1720,7 @@ st76:
|
|
1722
1720
|
case 76:
|
1723
1721
|
#line 1 "NONE"
|
1724
1722
|
{ts = p;}
|
1725
|
-
#line
|
1723
|
+
#line 1724 "ext/c/lexer.c"
|
1726
1724
|
switch( (*p) ) {
|
1727
1725
|
case 10: goto tr117;
|
1728
1726
|
case 13: goto st77;
|
@@ -1775,7 +1773,7 @@ case 79:
|
|
1775
1773
|
goto tr126;
|
1776
1774
|
tr130:
|
1777
1775
|
( state->cs) = 80;
|
1778
|
-
#line
|
1776
|
+
#line 530 "ext/ragel/base_lexer.rl"
|
1779
1777
|
{te = p;p--;{
|
1780
1778
|
callback(id_on_text, data, encoding, ts, te);
|
1781
1779
|
|
@@ -1791,7 +1789,7 @@ tr130:
|
|
1791
1789
|
goto _again;
|
1792
1790
|
tr132:
|
1793
1791
|
( state->cs) = 80;
|
1794
|
-
#line
|
1792
|
+
#line 544 "ext/ragel/base_lexer.rl"
|
1795
1793
|
{te = p+1;{
|
1796
1794
|
callback(id_on_text, data, encoding, ts, mark);
|
1797
1795
|
|
@@ -1810,7 +1808,7 @@ tr132:
|
|
1810
1808
|
goto _again;
|
1811
1809
|
tr133:
|
1812
1810
|
( state->cs) = 80;
|
1813
|
-
#line
|
1811
|
+
#line 530 "ext/ragel/base_lexer.rl"
|
1814
1812
|
{te = p+1;{
|
1815
1813
|
callback(id_on_text, data, encoding, ts, te);
|
1816
1814
|
|
@@ -1832,7 +1830,7 @@ st80:
|
|
1832
1830
|
case 80:
|
1833
1831
|
#line 1 "NONE"
|
1834
1832
|
{ts = p;}
|
1835
|
-
#line
|
1833
|
+
#line 1834 "ext/c/lexer.c"
|
1836
1834
|
if ( (*p) == 60 )
|
1837
1835
|
goto tr129;
|
1838
1836
|
goto tr128;
|
@@ -1846,7 +1844,7 @@ st81:
|
|
1846
1844
|
if ( ++p == pe )
|
1847
1845
|
goto _test_eof81;
|
1848
1846
|
case 81:
|
1849
|
-
#line
|
1847
|
+
#line 1848 "ext/c/lexer.c"
|
1850
1848
|
if ( (*p) == 60 )
|
1851
1849
|
goto tr131;
|
1852
1850
|
goto tr128;
|
@@ -1855,14 +1853,14 @@ tr131:
|
|
1855
1853
|
{
|
1856
1854
|
if ( (*p) == '\n' ) lines++;
|
1857
1855
|
}
|
1858
|
-
#line
|
1856
|
+
#line 544 "ext/ragel/base_lexer.rl"
|
1859
1857
|
{ mark = p; }
|
1860
1858
|
goto st82;
|
1861
1859
|
st82:
|
1862
1860
|
if ( ++p == pe )
|
1863
1861
|
goto _test_eof82;
|
1864
1862
|
case 82:
|
1865
|
-
#line
|
1863
|
+
#line 1864 "ext/c/lexer.c"
|
1866
1864
|
switch( (*p) ) {
|
1867
1865
|
case 33: goto tr132;
|
1868
1866
|
case 45: goto tr132;
|
@@ -1884,14 +1882,14 @@ tr129:
|
|
1884
1882
|
{
|
1885
1883
|
if ( (*p) == '\n' ) lines++;
|
1886
1884
|
}
|
1887
|
-
#line
|
1885
|
+
#line 544 "ext/ragel/base_lexer.rl"
|
1888
1886
|
{ mark = p; }
|
1889
1887
|
goto st83;
|
1890
1888
|
st83:
|
1891
1889
|
if ( ++p == pe )
|
1892
1890
|
goto _test_eof83;
|
1893
1891
|
case 83:
|
1894
|
-
#line
|
1892
|
+
#line 1893 "ext/c/lexer.c"
|
1895
1893
|
switch( (*p) ) {
|
1896
1894
|
case 33: goto tr133;
|
1897
1895
|
case 45: goto tr133;
|
@@ -1909,7 +1907,7 @@ case 83:
|
|
1909
1907
|
goto tr133;
|
1910
1908
|
goto tr128;
|
1911
1909
|
tr27:
|
1912
|
-
#line
|
1910
|
+
#line 518 "ext/ragel/base_lexer.rl"
|
1913
1911
|
{{p = ((te))-1;}{
|
1914
1912
|
callback(id_on_text, data, encoding, ts, te);
|
1915
1913
|
|
@@ -1923,7 +1921,7 @@ tr27:
|
|
1923
1921
|
goto st84;
|
1924
1922
|
tr34:
|
1925
1923
|
( state->cs) = 84;
|
1926
|
-
#line
|
1924
|
+
#line 378 "ext/ragel/base_lexer.rl"
|
1927
1925
|
{te = p+1;{
|
1928
1926
|
callback_simple(id_on_element_end);
|
1929
1927
|
|
@@ -1931,7 +1929,7 @@ tr34:
|
|
1931
1929
|
}}
|
1932
1930
|
goto _again;
|
1933
1931
|
tr136:
|
1934
|
-
#line
|
1932
|
+
#line 518 "ext/ragel/base_lexer.rl"
|
1935
1933
|
{te = p;p--;{
|
1936
1934
|
callback(id_on_text, data, encoding, ts, te);
|
1937
1935
|
|
@@ -1951,7 +1949,7 @@ st84:
|
|
1951
1949
|
case 84:
|
1952
1950
|
#line 1 "NONE"
|
1953
1951
|
{ts = p;}
|
1954
|
-
#line
|
1952
|
+
#line 1953 "ext/c/lexer.c"
|
1955
1953
|
if ( (*p) == 60 )
|
1956
1954
|
goto tr135;
|
1957
1955
|
goto tr134;
|
@@ -1965,7 +1963,7 @@ st85:
|
|
1965
1963
|
if ( ++p == pe )
|
1966
1964
|
goto _test_eof85;
|
1967
1965
|
case 85:
|
1968
|
-
#line
|
1966
|
+
#line 1967 "ext/c/lexer.c"
|
1969
1967
|
if ( (*p) == 60 )
|
1970
1968
|
goto tr136;
|
1971
1969
|
goto tr134;
|
@@ -1981,7 +1979,7 @@ st86:
|
|
1981
1979
|
if ( ++p == pe )
|
1982
1980
|
goto _test_eof86;
|
1983
1981
|
case 86:
|
1984
|
-
#line
|
1982
|
+
#line 1983 "ext/c/lexer.c"
|
1985
1983
|
switch( (*p) ) {
|
1986
1984
|
case 47: goto st21;
|
1987
1985
|
case 60: goto tr138;
|
@@ -2046,12 +2044,12 @@ st87:
|
|
2046
2044
|
if ( ++p == pe )
|
2047
2045
|
goto _test_eof87;
|
2048
2046
|
case 87:
|
2049
|
-
#line
|
2047
|
+
#line 2048 "ext/c/lexer.c"
|
2050
2048
|
if ( (*p) == 60 )
|
2051
2049
|
goto tr138;
|
2052
2050
|
goto tr136;
|
2053
2051
|
tr35:
|
2054
|
-
#line
|
2052
|
+
#line 518 "ext/ragel/base_lexer.rl"
|
2055
2053
|
{{p = ((te))-1;}{
|
2056
2054
|
callback(id_on_text, data, encoding, ts, te);
|
2057
2055
|
|
@@ -2065,7 +2063,7 @@ tr35:
|
|
2065
2063
|
goto st88;
|
2066
2064
|
tr41:
|
2067
2065
|
( state->cs) = 88;
|
2068
|
-
#line
|
2066
|
+
#line 378 "ext/ragel/base_lexer.rl"
|
2069
2067
|
{te = p+1;{
|
2070
2068
|
callback_simple(id_on_element_end);
|
2071
2069
|
|
@@ -2073,7 +2071,7 @@ tr41:
|
|
2073
2071
|
}}
|
2074
2072
|
goto _again;
|
2075
2073
|
tr141:
|
2076
|
-
#line
|
2074
|
+
#line 518 "ext/ragel/base_lexer.rl"
|
2077
2075
|
{te = p;p--;{
|
2078
2076
|
callback(id_on_text, data, encoding, ts, te);
|
2079
2077
|
|
@@ -2093,7 +2091,7 @@ st88:
|
|
2093
2091
|
case 88:
|
2094
2092
|
#line 1 "NONE"
|
2095
2093
|
{ts = p;}
|
2096
|
-
#line
|
2094
|
+
#line 2095 "ext/c/lexer.c"
|
2097
2095
|
if ( (*p) == 60 )
|
2098
2096
|
goto tr140;
|
2099
2097
|
goto tr139;
|
@@ -2107,7 +2105,7 @@ st89:
|
|
2107
2105
|
if ( ++p == pe )
|
2108
2106
|
goto _test_eof89;
|
2109
2107
|
case 89:
|
2110
|
-
#line
|
2108
|
+
#line 2109 "ext/c/lexer.c"
|
2111
2109
|
if ( (*p) == 60 )
|
2112
2110
|
goto tr141;
|
2113
2111
|
goto tr139;
|
@@ -2123,7 +2121,7 @@ st90:
|
|
2123
2121
|
if ( ++p == pe )
|
2124
2122
|
goto _test_eof90;
|
2125
2123
|
case 90:
|
2126
|
-
#line
|
2124
|
+
#line 2125 "ext/c/lexer.c"
|
2127
2125
|
switch( (*p) ) {
|
2128
2126
|
case 47: goto st28;
|
2129
2127
|
case 60: goto tr143;
|
@@ -2181,7 +2179,7 @@ st91:
|
|
2181
2179
|
if ( ++p == pe )
|
2182
2180
|
goto _test_eof91;
|
2183
2181
|
case 91:
|
2184
|
-
#line
|
2182
|
+
#line 2183 "ext/c/lexer.c"
|
2185
2183
|
if ( (*p) == 60 )
|
2186
2184
|
goto tr143;
|
2187
2185
|
goto tr141;
|
@@ -2363,7 +2361,7 @@ case 91:
|
|
2363
2361
|
_out: {}
|
2364
2362
|
}
|
2365
2363
|
|
2366
|
-
#line
|
2364
|
+
#line 132 "ext/c/lexer.rl"
|
2367
2365
|
|
2368
2366
|
state->lines = lines;
|
2369
2367
|
|
@@ -2407,7 +2405,7 @@ VALUE oga_xml_lexer_allocate(VALUE klass)
|
|
2407
2405
|
}
|
2408
2406
|
|
2409
2407
|
|
2410
|
-
#line
|
2408
|
+
#line 181 "ext/c/lexer.rl"
|
2411
2409
|
|
2412
2410
|
|
2413
2411
|
void Init_liboga_xml_lexer()
|