hpricot 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +19 -3
- data/{README → README.md} +84 -83
- data/Rakefile +85 -123
- data/ext/fast_xs/FastXsService.java +94 -1
- data/ext/fast_xs/fast_xs.c +60 -51
- data/ext/hpricot_scan/HpricotCss.java +50 -31
- data/ext/hpricot_scan/HpricotScanService.java +77 -64
- data/ext/hpricot_scan/extconf.rb +3 -0
- data/ext/hpricot_scan/hpricot_css.c +331 -323
- data/ext/hpricot_scan/hpricot_css.rl +6 -1
- data/ext/hpricot_scan/hpricot_scan.c +922 -810
- data/ext/hpricot_scan/hpricot_scan.java.rl +22 -13
- data/ext/hpricot_scan/hpricot_scan.rl +198 -90
- data/extras/hpricot.png +0 -0
- data/lib/hpricot/builder.rb +1 -1
- data/lib/hpricot/elements.rb +28 -24
- data/lib/hpricot/htmlinfo.rb +1 -1
- data/lib/hpricot/tag.rb +2 -2
- data/lib/hpricot/tags.rb +4 -4
- data/lib/hpricot/traverse.rb +25 -25
- data/lib/hpricot/xchar.rb +3 -3
- data/test/files/basic.xhtml +1 -1
- data/test/test_parser.rb +31 -2
- metadata +21 -9
- data/extras/mingw-rbconfig.rb +0 -176
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
// line 1 "hpricot_scan.java.rl"
|
2
3
|
|
3
4
|
import java.io.IOException;
|
@@ -138,62 +139,62 @@ public class HpricotScanService implements BasicLibraryService {
|
|
138
139
|
|
139
140
|
// H_ATTR(target)
|
140
141
|
public static IRubyObject hpricot_ele_set_target(IRubyObject self, IRubyObject x) {
|
141
|
-
(
|
142
|
+
H_ELE_GET_asHash(self, H_ELE_ATTR).fastASet(self.getRuntime().newSymbol("target"), x);
|
142
143
|
return self;
|
143
144
|
}
|
144
145
|
|
145
146
|
public static IRubyObject hpricot_ele_get_target(IRubyObject self) {
|
146
|
-
return (
|
147
|
+
return H_ELE_GET_asHash(self, H_ELE_ATTR).op_aref(self.getRuntime().getCurrentContext(), self.getRuntime().newSymbol("target"));
|
147
148
|
}
|
148
149
|
|
149
150
|
// H_ATTR(encoding)
|
150
151
|
public static IRubyObject hpricot_ele_set_encoding(IRubyObject self, IRubyObject x) {
|
151
|
-
((RubyHash)
|
152
|
+
((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).fastASet(self.getRuntime().newSymbol("encoding"), x);
|
152
153
|
return self;
|
153
154
|
}
|
154
155
|
|
155
156
|
public static IRubyObject hpricot_ele_get_encoding(IRubyObject self) {
|
156
|
-
return ((RubyHash)
|
157
|
+
return ((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).op_aref(self.getRuntime().getCurrentContext(), self.getRuntime().newSymbol("encoding"));
|
157
158
|
}
|
158
159
|
|
159
160
|
// H_ATTR(version)
|
160
161
|
public static IRubyObject hpricot_ele_set_version(IRubyObject self, IRubyObject x) {
|
161
|
-
((RubyHash)
|
162
|
+
((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).fastASet(self.getRuntime().newSymbol("version"), x);
|
162
163
|
return self;
|
163
164
|
}
|
164
165
|
|
165
166
|
public static IRubyObject hpricot_ele_get_version(IRubyObject self) {
|
166
|
-
return ((RubyHash)
|
167
|
+
return ((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).op_aref(self.getRuntime().getCurrentContext(), self.getRuntime().newSymbol("version"));
|
167
168
|
}
|
168
169
|
|
169
170
|
// H_ATTR(standalone)
|
170
171
|
public static IRubyObject hpricot_ele_set_standalone(IRubyObject self, IRubyObject x) {
|
171
|
-
((RubyHash)
|
172
|
+
((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).fastASet(self.getRuntime().newSymbol("standalone"), x);
|
172
173
|
return self;
|
173
174
|
}
|
174
175
|
|
175
176
|
public static IRubyObject hpricot_ele_get_standalone(IRubyObject self) {
|
176
|
-
return ((RubyHash)
|
177
|
+
return ((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).op_aref(self.getRuntime().getCurrentContext(), self.getRuntime().newSymbol("standalone"));
|
177
178
|
}
|
178
179
|
|
179
180
|
// H_ATTR(system_id)
|
180
181
|
public static IRubyObject hpricot_ele_set_system_id(IRubyObject self, IRubyObject x) {
|
181
|
-
((RubyHash)
|
182
|
+
((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).fastASet(self.getRuntime().newSymbol("system_id"), x);
|
182
183
|
return self;
|
183
184
|
}
|
184
185
|
|
185
186
|
public static IRubyObject hpricot_ele_get_system_id(IRubyObject self) {
|
186
|
-
return ((RubyHash)
|
187
|
+
return ((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).op_aref(self.getRuntime().getCurrentContext(), self.getRuntime().newSymbol("system_id"));
|
187
188
|
}
|
188
189
|
|
189
190
|
// H_ATTR(public_id)
|
190
191
|
public static IRubyObject hpricot_ele_set_public_id(IRubyObject self, IRubyObject x) {
|
191
|
-
((RubyHash)
|
192
|
+
((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).fastASet(self.getRuntime().newSymbol("public_id"), x);
|
192
193
|
return self;
|
193
194
|
}
|
194
195
|
|
195
196
|
public static IRubyObject hpricot_ele_get_public_id(IRubyObject self) {
|
196
|
-
return ((RubyHash)
|
197
|
+
return ((RubyHash)H_ELE_GET_asHash(self, H_ELE_ATTR)).op_aref(self.getRuntime().getCurrentContext(), self.getRuntime().newSymbol("public_id"));
|
197
198
|
}
|
198
199
|
|
199
200
|
public static class Scanner {
|
@@ -509,11 +510,12 @@ public class HpricotScanService implements BasicLibraryService {
|
|
509
510
|
block.yield(ctx, ary);
|
510
511
|
}
|
511
512
|
|
513
|
+
|
512
514
|
// line 561 "hpricot_scan.java.rl"
|
513
515
|
|
514
516
|
|
515
517
|
|
516
|
-
// line
|
518
|
+
// line 519 "HpricotScanService.java"
|
517
519
|
private static byte[] init__hpricot_scan_actions_0()
|
518
520
|
{
|
519
521
|
return new byte [] {
|
@@ -935,7 +937,7 @@ private static short[] init__hpricot_scan_indicies_0()
|
|
935
937
|
private static final short _hpricot_scan_indicies[] = init__hpricot_scan_indicies_0();
|
936
938
|
|
937
939
|
|
938
|
-
private static short[]
|
940
|
+
private static short[] init__hpricot_scan_trans_targs_0()
|
939
941
|
{
|
940
942
|
return new short [] {
|
941
943
|
204, 1, 2, 53, 204, 3, 4, 5, 6, 7, 8, 9,
|
@@ -978,10 +980,10 @@ private static short[] init__hpricot_scan_trans_targs_wi_0()
|
|
978
980
|
};
|
979
981
|
}
|
980
982
|
|
981
|
-
private static final short
|
983
|
+
private static final short _hpricot_scan_trans_targs[] = init__hpricot_scan_trans_targs_0();
|
982
984
|
|
983
985
|
|
984
|
-
private static short[]
|
986
|
+
private static short[] init__hpricot_scan_trans_actions_0()
|
985
987
|
{
|
986
988
|
return new short [] {
|
987
989
|
73, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0,
|
@@ -1024,7 +1026,7 @@ private static short[] init__hpricot_scan_trans_actions_wi_0()
|
|
1024
1026
|
};
|
1025
1027
|
}
|
1026
1028
|
|
1027
|
-
private static final short
|
1029
|
+
private static final short _hpricot_scan_trans_actions[] = init__hpricot_scan_trans_actions_0();
|
1028
1030
|
|
1029
1031
|
|
1030
1032
|
private static short[] init__hpricot_scan_to_state_actions_0()
|
@@ -1119,6 +1121,7 @@ static final int hpricot_scan_en_html_cdata = 216;
|
|
1119
1121
|
static final int hpricot_scan_en_html_procins = 218;
|
1120
1122
|
static final int hpricot_scan_en_main = 204;
|
1121
1123
|
|
1124
|
+
|
1122
1125
|
// line 564 "hpricot_scan.java.rl"
|
1123
1126
|
|
1124
1127
|
public final static int BUFSIZE = 16384;
|
@@ -1223,13 +1226,14 @@ static final int hpricot_scan_en_main = 204;
|
|
1223
1226
|
// hpricot_scan
|
1224
1227
|
public IRubyObject scan() {
|
1225
1228
|
|
1226
|
-
// line
|
1229
|
+
// line 1230 "HpricotScanService.java"
|
1227
1230
|
{
|
1228
1231
|
cs = hpricot_scan_start;
|
1229
1232
|
ts = -1;
|
1230
1233
|
te = -1;
|
1231
1234
|
act = 0;
|
1232
1235
|
}
|
1236
|
+
|
1233
1237
|
// line 667 "hpricot_scan.java.rl"
|
1234
1238
|
while(!done) {
|
1235
1239
|
p = pe = len = buf;
|
@@ -1278,7 +1282,7 @@ static final int hpricot_scan_en_main = 204;
|
|
1278
1282
|
pe = p + len;
|
1279
1283
|
|
1280
1284
|
|
1281
|
-
// line
|
1285
|
+
// line 1286 "HpricotScanService.java"
|
1282
1286
|
{
|
1283
1287
|
int _klen;
|
1284
1288
|
int _trans = 0;
|
@@ -1300,10 +1304,10 @@ case 1:
|
|
1300
1304
|
while ( _nacts-- > 0 ) {
|
1301
1305
|
switch ( _hpricot_scan_actions[_acts++] ) {
|
1302
1306
|
case 21:
|
1303
|
-
// line 1 "
|
1307
|
+
// line 1 "NONE"
|
1304
1308
|
{ts = p;}
|
1305
1309
|
break;
|
1306
|
-
// line
|
1310
|
+
// line 1311 "HpricotScanService.java"
|
1307
1311
|
}
|
1308
1312
|
}
|
1309
1313
|
|
@@ -1358,10 +1362,10 @@ case 1:
|
|
1358
1362
|
|
1359
1363
|
_trans = _hpricot_scan_indicies[_trans];
|
1360
1364
|
case 3:
|
1361
|
-
cs =
|
1365
|
+
cs = _hpricot_scan_trans_targs[_trans];
|
1362
1366
|
|
1363
|
-
if (
|
1364
|
-
_acts =
|
1367
|
+
if ( _hpricot_scan_trans_actions[_trans] != 0 ) {
|
1368
|
+
_acts = _hpricot_scan_trans_actions[_trans];
|
1365
1369
|
_nacts = (int) _hpricot_scan_actions[_acts++];
|
1366
1370
|
while ( _nacts-- > 0 )
|
1367
1371
|
{
|
@@ -1454,143 +1458,143 @@ case 3:
|
|
1454
1458
|
}
|
1455
1459
|
break;
|
1456
1460
|
case 15:
|
1457
|
-
// line 9 "
|
1461
|
+
// line 9 "hpricot_common.rl"
|
1458
1462
|
{curline += 1;}
|
1459
1463
|
break;
|
1460
1464
|
case 16:
|
1461
|
-
// line 46 "
|
1465
|
+
// line 46 "hpricot_common.rl"
|
1462
1466
|
{ TEXT_PASS(); }
|
1463
1467
|
break;
|
1464
1468
|
case 17:
|
1465
|
-
// line 50 "
|
1469
|
+
// line 50 "hpricot_common.rl"
|
1466
1470
|
{ EBLK(comment, 3); {cs = 204; _goto_targ = 2; if (true) continue _goto;} }
|
1467
1471
|
break;
|
1468
1472
|
case 18:
|
1469
|
-
// line 55 "
|
1473
|
+
// line 55 "hpricot_common.rl"
|
1470
1474
|
{ EBLK(cdata, 3); {cs = 204; _goto_targ = 2; if (true) continue _goto;} }
|
1471
1475
|
break;
|
1472
1476
|
case 19:
|
1473
|
-
// line 60 "
|
1477
|
+
// line 60 "hpricot_common.rl"
|
1474
1478
|
{ EBLK(procins, 2); {cs = 204; _goto_targ = 2; if (true) continue _goto;} }
|
1475
1479
|
break;
|
1476
1480
|
case 22:
|
1477
|
-
// line 1 "
|
1481
|
+
// line 1 "NONE"
|
1478
1482
|
{te = p+1;}
|
1479
1483
|
break;
|
1480
1484
|
case 23:
|
1481
|
-
// line 50 "
|
1485
|
+
// line 50 "hpricot_common.rl"
|
1482
1486
|
{te = p+1;}
|
1483
1487
|
break;
|
1484
1488
|
case 24:
|
1485
|
-
// line 51 "
|
1489
|
+
// line 51 "hpricot_common.rl"
|
1486
1490
|
{te = p+1;{ TEXT_PASS(); }}
|
1487
1491
|
break;
|
1488
1492
|
case 25:
|
1489
|
-
// line 51 "
|
1493
|
+
// line 51 "hpricot_common.rl"
|
1490
1494
|
{te = p;p--;{ TEXT_PASS(); }}
|
1491
1495
|
break;
|
1492
1496
|
case 26:
|
1493
|
-
// line 51 "
|
1497
|
+
// line 51 "hpricot_common.rl"
|
1494
1498
|
{{p = ((te))-1;}{ TEXT_PASS(); }}
|
1495
1499
|
break;
|
1496
1500
|
case 27:
|
1497
|
-
// line 55 "
|
1501
|
+
// line 55 "hpricot_common.rl"
|
1498
1502
|
{te = p+1;}
|
1499
1503
|
break;
|
1500
1504
|
case 28:
|
1501
|
-
// line 56 "
|
1505
|
+
// line 56 "hpricot_common.rl"
|
1502
1506
|
{te = p+1;{ TEXT_PASS(); }}
|
1503
1507
|
break;
|
1504
1508
|
case 29:
|
1505
|
-
// line 56 "
|
1509
|
+
// line 56 "hpricot_common.rl"
|
1506
1510
|
{te = p;p--;{ TEXT_PASS(); }}
|
1507
1511
|
break;
|
1508
1512
|
case 30:
|
1509
|
-
// line 56 "
|
1513
|
+
// line 56 "hpricot_common.rl"
|
1510
1514
|
{{p = ((te))-1;}{ TEXT_PASS(); }}
|
1511
1515
|
break;
|
1512
1516
|
case 31:
|
1513
|
-
// line 60 "
|
1517
|
+
// line 60 "hpricot_common.rl"
|
1514
1518
|
{te = p+1;}
|
1515
1519
|
break;
|
1516
1520
|
case 32:
|
1517
|
-
// line 61 "
|
1521
|
+
// line 61 "hpricot_common.rl"
|
1518
1522
|
{te = p+1;{ TEXT_PASS(); }}
|
1519
1523
|
break;
|
1520
1524
|
case 33:
|
1521
|
-
// line 61 "
|
1525
|
+
// line 61 "hpricot_common.rl"
|
1522
1526
|
{te = p;p--;{ TEXT_PASS(); }}
|
1523
1527
|
break;
|
1524
1528
|
case 34:
|
1525
|
-
// line 66 "
|
1529
|
+
// line 66 "hpricot_common.rl"
|
1526
1530
|
{act = 8;}
|
1527
1531
|
break;
|
1528
1532
|
case 35:
|
1529
|
-
// line 68 "
|
1533
|
+
// line 68 "hpricot_common.rl"
|
1530
1534
|
{act = 10;}
|
1531
1535
|
break;
|
1532
1536
|
case 36:
|
1533
|
-
// line 70 "
|
1537
|
+
// line 70 "hpricot_common.rl"
|
1534
1538
|
{act = 12;}
|
1535
1539
|
break;
|
1536
1540
|
case 37:
|
1537
|
-
// line 73 "
|
1541
|
+
// line 73 "hpricot_common.rl"
|
1538
1542
|
{act = 15;}
|
1539
1543
|
break;
|
1540
1544
|
case 38:
|
1541
|
-
// line 65 "
|
1545
|
+
// line 65 "hpricot_common.rl"
|
1542
1546
|
{te = p+1;{ ELE(xmldecl); }}
|
1543
1547
|
break;
|
1544
1548
|
case 39:
|
1545
|
-
// line 66 "
|
1549
|
+
// line 66 "hpricot_common.rl"
|
1546
1550
|
{te = p+1;{ ELE(doctype); }}
|
1547
1551
|
break;
|
1548
1552
|
case 40:
|
1549
|
-
// line 68 "
|
1553
|
+
// line 68 "hpricot_common.rl"
|
1550
1554
|
{te = p+1;{ ELE(stag); }}
|
1551
1555
|
break;
|
1552
1556
|
case 41:
|
1553
|
-
// line 69 "
|
1557
|
+
// line 69 "hpricot_common.rl"
|
1554
1558
|
{te = p+1;{ ELE(etag); }}
|
1555
1559
|
break;
|
1556
1560
|
case 42:
|
1557
|
-
// line 70 "
|
1561
|
+
// line 70 "hpricot_common.rl"
|
1558
1562
|
{te = p+1;{ ELE(emptytag); }}
|
1559
1563
|
break;
|
1560
1564
|
case 43:
|
1561
|
-
// line 71 "
|
1565
|
+
// line 71 "hpricot_common.rl"
|
1562
1566
|
{te = p+1;{ {cs = 214; _goto_targ = 2; if (true) continue _goto;} }}
|
1563
1567
|
break;
|
1564
1568
|
case 44:
|
1565
|
-
// line 72 "
|
1569
|
+
// line 72 "hpricot_common.rl"
|
1566
1570
|
{te = p+1;{ {cs = 216; _goto_targ = 2; if (true) continue _goto;} }}
|
1567
1571
|
break;
|
1568
1572
|
case 45:
|
1569
|
-
// line 73 "
|
1573
|
+
// line 73 "hpricot_common.rl"
|
1570
1574
|
{te = p+1;{ TEXT_PASS(); }}
|
1571
1575
|
break;
|
1572
1576
|
case 46:
|
1573
|
-
// line 66 "
|
1577
|
+
// line 66 "hpricot_common.rl"
|
1574
1578
|
{te = p;p--;{ ELE(doctype); }}
|
1575
1579
|
break;
|
1576
1580
|
case 47:
|
1577
|
-
// line 67 "
|
1581
|
+
// line 67 "hpricot_common.rl"
|
1578
1582
|
{te = p;p--;{ {cs = 218; _goto_targ = 2; if (true) continue _goto;} }}
|
1579
1583
|
break;
|
1580
1584
|
case 48:
|
1581
|
-
// line 73 "
|
1585
|
+
// line 73 "hpricot_common.rl"
|
1582
1586
|
{te = p;p--;{ TEXT_PASS(); }}
|
1583
1587
|
break;
|
1584
1588
|
case 49:
|
1585
|
-
// line 67 "
|
1589
|
+
// line 67 "hpricot_common.rl"
|
1586
1590
|
{{p = ((te))-1;}{ {cs = 218; _goto_targ = 2; if (true) continue _goto;} }}
|
1587
1591
|
break;
|
1588
1592
|
case 50:
|
1589
|
-
// line 73 "
|
1593
|
+
// line 73 "hpricot_common.rl"
|
1590
1594
|
{{p = ((te))-1;}{ TEXT_PASS(); }}
|
1591
1595
|
break;
|
1592
1596
|
case 51:
|
1593
|
-
// line 1 "
|
1597
|
+
// line 1 "NONE"
|
1594
1598
|
{ switch( act ) {
|
1595
1599
|
case 8:
|
1596
1600
|
{{p = ((te))-1;} ELE(doctype); }
|
@@ -1604,11 +1608,10 @@ case 3:
|
|
1604
1608
|
case 15:
|
1605
1609
|
{{p = ((te))-1;} TEXT_PASS(); }
|
1606
1610
|
break;
|
1607
|
-
default: break;
|
1608
1611
|
}
|
1609
1612
|
}
|
1610
1613
|
break;
|
1611
|
-
// line
|
1614
|
+
// line 1615 "HpricotScanService.java"
|
1612
1615
|
}
|
1613
1616
|
}
|
1614
1617
|
}
|
@@ -1619,10 +1622,10 @@ case 2:
|
|
1619
1622
|
while ( _nacts-- > 0 ) {
|
1620
1623
|
switch ( _hpricot_scan_actions[_acts++] ) {
|
1621
1624
|
case 20:
|
1622
|
-
// line 1 "
|
1625
|
+
// line 1 "NONE"
|
1623
1626
|
{ts = -1;}
|
1624
1627
|
break;
|
1625
|
-
// line
|
1628
|
+
// line 1629 "HpricotScanService.java"
|
1626
1629
|
}
|
1627
1630
|
}
|
1628
1631
|
|
@@ -1644,6 +1647,7 @@ case 5:
|
|
1644
1647
|
}
|
1645
1648
|
break; }
|
1646
1649
|
}
|
1650
|
+
|
1647
1651
|
// line 714 "hpricot_scan.java.rl"
|
1648
1652
|
|
1649
1653
|
if(cs == hpricot_scan_error) {
|
@@ -1884,7 +1888,7 @@ case 5:
|
|
1884
1888
|
}
|
1885
1889
|
}
|
1886
1890
|
|
1887
|
-
public final static String NO_WAY_SERIOUSLY = "*** This should not happen, please
|
1891
|
+
public final static String NO_WAY_SERIOUSLY = "*** This should not happen, please file a bug report with the HTML you're parsing at http://github.com/hpricot/hpricot/issues. So sorry!";
|
1888
1892
|
|
1889
1893
|
public final static int H_ELE_TAG = 0;
|
1890
1894
|
public final static int H_ELE_PARENT = 1;
|
@@ -1899,6 +1903,15 @@ case 5:
|
|
1899
1903
|
return ((IRubyObject[])recv.dataGetStruct())[n];
|
1900
1904
|
}
|
1901
1905
|
|
1906
|
+
public static RubyHash H_ELE_GET_asHash(IRubyObject recv, int n) {
|
1907
|
+
IRubyObject obj = ((IRubyObject[])recv.dataGetStruct())[n];
|
1908
|
+
if(obj.isNil()) {
|
1909
|
+
obj = RubyHash.newHash(recv.getRuntime());
|
1910
|
+
((IRubyObject[])recv.dataGetStruct())[n] = obj;
|
1911
|
+
}
|
1912
|
+
return (RubyHash)obj;
|
1913
|
+
}
|
1914
|
+
|
1902
1915
|
public static IRubyObject H_ELE_SET(IRubyObject recv, int n, IRubyObject value) {
|
1903
1916
|
((IRubyObject[])recv.dataGetStruct())[n] = value;
|
1904
1917
|
return value;
|
data/ext/hpricot_scan/extconf.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
#line 1 "hpricot_css.rl"
|
2
3
|
/*
|
3
4
|
* hpricot_css.rl
|
@@ -17,17 +18,23 @@
|
|
17
18
|
rb_funcall2(mod, rb_intern(filt), fargs, fvals); \
|
18
19
|
rb_ary_clear(tmpt); \
|
19
20
|
fargs = 1
|
20
|
-
#
|
21
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
22
|
+
#define STRNEW(a, len) rb_external_str_new((a), (len))
|
23
|
+
#else
|
24
|
+
#define STRNEW(a, len) rb_str_new((a), (len))
|
25
|
+
#endif
|
26
|
+
#define PUSH(aps, ape) rb_ary_push(tmpt, fvals[fargs++] = STRNEW(aps, ape - aps))
|
21
27
|
#define P(id) printf(id ": %.*s\n", te - ts, ts);
|
22
28
|
|
23
29
|
|
24
|
-
#line
|
30
|
+
#line 31 "hpricot_css.c"
|
25
31
|
static const int hpricot_css_start = 87;
|
26
32
|
static const int hpricot_css_error = 0;
|
27
33
|
|
28
34
|
static const int hpricot_css_en_main = 87;
|
29
35
|
|
30
|
-
|
36
|
+
|
37
|
+
#line 92 "hpricot_css.rl"
|
31
38
|
|
32
39
|
|
33
40
|
VALUE hpricot_css(VALUE self, VALUE mod, VALUE str, VALUE node)
|
@@ -51,23 +58,24 @@ VALUE hpricot_css(VALUE self, VALUE mod, VALUE str, VALUE node)
|
|
51
58
|
pe = p + RSTRING_LEN(str);
|
52
59
|
|
53
60
|
|
54
|
-
#line
|
61
|
+
#line 62 "hpricot_css.c"
|
55
62
|
{
|
56
63
|
cs = hpricot_css_start;
|
57
64
|
ts = 0;
|
58
65
|
te = 0;
|
59
66
|
act = 0;
|
60
67
|
}
|
61
|
-
|
68
|
+
|
69
|
+
#line 115 "hpricot_css.rl"
|
62
70
|
|
63
|
-
#line
|
71
|
+
#line 72 "hpricot_css.c"
|
64
72
|
{
|
65
73
|
if ( p == pe )
|
66
74
|
goto _test_eof;
|
67
75
|
switch ( cs )
|
68
76
|
{
|
69
77
|
tr0:
|
70
|
-
#line 1 "
|
78
|
+
#line 1 "NONE"
|
71
79
|
{ switch( act ) {
|
72
80
|
case 0:
|
73
81
|
{{goto st0;}}
|
@@ -90,181 +98,180 @@ tr0:
|
|
90
98
|
case 9:
|
91
99
|
{{p = ((te))-1;} FILTER(PSUEDO); }
|
92
100
|
break;
|
93
|
-
default: break;
|
94
101
|
}
|
95
102
|
}
|
96
103
|
goto st87;
|
97
104
|
tr4:
|
98
|
-
#line
|
105
|
+
#line 88 "hpricot_css.rl"
|
99
106
|
{{p = ((te))-1;}}
|
100
107
|
goto st87;
|
101
108
|
tr41:
|
102
|
-
#line
|
109
|
+
#line 85 "hpricot_css.rl"
|
103
110
|
{{p = ((te))-1;}{ FILTER(PSUEDO); }}
|
104
111
|
goto st87;
|
105
112
|
tr46:
|
106
|
-
#line
|
113
|
+
#line 30 "hpricot_css.rl"
|
107
114
|
{
|
108
115
|
aps = p;
|
109
116
|
}
|
110
|
-
#line
|
117
|
+
#line 34 "hpricot_css.rl"
|
111
118
|
{
|
112
119
|
ape = p;
|
113
120
|
PUSH(aps, ape);
|
114
121
|
}
|
115
|
-
#line
|
122
|
+
#line 85 "hpricot_css.rl"
|
116
123
|
{te = p+1;{ FILTER(PSUEDO); }}
|
117
124
|
goto st87;
|
118
125
|
tr48:
|
119
|
-
#line
|
126
|
+
#line 34 "hpricot_css.rl"
|
120
127
|
{
|
121
128
|
ape = p;
|
122
129
|
PUSH(aps, ape);
|
123
130
|
}
|
124
|
-
#line
|
131
|
+
#line 85 "hpricot_css.rl"
|
125
132
|
{te = p+1;{ FILTER(PSUEDO); }}
|
126
133
|
goto st87;
|
127
134
|
tr62:
|
128
|
-
#line
|
135
|
+
#line 84 "hpricot_css.rl"
|
129
136
|
{{p = ((te))-1;}{ FILTER(POS); }}
|
130
137
|
goto st87;
|
131
138
|
tr64:
|
132
|
-
#line
|
139
|
+
#line 34 "hpricot_css.rl"
|
133
140
|
{
|
134
141
|
ape = p;
|
135
142
|
PUSH(aps, ape);
|
136
143
|
}
|
137
|
-
#line
|
144
|
+
#line 84 "hpricot_css.rl"
|
138
145
|
{te = p+1;{ FILTER(POS); }}
|
139
146
|
goto st87;
|
140
147
|
tr66:
|
141
|
-
#line
|
148
|
+
#line 83 "hpricot_css.rl"
|
142
149
|
{{p = ((te))-1;}{ FILTER(CHILD); }}
|
143
150
|
goto st87;
|
144
151
|
tr67:
|
145
|
-
#line
|
152
|
+
#line 30 "hpricot_css.rl"
|
146
153
|
{
|
147
154
|
aps = p;
|
148
155
|
}
|
149
|
-
#line
|
156
|
+
#line 34 "hpricot_css.rl"
|
150
157
|
{
|
151
158
|
ape = p;
|
152
159
|
PUSH(aps, ape);
|
153
160
|
}
|
154
|
-
#line
|
161
|
+
#line 83 "hpricot_css.rl"
|
155
162
|
{te = p+1;{ FILTER(CHILD); }}
|
156
163
|
goto st87;
|
157
164
|
tr71:
|
158
|
-
#line
|
165
|
+
#line 34 "hpricot_css.rl"
|
159
166
|
{
|
160
167
|
ape = p;
|
161
168
|
PUSH(aps, ape);
|
162
169
|
}
|
163
|
-
#line
|
170
|
+
#line 83 "hpricot_css.rl"
|
164
171
|
{te = p+1;{ FILTER(CHILD); }}
|
165
172
|
goto st87;
|
166
173
|
tr100:
|
167
|
-
#line
|
174
|
+
#line 80 "hpricot_css.rl"
|
168
175
|
{te = p+1;{ FILTER(ATTR); }}
|
169
176
|
goto st87;
|
170
177
|
tr105:
|
171
|
-
#line
|
178
|
+
#line 80 "hpricot_css.rl"
|
172
179
|
{{p = ((te))-1;}{ FILTER(ATTR); }}
|
173
180
|
goto st87;
|
174
181
|
tr132:
|
175
|
-
#line
|
182
|
+
#line 34 "hpricot_css.rl"
|
176
183
|
{
|
177
184
|
ape = p;
|
178
185
|
PUSH(aps, ape);
|
179
186
|
}
|
180
|
-
#line
|
187
|
+
#line 79 "hpricot_css.rl"
|
181
188
|
{te = p+1;{ FILTER(NAME); }}
|
182
189
|
goto st87;
|
183
190
|
tr143:
|
184
|
-
#line
|
191
|
+
#line 87 "hpricot_css.rl"
|
185
192
|
{te = p+1;{ FILTERAUTO(); }}
|
186
193
|
goto st87;
|
187
194
|
tr149:
|
188
|
-
#line
|
195
|
+
#line 34 "hpricot_css.rl"
|
189
196
|
{
|
190
197
|
ape = p;
|
191
198
|
PUSH(aps, ape);
|
192
199
|
}
|
193
|
-
#line
|
200
|
+
#line 81 "hpricot_css.rl"
|
194
201
|
{te = p;p--;{ FILTER(TAG); }}
|
195
202
|
goto st87;
|
196
203
|
tr153:
|
197
|
-
#line
|
204
|
+
#line 88 "hpricot_css.rl"
|
198
205
|
{te = p;p--;}
|
199
206
|
goto st87;
|
200
207
|
tr154:
|
201
|
-
#line
|
208
|
+
#line 86 "hpricot_css.rl"
|
202
209
|
{te = p;p--;{ focus = rb_ary_new3(1, node); }}
|
203
210
|
goto st87;
|
204
211
|
tr155:
|
205
|
-
#line
|
212
|
+
#line 34 "hpricot_css.rl"
|
206
213
|
{
|
207
214
|
ape = p;
|
208
215
|
PUSH(aps, ape);
|
209
216
|
}
|
210
|
-
#line
|
217
|
+
#line 77 "hpricot_css.rl"
|
211
218
|
{te = p;p--;{ FILTER(ID); }}
|
212
219
|
goto st87;
|
213
220
|
tr159:
|
214
|
-
#line
|
221
|
+
#line 82 "hpricot_css.rl"
|
215
222
|
{te = p;p--;{ FILTER(MOD); }}
|
216
223
|
goto st87;
|
217
224
|
tr162:
|
218
|
-
#line
|
225
|
+
#line 34 "hpricot_css.rl"
|
219
226
|
{
|
220
227
|
ape = p;
|
221
228
|
PUSH(aps, ape);
|
222
229
|
}
|
223
|
-
#line
|
230
|
+
#line 78 "hpricot_css.rl"
|
224
231
|
{te = p;p--;{ FILTER(CLASS); }}
|
225
232
|
goto st87;
|
226
233
|
tr166:
|
227
|
-
#line
|
234
|
+
#line 34 "hpricot_css.rl"
|
228
235
|
{
|
229
236
|
ape = p;
|
230
237
|
PUSH(aps, ape);
|
231
238
|
}
|
232
|
-
#line
|
239
|
+
#line 85 "hpricot_css.rl"
|
233
240
|
{te = p;p--;{ FILTER(PSUEDO); }}
|
234
241
|
goto st87;
|
235
242
|
tr173:
|
236
|
-
#line
|
243
|
+
#line 34 "hpricot_css.rl"
|
237
244
|
{
|
238
245
|
ape = p;
|
239
246
|
PUSH(aps, ape);
|
240
247
|
}
|
241
|
-
#line
|
248
|
+
#line 84 "hpricot_css.rl"
|
242
249
|
{te = p;p--;{ FILTER(POS); }}
|
243
250
|
goto st87;
|
244
251
|
tr192:
|
245
|
-
#line
|
252
|
+
#line 34 "hpricot_css.rl"
|
246
253
|
{
|
247
254
|
ape = p;
|
248
255
|
PUSH(aps, ape);
|
249
256
|
}
|
250
|
-
#line
|
257
|
+
#line 83 "hpricot_css.rl"
|
251
258
|
{te = p;p--;{ FILTER(CHILD); }}
|
252
259
|
goto st87;
|
253
260
|
tr200:
|
254
|
-
#line
|
261
|
+
#line 80 "hpricot_css.rl"
|
255
262
|
{te = p;p--;{ FILTER(ATTR); }}
|
256
263
|
goto st87;
|
257
264
|
st87:
|
258
|
-
#line 1 "
|
265
|
+
#line 1 "NONE"
|
259
266
|
{ts = 0;}
|
260
|
-
#line 1 "
|
267
|
+
#line 1 "NONE"
|
261
268
|
{act = 0;}
|
262
269
|
if ( ++p == pe )
|
263
270
|
goto _test_eof87;
|
264
271
|
case 87:
|
265
|
-
#line 1 "
|
272
|
+
#line 1 "NONE"
|
266
273
|
{ts = p;}
|
267
|
-
#line
|
274
|
+
#line 275 "hpricot_css.c"
|
268
275
|
switch( (*p) ) {
|
269
276
|
case -60: goto tr133;
|
270
277
|
case 32: goto tr137;
|
@@ -308,7 +315,7 @@ st0:
|
|
308
315
|
cs = 0;
|
309
316
|
goto _out;
|
310
317
|
tr133:
|
311
|
-
#line
|
318
|
+
#line 30 "hpricot_css.rl"
|
312
319
|
{
|
313
320
|
aps = p;
|
314
321
|
}
|
@@ -317,31 +324,31 @@ st1:
|
|
317
324
|
if ( ++p == pe )
|
318
325
|
goto _test_eof1;
|
319
326
|
case 1:
|
320
|
-
#line
|
327
|
+
#line 328 "hpricot_css.c"
|
321
328
|
if ( -88 <= (*p) && (*p) <= -65 )
|
322
329
|
goto tr1;
|
323
330
|
goto tr0;
|
324
331
|
tr1:
|
325
|
-
#line 1 "
|
332
|
+
#line 1 "NONE"
|
326
333
|
{te = p+1;}
|
327
|
-
#line
|
334
|
+
#line 81 "hpricot_css.rl"
|
328
335
|
{act = 5;}
|
329
336
|
goto st88;
|
330
337
|
tr144:
|
331
|
-
#line 1 "
|
338
|
+
#line 1 "NONE"
|
332
339
|
{te = p+1;}
|
333
|
-
#line
|
340
|
+
#line 30 "hpricot_css.rl"
|
334
341
|
{
|
335
342
|
aps = p;
|
336
343
|
}
|
337
|
-
#line
|
344
|
+
#line 81 "hpricot_css.rl"
|
338
345
|
{act = 5;}
|
339
346
|
goto st88;
|
340
347
|
st88:
|
341
348
|
if ( ++p == pe )
|
342
349
|
goto _test_eof88;
|
343
350
|
case 88:
|
344
|
-
#line
|
351
|
+
#line 352 "hpricot_css.c"
|
345
352
|
switch( (*p) ) {
|
346
353
|
case -60: goto st1;
|
347
354
|
case 45: goto tr1;
|
@@ -367,7 +374,7 @@ case 88:
|
|
367
374
|
goto st4;
|
368
375
|
goto tr149;
|
369
376
|
tr134:
|
370
|
-
#line
|
377
|
+
#line 30 "hpricot_css.rl"
|
371
378
|
{
|
372
379
|
aps = p;
|
373
380
|
}
|
@@ -376,12 +383,12 @@ st2:
|
|
376
383
|
if ( ++p == pe )
|
377
384
|
goto _test_eof2;
|
378
385
|
case 2:
|
379
|
-
#line
|
386
|
+
#line 387 "hpricot_css.c"
|
380
387
|
if ( (*p) <= -65 )
|
381
388
|
goto tr1;
|
382
389
|
goto tr0;
|
383
390
|
tr135:
|
384
|
-
#line
|
391
|
+
#line 30 "hpricot_css.rl"
|
385
392
|
{
|
386
393
|
aps = p;
|
387
394
|
}
|
@@ -390,12 +397,12 @@ st3:
|
|
390
397
|
if ( ++p == pe )
|
391
398
|
goto _test_eof3;
|
392
399
|
case 3:
|
393
|
-
#line
|
400
|
+
#line 401 "hpricot_css.c"
|
394
401
|
if ( (*p) <= -65 )
|
395
402
|
goto st2;
|
396
403
|
goto tr0;
|
397
404
|
tr136:
|
398
|
-
#line
|
405
|
+
#line 30 "hpricot_css.rl"
|
399
406
|
{
|
400
407
|
aps = p;
|
401
408
|
}
|
@@ -404,12 +411,12 @@ st4:
|
|
404
411
|
if ( ++p == pe )
|
405
412
|
goto _test_eof4;
|
406
413
|
case 4:
|
407
|
-
#line
|
414
|
+
#line 415 "hpricot_css.c"
|
408
415
|
if ( (*p) <= -65 )
|
409
416
|
goto st3;
|
410
417
|
goto tr0;
|
411
418
|
tr146:
|
412
|
-
#line
|
419
|
+
#line 30 "hpricot_css.rl"
|
413
420
|
{
|
414
421
|
aps = p;
|
415
422
|
}
|
@@ -418,19 +425,19 @@ st5:
|
|
418
425
|
if ( ++p == pe )
|
419
426
|
goto _test_eof5;
|
420
427
|
case 5:
|
421
|
-
#line
|
428
|
+
#line 429 "hpricot_css.c"
|
422
429
|
if ( (*p) == 46 )
|
423
430
|
goto tr1;
|
424
431
|
goto tr0;
|
425
432
|
tr137:
|
426
|
-
#line 1 "
|
433
|
+
#line 1 "NONE"
|
427
434
|
{te = p+1;}
|
428
435
|
goto st89;
|
429
436
|
st89:
|
430
437
|
if ( ++p == pe )
|
431
438
|
goto _test_eof89;
|
432
439
|
case 89:
|
433
|
-
#line
|
440
|
+
#line 441 "hpricot_css.c"
|
434
441
|
switch( (*p) ) {
|
435
442
|
case 32: goto st6;
|
436
443
|
case 44: goto st90;
|
@@ -487,7 +494,7 @@ case 7:
|
|
487
494
|
goto tr11;
|
488
495
|
goto st0;
|
489
496
|
tr7:
|
490
|
-
#line
|
497
|
+
#line 30 "hpricot_css.rl"
|
491
498
|
{
|
492
499
|
aps = p;
|
493
500
|
}
|
@@ -496,31 +503,31 @@ st8:
|
|
496
503
|
if ( ++p == pe )
|
497
504
|
goto _test_eof8;
|
498
505
|
case 8:
|
499
|
-
#line
|
506
|
+
#line 507 "hpricot_css.c"
|
500
507
|
if ( -88 <= (*p) && (*p) <= -65 )
|
501
508
|
goto tr14;
|
502
509
|
goto tr0;
|
503
510
|
tr12:
|
504
|
-
#line 1 "
|
511
|
+
#line 1 "NONE"
|
505
512
|
{te = p+1;}
|
506
|
-
#line
|
513
|
+
#line 30 "hpricot_css.rl"
|
507
514
|
{
|
508
515
|
aps = p;
|
509
516
|
}
|
510
|
-
#line
|
517
|
+
#line 77 "hpricot_css.rl"
|
511
518
|
{act = 1;}
|
512
519
|
goto st91;
|
513
520
|
tr14:
|
514
|
-
#line 1 "
|
521
|
+
#line 1 "NONE"
|
515
522
|
{te = p+1;}
|
516
|
-
#line
|
523
|
+
#line 77 "hpricot_css.rl"
|
517
524
|
{act = 1;}
|
518
525
|
goto st91;
|
519
526
|
st91:
|
520
527
|
if ( ++p == pe )
|
521
528
|
goto _test_eof91;
|
522
529
|
case 91:
|
523
|
-
#line
|
530
|
+
#line 531 "hpricot_css.c"
|
524
531
|
switch( (*p) ) {
|
525
532
|
case -60: goto st8;
|
526
533
|
case 45: goto tr14;
|
@@ -546,7 +553,7 @@ case 91:
|
|
546
553
|
goto st11;
|
547
554
|
goto tr155;
|
548
555
|
tr9:
|
549
|
-
#line
|
556
|
+
#line 30 "hpricot_css.rl"
|
550
557
|
{
|
551
558
|
aps = p;
|
552
559
|
}
|
@@ -555,12 +562,12 @@ st9:
|
|
555
562
|
if ( ++p == pe )
|
556
563
|
goto _test_eof9;
|
557
564
|
case 9:
|
558
|
-
#line
|
565
|
+
#line 566 "hpricot_css.c"
|
559
566
|
if ( (*p) <= -65 )
|
560
567
|
goto tr14;
|
561
568
|
goto tr0;
|
562
569
|
tr10:
|
563
|
-
#line
|
570
|
+
#line 30 "hpricot_css.rl"
|
564
571
|
{
|
565
572
|
aps = p;
|
566
573
|
}
|
@@ -569,12 +576,12 @@ st10:
|
|
569
576
|
if ( ++p == pe )
|
570
577
|
goto _test_eof10;
|
571
578
|
case 10:
|
572
|
-
#line
|
579
|
+
#line 580 "hpricot_css.c"
|
573
580
|
if ( (*p) <= -65 )
|
574
581
|
goto st9;
|
575
582
|
goto tr0;
|
576
583
|
tr11:
|
577
|
-
#line
|
584
|
+
#line 30 "hpricot_css.rl"
|
578
585
|
{
|
579
586
|
aps = p;
|
580
587
|
}
|
@@ -583,12 +590,12 @@ st11:
|
|
583
590
|
if ( ++p == pe )
|
584
591
|
goto _test_eof11;
|
585
592
|
case 11:
|
586
|
-
#line
|
593
|
+
#line 594 "hpricot_css.c"
|
587
594
|
if ( (*p) <= -65 )
|
588
595
|
goto st10;
|
589
596
|
goto tr0;
|
590
597
|
tr13:
|
591
|
-
#line
|
598
|
+
#line 30 "hpricot_css.rl"
|
592
599
|
{
|
593
600
|
aps = p;
|
594
601
|
}
|
@@ -597,12 +604,12 @@ st12:
|
|
597
604
|
if ( ++p == pe )
|
598
605
|
goto _test_eof12;
|
599
606
|
case 12:
|
600
|
-
#line
|
607
|
+
#line 608 "hpricot_css.c"
|
601
608
|
if ( (*p) == 46 )
|
602
609
|
goto tr14;
|
603
610
|
goto tr0;
|
604
611
|
tr160:
|
605
|
-
#line
|
612
|
+
#line 34 "hpricot_css.rl"
|
606
613
|
{
|
607
614
|
ape = p;
|
608
615
|
PUSH(aps, ape);
|
@@ -612,7 +619,7 @@ st92:
|
|
612
619
|
if ( ++p == pe )
|
613
620
|
goto _test_eof92;
|
614
621
|
case 92:
|
615
|
-
#line
|
622
|
+
#line 623 "hpricot_css.c"
|
616
623
|
switch( (*p) ) {
|
617
624
|
case 43: goto st92;
|
618
625
|
case 45: goto st92;
|
@@ -622,26 +629,26 @@ case 92:
|
|
622
629
|
goto st92;
|
623
630
|
goto tr159;
|
624
631
|
tr161:
|
625
|
-
#line 1 "
|
632
|
+
#line 1 "NONE"
|
626
633
|
{te = p+1;}
|
627
|
-
#line
|
634
|
+
#line 81 "hpricot_css.rl"
|
628
635
|
{act = 5;}
|
629
636
|
goto st93;
|
630
637
|
tr140:
|
631
|
-
#line 1 "
|
638
|
+
#line 1 "NONE"
|
632
639
|
{te = p+1;}
|
633
|
-
#line
|
640
|
+
#line 30 "hpricot_css.rl"
|
634
641
|
{
|
635
642
|
aps = p;
|
636
643
|
}
|
637
|
-
#line
|
644
|
+
#line 81 "hpricot_css.rl"
|
638
645
|
{act = 5;}
|
639
646
|
goto st93;
|
640
647
|
st93:
|
641
648
|
if ( ++p == pe )
|
642
649
|
goto _test_eof93;
|
643
650
|
case 93:
|
644
|
-
#line
|
651
|
+
#line 652 "hpricot_css.c"
|
645
652
|
switch( (*p) ) {
|
646
653
|
case -60: goto st1;
|
647
654
|
case 43: goto tr160;
|
@@ -697,7 +704,7 @@ case 13:
|
|
697
704
|
goto tr20;
|
698
705
|
goto st0;
|
699
706
|
tr17:
|
700
|
-
#line
|
707
|
+
#line 30 "hpricot_css.rl"
|
701
708
|
{
|
702
709
|
aps = p;
|
703
710
|
}
|
@@ -706,31 +713,31 @@ st14:
|
|
706
713
|
if ( ++p == pe )
|
707
714
|
goto _test_eof14;
|
708
715
|
case 14:
|
709
|
-
#line
|
716
|
+
#line 717 "hpricot_css.c"
|
710
717
|
if ( -88 <= (*p) && (*p) <= -65 )
|
711
718
|
goto tr23;
|
712
719
|
goto tr0;
|
713
720
|
tr21:
|
714
|
-
#line 1 "
|
721
|
+
#line 1 "NONE"
|
715
722
|
{te = p+1;}
|
716
|
-
#line
|
723
|
+
#line 30 "hpricot_css.rl"
|
717
724
|
{
|
718
725
|
aps = p;
|
719
726
|
}
|
720
|
-
#line
|
727
|
+
#line 78 "hpricot_css.rl"
|
721
728
|
{act = 2;}
|
722
729
|
goto st94;
|
723
730
|
tr23:
|
724
|
-
#line 1 "
|
731
|
+
#line 1 "NONE"
|
725
732
|
{te = p+1;}
|
726
|
-
#line
|
733
|
+
#line 78 "hpricot_css.rl"
|
727
734
|
{act = 2;}
|
728
735
|
goto st94;
|
729
736
|
st94:
|
730
737
|
if ( ++p == pe )
|
731
738
|
goto _test_eof94;
|
732
739
|
case 94:
|
733
|
-
#line
|
740
|
+
#line 741 "hpricot_css.c"
|
734
741
|
switch( (*p) ) {
|
735
742
|
case -60: goto st14;
|
736
743
|
case 45: goto tr23;
|
@@ -756,7 +763,7 @@ case 94:
|
|
756
763
|
goto st17;
|
757
764
|
goto tr162;
|
758
765
|
tr18:
|
759
|
-
#line
|
766
|
+
#line 30 "hpricot_css.rl"
|
760
767
|
{
|
761
768
|
aps = p;
|
762
769
|
}
|
@@ -765,12 +772,12 @@ st15:
|
|
765
772
|
if ( ++p == pe )
|
766
773
|
goto _test_eof15;
|
767
774
|
case 15:
|
768
|
-
#line
|
775
|
+
#line 776 "hpricot_css.c"
|
769
776
|
if ( (*p) <= -65 )
|
770
777
|
goto tr23;
|
771
778
|
goto tr0;
|
772
779
|
tr19:
|
773
|
-
#line
|
780
|
+
#line 30 "hpricot_css.rl"
|
774
781
|
{
|
775
782
|
aps = p;
|
776
783
|
}
|
@@ -779,12 +786,12 @@ st16:
|
|
779
786
|
if ( ++p == pe )
|
780
787
|
goto _test_eof16;
|
781
788
|
case 16:
|
782
|
-
#line
|
789
|
+
#line 790 "hpricot_css.c"
|
783
790
|
if ( (*p) <= -65 )
|
784
791
|
goto st15;
|
785
792
|
goto tr0;
|
786
793
|
tr20:
|
787
|
-
#line
|
794
|
+
#line 30 "hpricot_css.rl"
|
788
795
|
{
|
789
796
|
aps = p;
|
790
797
|
}
|
@@ -793,12 +800,12 @@ st17:
|
|
793
800
|
if ( ++p == pe )
|
794
801
|
goto _test_eof17;
|
795
802
|
case 17:
|
796
|
-
#line
|
803
|
+
#line 804 "hpricot_css.c"
|
797
804
|
if ( (*p) <= -65 )
|
798
805
|
goto st16;
|
799
806
|
goto tr0;
|
800
807
|
tr22:
|
801
|
-
#line
|
808
|
+
#line 30 "hpricot_css.rl"
|
802
809
|
{
|
803
810
|
aps = p;
|
804
811
|
}
|
@@ -807,7 +814,7 @@ st18:
|
|
807
814
|
if ( ++p == pe )
|
808
815
|
goto _test_eof18;
|
809
816
|
case 18:
|
810
|
-
#line
|
817
|
+
#line 818 "hpricot_css.c"
|
811
818
|
if ( (*p) == 46 )
|
812
819
|
goto tr23;
|
813
820
|
goto tr0;
|
@@ -846,13 +853,13 @@ case 19:
|
|
846
853
|
goto tr29;
|
847
854
|
goto st0;
|
848
855
|
tr26:
|
849
|
-
#line
|
856
|
+
#line 30 "hpricot_css.rl"
|
850
857
|
{
|
851
858
|
aps = p;
|
852
859
|
}
|
853
860
|
goto st20;
|
854
861
|
tr174:
|
855
|
-
#line
|
862
|
+
#line 34 "hpricot_css.rl"
|
856
863
|
{
|
857
864
|
ape = p;
|
858
865
|
PUSH(aps, ape);
|
@@ -862,42 +869,42 @@ st20:
|
|
862
869
|
if ( ++p == pe )
|
863
870
|
goto _test_eof20;
|
864
871
|
case 20:
|
865
|
-
#line
|
872
|
+
#line 873 "hpricot_css.c"
|
866
873
|
if ( -88 <= (*p) && (*p) <= -65 )
|
867
874
|
goto tr38;
|
868
875
|
goto tr0;
|
869
876
|
tr30:
|
870
|
-
#line 1 "
|
877
|
+
#line 1 "NONE"
|
871
878
|
{te = p+1;}
|
872
|
-
#line
|
879
|
+
#line 30 "hpricot_css.rl"
|
873
880
|
{
|
874
881
|
aps = p;
|
875
882
|
}
|
876
|
-
#line
|
883
|
+
#line 85 "hpricot_css.rl"
|
877
884
|
{act = 9;}
|
878
885
|
goto st95;
|
879
886
|
tr38:
|
880
|
-
#line 1 "
|
887
|
+
#line 1 "NONE"
|
881
888
|
{te = p+1;}
|
882
|
-
#line
|
889
|
+
#line 85 "hpricot_css.rl"
|
883
890
|
{act = 9;}
|
884
891
|
goto st95;
|
885
892
|
tr179:
|
886
|
-
#line 1 "
|
893
|
+
#line 1 "NONE"
|
887
894
|
{te = p+1;}
|
888
|
-
#line
|
895
|
+
#line 34 "hpricot_css.rl"
|
889
896
|
{
|
890
897
|
ape = p;
|
891
898
|
PUSH(aps, ape);
|
892
899
|
}
|
893
|
-
#line
|
900
|
+
#line 85 "hpricot_css.rl"
|
894
901
|
{act = 9;}
|
895
902
|
goto st95;
|
896
903
|
st95:
|
897
904
|
if ( ++p == pe )
|
898
905
|
goto _test_eof95;
|
899
906
|
case 95:
|
900
|
-
#line
|
907
|
+
#line 908 "hpricot_css.c"
|
901
908
|
switch( (*p) ) {
|
902
909
|
case -60: goto st20;
|
903
910
|
case 40: goto tr169;
|
@@ -924,13 +931,13 @@ case 95:
|
|
924
931
|
goto st23;
|
925
932
|
goto tr166;
|
926
933
|
tr27:
|
927
|
-
#line
|
934
|
+
#line 30 "hpricot_css.rl"
|
928
935
|
{
|
929
936
|
aps = p;
|
930
937
|
}
|
931
938
|
goto st21;
|
932
939
|
tr175:
|
933
|
-
#line
|
940
|
+
#line 34 "hpricot_css.rl"
|
934
941
|
{
|
935
942
|
ape = p;
|
936
943
|
PUSH(aps, ape);
|
@@ -940,18 +947,18 @@ st21:
|
|
940
947
|
if ( ++p == pe )
|
941
948
|
goto _test_eof21;
|
942
949
|
case 21:
|
943
|
-
#line
|
950
|
+
#line 951 "hpricot_css.c"
|
944
951
|
if ( (*p) <= -65 )
|
945
952
|
goto tr38;
|
946
953
|
goto tr0;
|
947
954
|
tr28:
|
948
|
-
#line
|
955
|
+
#line 30 "hpricot_css.rl"
|
949
956
|
{
|
950
957
|
aps = p;
|
951
958
|
}
|
952
959
|
goto st22;
|
953
960
|
tr176:
|
954
|
-
#line
|
961
|
+
#line 34 "hpricot_css.rl"
|
955
962
|
{
|
956
963
|
ape = p;
|
957
964
|
PUSH(aps, ape);
|
@@ -961,18 +968,18 @@ st22:
|
|
961
968
|
if ( ++p == pe )
|
962
969
|
goto _test_eof22;
|
963
970
|
case 22:
|
964
|
-
#line
|
971
|
+
#line 972 "hpricot_css.c"
|
965
972
|
if ( (*p) <= -65 )
|
966
973
|
goto st21;
|
967
974
|
goto tr0;
|
968
975
|
tr29:
|
969
|
-
#line
|
976
|
+
#line 30 "hpricot_css.rl"
|
970
977
|
{
|
971
978
|
aps = p;
|
972
979
|
}
|
973
980
|
goto st23;
|
974
981
|
tr177:
|
975
|
-
#line
|
982
|
+
#line 34 "hpricot_css.rl"
|
976
983
|
{
|
977
984
|
ape = p;
|
978
985
|
PUSH(aps, ape);
|
@@ -982,12 +989,12 @@ st23:
|
|
982
989
|
if ( ++p == pe )
|
983
990
|
goto _test_eof23;
|
984
991
|
case 23:
|
985
|
-
#line
|
992
|
+
#line 993 "hpricot_css.c"
|
986
993
|
if ( (*p) <= -65 )
|
987
994
|
goto st22;
|
988
995
|
goto tr0;
|
989
996
|
tr169:
|
990
|
-
#line
|
997
|
+
#line 34 "hpricot_css.rl"
|
991
998
|
{
|
992
999
|
ape = p;
|
993
1000
|
PUSH(aps, ape);
|
@@ -997,7 +1004,7 @@ st24:
|
|
997
1004
|
if ( ++p == pe )
|
998
1005
|
goto _test_eof24;
|
999
1006
|
case 24:
|
1000
|
-
#line
|
1007
|
+
#line 1008 "hpricot_css.c"
|
1001
1008
|
switch( (*p) ) {
|
1002
1009
|
case 34: goto tr43;
|
1003
1010
|
case 39: goto tr44;
|
@@ -1006,7 +1013,7 @@ case 24:
|
|
1006
1013
|
}
|
1007
1014
|
goto tr42;
|
1008
1015
|
tr42:
|
1009
|
-
#line
|
1016
|
+
#line 30 "hpricot_css.rl"
|
1010
1017
|
{
|
1011
1018
|
aps = p;
|
1012
1019
|
}
|
@@ -1015,7 +1022,7 @@ st25:
|
|
1015
1022
|
if ( ++p == pe )
|
1016
1023
|
goto _test_eof25;
|
1017
1024
|
case 25:
|
1018
|
-
#line
|
1025
|
+
#line 1026 "hpricot_css.c"
|
1019
1026
|
switch( (*p) ) {
|
1020
1027
|
case 34: goto tr0;
|
1021
1028
|
case 40: goto tr0;
|
@@ -1023,7 +1030,7 @@ case 25:
|
|
1023
1030
|
}
|
1024
1031
|
goto st25;
|
1025
1032
|
tr43:
|
1026
|
-
#line
|
1033
|
+
#line 30 "hpricot_css.rl"
|
1027
1034
|
{
|
1028
1035
|
aps = p;
|
1029
1036
|
}
|
@@ -1032,7 +1039,7 @@ st26:
|
|
1032
1039
|
if ( ++p == pe )
|
1033
1040
|
goto _test_eof26;
|
1034
1041
|
case 26:
|
1035
|
-
#line
|
1042
|
+
#line 1043 "hpricot_css.c"
|
1036
1043
|
switch( (*p) ) {
|
1037
1044
|
case 34: goto st28;
|
1038
1045
|
case 40: goto st29;
|
@@ -1079,7 +1086,7 @@ case 31:
|
|
1079
1086
|
}
|
1080
1087
|
goto tr0;
|
1081
1088
|
tr44:
|
1082
|
-
#line
|
1089
|
+
#line 30 "hpricot_css.rl"
|
1083
1090
|
{
|
1084
1091
|
aps = p;
|
1085
1092
|
}
|
@@ -1088,7 +1095,7 @@ st32:
|
|
1088
1095
|
if ( ++p == pe )
|
1089
1096
|
goto _test_eof32;
|
1090
1097
|
case 32:
|
1091
|
-
#line
|
1098
|
+
#line 1099 "hpricot_css.c"
|
1092
1099
|
switch( (*p) ) {
|
1093
1100
|
case 34: goto st34;
|
1094
1101
|
case 39: goto st25;
|
@@ -1140,7 +1147,7 @@ case 37:
|
|
1140
1147
|
}
|
1141
1148
|
goto tr0;
|
1142
1149
|
tr45:
|
1143
|
-
#line
|
1150
|
+
#line 30 "hpricot_css.rl"
|
1144
1151
|
{
|
1145
1152
|
aps = p;
|
1146
1153
|
}
|
@@ -1149,7 +1156,7 @@ st38:
|
|
1149
1156
|
if ( ++p == pe )
|
1150
1157
|
goto _test_eof38;
|
1151
1158
|
case 38:
|
1152
|
-
#line
|
1159
|
+
#line 1160 "hpricot_css.c"
|
1153
1160
|
if ( (*p) == 41 )
|
1154
1161
|
goto tr0;
|
1155
1162
|
goto st39;
|
@@ -1170,13 +1177,13 @@ case 40:
|
|
1170
1177
|
}
|
1171
1178
|
goto tr0;
|
1172
1179
|
tr31:
|
1173
|
-
#line
|
1180
|
+
#line 30 "hpricot_css.rl"
|
1174
1181
|
{
|
1175
1182
|
aps = p;
|
1176
1183
|
}
|
1177
1184
|
goto st41;
|
1178
1185
|
tr180:
|
1179
|
-
#line
|
1186
|
+
#line 34 "hpricot_css.rl"
|
1180
1187
|
{
|
1181
1188
|
ape = p;
|
1182
1189
|
PUSH(aps, ape);
|
@@ -1186,25 +1193,25 @@ st41:
|
|
1186
1193
|
if ( ++p == pe )
|
1187
1194
|
goto _test_eof41;
|
1188
1195
|
case 41:
|
1189
|
-
#line
|
1196
|
+
#line 1197 "hpricot_css.c"
|
1190
1197
|
if ( (*p) == 46 )
|
1191
1198
|
goto tr38;
|
1192
1199
|
goto tr0;
|
1193
1200
|
tr32:
|
1194
|
-
#line 1 "
|
1201
|
+
#line 1 "NONE"
|
1195
1202
|
{te = p+1;}
|
1196
|
-
#line
|
1203
|
+
#line 30 "hpricot_css.rl"
|
1197
1204
|
{
|
1198
1205
|
aps = p;
|
1199
1206
|
}
|
1200
|
-
#line
|
1207
|
+
#line 85 "hpricot_css.rl"
|
1201
1208
|
{act = 9;}
|
1202
1209
|
goto st96;
|
1203
1210
|
st96:
|
1204
1211
|
if ( ++p == pe )
|
1205
1212
|
goto _test_eof96;
|
1206
1213
|
case 96:
|
1207
|
-
#line
|
1214
|
+
#line 1215 "hpricot_css.c"
|
1208
1215
|
switch( (*p) ) {
|
1209
1216
|
case -60: goto st20;
|
1210
1217
|
case 40: goto tr169;
|
@@ -1233,16 +1240,16 @@ case 96:
|
|
1233
1240
|
goto st23;
|
1234
1241
|
goto tr166;
|
1235
1242
|
tr171:
|
1236
|
-
#line 1 "
|
1243
|
+
#line 1 "NONE"
|
1237
1244
|
{te = p+1;}
|
1238
|
-
#line
|
1245
|
+
#line 84 "hpricot_css.rl"
|
1239
1246
|
{act = 8;}
|
1240
1247
|
goto st97;
|
1241
1248
|
st97:
|
1242
1249
|
if ( ++p == pe )
|
1243
1250
|
goto _test_eof97;
|
1244
1251
|
case 97:
|
1245
|
-
#line
|
1252
|
+
#line 1253 "hpricot_css.c"
|
1246
1253
|
switch( (*p) ) {
|
1247
1254
|
case -60: goto tr174;
|
1248
1255
|
case 40: goto tr178;
|
@@ -1269,7 +1276,7 @@ case 97:
|
|
1269
1276
|
goto tr177;
|
1270
1277
|
goto tr173;
|
1271
1278
|
tr178:
|
1272
|
-
#line
|
1279
|
+
#line 34 "hpricot_css.rl"
|
1273
1280
|
{
|
1274
1281
|
ape = p;
|
1275
1282
|
PUSH(aps, ape);
|
@@ -1279,7 +1286,7 @@ st42:
|
|
1279
1286
|
if ( ++p == pe )
|
1280
1287
|
goto _test_eof42;
|
1281
1288
|
case 42:
|
1282
|
-
#line
|
1289
|
+
#line 1290 "hpricot_css.c"
|
1283
1290
|
switch( (*p) ) {
|
1284
1291
|
case 34: goto tr43;
|
1285
1292
|
case 39: goto tr44;
|
@@ -1290,7 +1297,7 @@ case 42:
|
|
1290
1297
|
goto tr63;
|
1291
1298
|
goto tr42;
|
1292
1299
|
tr63:
|
1293
|
-
#line
|
1300
|
+
#line 30 "hpricot_css.rl"
|
1294
1301
|
{
|
1295
1302
|
aps = p;
|
1296
1303
|
}
|
@@ -1299,7 +1306,7 @@ st43:
|
|
1299
1306
|
if ( ++p == pe )
|
1300
1307
|
goto _test_eof43;
|
1301
1308
|
case 43:
|
1302
|
-
#line
|
1309
|
+
#line 1310 "hpricot_css.c"
|
1303
1310
|
switch( (*p) ) {
|
1304
1311
|
case 34: goto tr62;
|
1305
1312
|
case 40: goto tr62;
|
@@ -1309,16 +1316,16 @@ case 43:
|
|
1309
1316
|
goto st43;
|
1310
1317
|
goto st25;
|
1311
1318
|
tr172:
|
1312
|
-
#line 1 "
|
1319
|
+
#line 1 "NONE"
|
1313
1320
|
{te = p+1;}
|
1314
|
-
#line
|
1321
|
+
#line 85 "hpricot_css.rl"
|
1315
1322
|
{act = 9;}
|
1316
1323
|
goto st98;
|
1317
1324
|
st98:
|
1318
1325
|
if ( ++p == pe )
|
1319
1326
|
goto _test_eof98;
|
1320
1327
|
case 98:
|
1321
|
-
#line
|
1328
|
+
#line 1329 "hpricot_css.c"
|
1322
1329
|
switch( (*p) ) {
|
1323
1330
|
case -60: goto st20;
|
1324
1331
|
case 40: goto tr169;
|
@@ -1346,16 +1353,16 @@ case 98:
|
|
1346
1353
|
goto st23;
|
1347
1354
|
goto tr166;
|
1348
1355
|
tr181:
|
1349
|
-
#line 1 "
|
1356
|
+
#line 1 "NONE"
|
1350
1357
|
{te = p+1;}
|
1351
|
-
#line
|
1358
|
+
#line 85 "hpricot_css.rl"
|
1352
1359
|
{act = 9;}
|
1353
1360
|
goto st99;
|
1354
1361
|
st99:
|
1355
1362
|
if ( ++p == pe )
|
1356
1363
|
goto _test_eof99;
|
1357
1364
|
case 99:
|
1358
|
-
#line
|
1365
|
+
#line 1366 "hpricot_css.c"
|
1359
1366
|
switch( (*p) ) {
|
1360
1367
|
case -60: goto st20;
|
1361
1368
|
case 40: goto tr169;
|
@@ -1383,20 +1390,20 @@ case 99:
|
|
1383
1390
|
goto st23;
|
1384
1391
|
goto tr166;
|
1385
1392
|
tr33:
|
1386
|
-
#line 1 "
|
1393
|
+
#line 1 "NONE"
|
1387
1394
|
{te = p+1;}
|
1388
|
-
#line
|
1395
|
+
#line 30 "hpricot_css.rl"
|
1389
1396
|
{
|
1390
1397
|
aps = p;
|
1391
1398
|
}
|
1392
|
-
#line
|
1399
|
+
#line 85 "hpricot_css.rl"
|
1393
1400
|
{act = 9;}
|
1394
1401
|
goto st100;
|
1395
1402
|
st100:
|
1396
1403
|
if ( ++p == pe )
|
1397
1404
|
goto _test_eof100;
|
1398
1405
|
case 100:
|
1399
|
-
#line
|
1406
|
+
#line 1407 "hpricot_css.c"
|
1400
1407
|
switch( (*p) ) {
|
1401
1408
|
case -60: goto st20;
|
1402
1409
|
case 40: goto tr169;
|
@@ -1424,16 +1431,16 @@ case 100:
|
|
1424
1431
|
goto st23;
|
1425
1432
|
goto tr166;
|
1426
1433
|
tr182:
|
1427
|
-
#line 1 "
|
1434
|
+
#line 1 "NONE"
|
1428
1435
|
{te = p+1;}
|
1429
|
-
#line
|
1436
|
+
#line 85 "hpricot_css.rl"
|
1430
1437
|
{act = 9;}
|
1431
1438
|
goto st101;
|
1432
1439
|
st101:
|
1433
1440
|
if ( ++p == pe )
|
1434
1441
|
goto _test_eof101;
|
1435
1442
|
case 101:
|
1436
|
-
#line
|
1443
|
+
#line 1444 "hpricot_css.c"
|
1437
1444
|
switch( (*p) ) {
|
1438
1445
|
case -60: goto st20;
|
1439
1446
|
case 40: goto tr169;
|
@@ -1461,16 +1468,16 @@ case 101:
|
|
1461
1468
|
goto st23;
|
1462
1469
|
goto tr166;
|
1463
1470
|
tr183:
|
1464
|
-
#line 1 "
|
1471
|
+
#line 1 "NONE"
|
1465
1472
|
{te = p+1;}
|
1466
|
-
#line
|
1473
|
+
#line 85 "hpricot_css.rl"
|
1467
1474
|
{act = 9;}
|
1468
1475
|
goto st102;
|
1469
1476
|
st102:
|
1470
1477
|
if ( ++p == pe )
|
1471
1478
|
goto _test_eof102;
|
1472
1479
|
case 102:
|
1473
|
-
#line
|
1480
|
+
#line 1481 "hpricot_css.c"
|
1474
1481
|
switch( (*p) ) {
|
1475
1482
|
case -60: goto st20;
|
1476
1483
|
case 40: goto tr169;
|
@@ -1498,16 +1505,16 @@ case 102:
|
|
1498
1505
|
goto st23;
|
1499
1506
|
goto tr166;
|
1500
1507
|
tr184:
|
1501
|
-
#line 1 "
|
1508
|
+
#line 1 "NONE"
|
1502
1509
|
{te = p+1;}
|
1503
|
-
#line
|
1510
|
+
#line 85 "hpricot_css.rl"
|
1504
1511
|
{act = 9;}
|
1505
1512
|
goto st103;
|
1506
1513
|
st103:
|
1507
1514
|
if ( ++p == pe )
|
1508
1515
|
goto _test_eof103;
|
1509
1516
|
case 103:
|
1510
|
-
#line
|
1517
|
+
#line 1518 "hpricot_css.c"
|
1511
1518
|
switch( (*p) ) {
|
1512
1519
|
case -60: goto st20;
|
1513
1520
|
case 40: goto tr169;
|
@@ -1535,16 +1542,16 @@ case 103:
|
|
1535
1542
|
goto st23;
|
1536
1543
|
goto tr166;
|
1537
1544
|
tr185:
|
1538
|
-
#line 1 "
|
1545
|
+
#line 1 "NONE"
|
1539
1546
|
{te = p+1;}
|
1540
|
-
#line
|
1547
|
+
#line 84 "hpricot_css.rl"
|
1541
1548
|
{act = 8;}
|
1542
1549
|
goto st104;
|
1543
1550
|
st104:
|
1544
1551
|
if ( ++p == pe )
|
1545
1552
|
goto _test_eof104;
|
1546
1553
|
case 104:
|
1547
|
-
#line
|
1554
|
+
#line 1555 "hpricot_css.c"
|
1548
1555
|
switch( (*p) ) {
|
1549
1556
|
case -60: goto tr174;
|
1550
1557
|
case 40: goto tr178;
|
@@ -1571,27 +1578,27 @@ case 104:
|
|
1571
1578
|
goto tr177;
|
1572
1579
|
goto tr173;
|
1573
1580
|
tr199:
|
1574
|
-
#line 1 "
|
1581
|
+
#line 1 "NONE"
|
1575
1582
|
{te = p+1;}
|
1576
|
-
#line
|
1583
|
+
#line 85 "hpricot_css.rl"
|
1577
1584
|
{act = 9;}
|
1578
1585
|
goto st105;
|
1579
1586
|
tr186:
|
1580
|
-
#line 1 "
|
1587
|
+
#line 1 "NONE"
|
1581
1588
|
{te = p+1;}
|
1582
|
-
#line
|
1589
|
+
#line 34 "hpricot_css.rl"
|
1583
1590
|
{
|
1584
1591
|
ape = p;
|
1585
1592
|
PUSH(aps, ape);
|
1586
1593
|
}
|
1587
|
-
#line
|
1594
|
+
#line 85 "hpricot_css.rl"
|
1588
1595
|
{act = 9;}
|
1589
1596
|
goto st105;
|
1590
1597
|
st105:
|
1591
1598
|
if ( ++p == pe )
|
1592
1599
|
goto _test_eof105;
|
1593
1600
|
case 105:
|
1594
|
-
#line
|
1601
|
+
#line 1602 "hpricot_css.c"
|
1595
1602
|
switch( (*p) ) {
|
1596
1603
|
case -60: goto st20;
|
1597
1604
|
case 40: goto tr169;
|
@@ -1619,16 +1626,16 @@ case 105:
|
|
1619
1626
|
goto st23;
|
1620
1627
|
goto tr166;
|
1621
1628
|
tr187:
|
1622
|
-
#line 1 "
|
1629
|
+
#line 1 "NONE"
|
1623
1630
|
{te = p+1;}
|
1624
|
-
#line
|
1631
|
+
#line 85 "hpricot_css.rl"
|
1625
1632
|
{act = 9;}
|
1626
1633
|
goto st106;
|
1627
1634
|
st106:
|
1628
1635
|
if ( ++p == pe )
|
1629
1636
|
goto _test_eof106;
|
1630
1637
|
case 106:
|
1631
|
-
#line
|
1638
|
+
#line 1639 "hpricot_css.c"
|
1632
1639
|
switch( (*p) ) {
|
1633
1640
|
case -60: goto st20;
|
1634
1641
|
case 40: goto tr169;
|
@@ -1656,16 +1663,16 @@ case 106:
|
|
1656
1663
|
goto st23;
|
1657
1664
|
goto tr166;
|
1658
1665
|
tr188:
|
1659
|
-
#line 1 "
|
1666
|
+
#line 1 "NONE"
|
1660
1667
|
{te = p+1;}
|
1661
|
-
#line
|
1668
|
+
#line 85 "hpricot_css.rl"
|
1662
1669
|
{act = 9;}
|
1663
1670
|
goto st107;
|
1664
1671
|
st107:
|
1665
1672
|
if ( ++p == pe )
|
1666
1673
|
goto _test_eof107;
|
1667
1674
|
case 107:
|
1668
|
-
#line
|
1675
|
+
#line 1676 "hpricot_css.c"
|
1669
1676
|
switch( (*p) ) {
|
1670
1677
|
case -60: goto st20;
|
1671
1678
|
case 40: goto tr169;
|
@@ -1693,16 +1700,16 @@ case 107:
|
|
1693
1700
|
goto st23;
|
1694
1701
|
goto tr166;
|
1695
1702
|
tr189:
|
1696
|
-
#line 1 "
|
1703
|
+
#line 1 "NONE"
|
1697
1704
|
{te = p+1;}
|
1698
|
-
#line
|
1705
|
+
#line 85 "hpricot_css.rl"
|
1699
1706
|
{act = 9;}
|
1700
1707
|
goto st108;
|
1701
1708
|
st108:
|
1702
1709
|
if ( ++p == pe )
|
1703
1710
|
goto _test_eof108;
|
1704
1711
|
case 108:
|
1705
|
-
#line
|
1712
|
+
#line 1713 "hpricot_css.c"
|
1706
1713
|
switch( (*p) ) {
|
1707
1714
|
case -60: goto st20;
|
1708
1715
|
case 40: goto tr169;
|
@@ -1730,16 +1737,16 @@ case 108:
|
|
1730
1737
|
goto st23;
|
1731
1738
|
goto tr166;
|
1732
1739
|
tr190:
|
1733
|
-
#line 1 "
|
1740
|
+
#line 1 "NONE"
|
1734
1741
|
{te = p+1;}
|
1735
|
-
#line
|
1742
|
+
#line 85 "hpricot_css.rl"
|
1736
1743
|
{act = 9;}
|
1737
1744
|
goto st109;
|
1738
1745
|
st109:
|
1739
1746
|
if ( ++p == pe )
|
1740
1747
|
goto _test_eof109;
|
1741
1748
|
case 109:
|
1742
|
-
#line
|
1749
|
+
#line 1750 "hpricot_css.c"
|
1743
1750
|
switch( (*p) ) {
|
1744
1751
|
case -60: goto st20;
|
1745
1752
|
case 40: goto tr169;
|
@@ -1767,16 +1774,16 @@ case 109:
|
|
1767
1774
|
goto st23;
|
1768
1775
|
goto tr166;
|
1769
1776
|
tr191:
|
1770
|
-
#line 1 "
|
1777
|
+
#line 1 "NONE"
|
1771
1778
|
{te = p+1;}
|
1772
|
-
#line
|
1779
|
+
#line 83 "hpricot_css.rl"
|
1773
1780
|
{act = 7;}
|
1774
1781
|
goto st110;
|
1775
1782
|
st110:
|
1776
1783
|
if ( ++p == pe )
|
1777
1784
|
goto _test_eof110;
|
1778
1785
|
case 110:
|
1779
|
-
#line
|
1786
|
+
#line 1787 "hpricot_css.c"
|
1780
1787
|
switch( (*p) ) {
|
1781
1788
|
case -60: goto tr174;
|
1782
1789
|
case 40: goto tr193;
|
@@ -1803,7 +1810,7 @@ case 110:
|
|
1803
1810
|
goto tr177;
|
1804
1811
|
goto tr192;
|
1805
1812
|
tr193:
|
1806
|
-
#line
|
1813
|
+
#line 34 "hpricot_css.rl"
|
1807
1814
|
{
|
1808
1815
|
ape = p;
|
1809
1816
|
PUSH(aps, ape);
|
@@ -1813,7 +1820,7 @@ st44:
|
|
1813
1820
|
if ( ++p == pe )
|
1814
1821
|
goto _test_eof44;
|
1815
1822
|
case 44:
|
1816
|
-
#line
|
1823
|
+
#line 1824 "hpricot_css.c"
|
1817
1824
|
switch( (*p) ) {
|
1818
1825
|
case 34: goto tr43;
|
1819
1826
|
case 39: goto tr44;
|
@@ -1829,7 +1836,7 @@ case 44:
|
|
1829
1836
|
goto tr68;
|
1830
1837
|
goto tr42;
|
1831
1838
|
tr68:
|
1832
|
-
#line
|
1839
|
+
#line 30 "hpricot_css.rl"
|
1833
1840
|
{
|
1834
1841
|
aps = p;
|
1835
1842
|
}
|
@@ -1838,7 +1845,7 @@ st45:
|
|
1838
1845
|
if ( ++p == pe )
|
1839
1846
|
goto _test_eof45;
|
1840
1847
|
case 45:
|
1841
|
-
#line
|
1848
|
+
#line 1849 "hpricot_css.c"
|
1842
1849
|
switch( (*p) ) {
|
1843
1850
|
case 34: goto tr66;
|
1844
1851
|
case 40: goto tr66;
|
@@ -1851,7 +1858,7 @@ case 45:
|
|
1851
1858
|
goto st45;
|
1852
1859
|
goto st25;
|
1853
1860
|
tr69:
|
1854
|
-
#line
|
1861
|
+
#line 30 "hpricot_css.rl"
|
1855
1862
|
{
|
1856
1863
|
aps = p;
|
1857
1864
|
}
|
@@ -1860,7 +1867,7 @@ st46:
|
|
1860
1867
|
if ( ++p == pe )
|
1861
1868
|
goto _test_eof46;
|
1862
1869
|
case 46:
|
1863
|
-
#line
|
1870
|
+
#line 1871 "hpricot_css.c"
|
1864
1871
|
switch( (*p) ) {
|
1865
1872
|
case 34: goto tr66;
|
1866
1873
|
case 40: goto tr66;
|
@@ -1901,7 +1908,7 @@ case 49:
|
|
1901
1908
|
}
|
1902
1909
|
goto st25;
|
1903
1910
|
tr70:
|
1904
|
-
#line
|
1911
|
+
#line 30 "hpricot_css.rl"
|
1905
1912
|
{
|
1906
1913
|
aps = p;
|
1907
1914
|
}
|
@@ -1910,7 +1917,7 @@ st50:
|
|
1910
1917
|
if ( ++p == pe )
|
1911
1918
|
goto _test_eof50;
|
1912
1919
|
case 50:
|
1913
|
-
#line
|
1920
|
+
#line 1921 "hpricot_css.c"
|
1914
1921
|
switch( (*p) ) {
|
1915
1922
|
case 34: goto tr66;
|
1916
1923
|
case 40: goto tr66;
|
@@ -1930,20 +1937,20 @@ case 51:
|
|
1930
1937
|
}
|
1931
1938
|
goto st25;
|
1932
1939
|
tr34:
|
1933
|
-
#line 1 "
|
1940
|
+
#line 1 "NONE"
|
1934
1941
|
{te = p+1;}
|
1935
|
-
#line
|
1942
|
+
#line 30 "hpricot_css.rl"
|
1936
1943
|
{
|
1937
1944
|
aps = p;
|
1938
1945
|
}
|
1939
|
-
#line
|
1946
|
+
#line 85 "hpricot_css.rl"
|
1940
1947
|
{act = 9;}
|
1941
1948
|
goto st111;
|
1942
1949
|
st111:
|
1943
1950
|
if ( ++p == pe )
|
1944
1951
|
goto _test_eof111;
|
1945
1952
|
case 111:
|
1946
|
-
#line
|
1953
|
+
#line 1954 "hpricot_css.c"
|
1947
1954
|
switch( (*p) ) {
|
1948
1955
|
case -60: goto st20;
|
1949
1956
|
case 40: goto tr169;
|
@@ -1971,20 +1978,20 @@ case 111:
|
|
1971
1978
|
goto st23;
|
1972
1979
|
goto tr166;
|
1973
1980
|
tr35:
|
1974
|
-
#line 1 "
|
1981
|
+
#line 1 "NONE"
|
1975
1982
|
{te = p+1;}
|
1976
|
-
#line
|
1983
|
+
#line 30 "hpricot_css.rl"
|
1977
1984
|
{
|
1978
1985
|
aps = p;
|
1979
1986
|
}
|
1980
|
-
#line
|
1987
|
+
#line 85 "hpricot_css.rl"
|
1981
1988
|
{act = 9;}
|
1982
1989
|
goto st112;
|
1983
1990
|
st112:
|
1984
1991
|
if ( ++p == pe )
|
1985
1992
|
goto _test_eof112;
|
1986
1993
|
case 112:
|
1987
|
-
#line
|
1994
|
+
#line 1995 "hpricot_css.c"
|
1988
1995
|
switch( (*p) ) {
|
1989
1996
|
case -60: goto st20;
|
1990
1997
|
case 40: goto tr169;
|
@@ -2013,20 +2020,20 @@ case 112:
|
|
2013
2020
|
goto st23;
|
2014
2021
|
goto tr166;
|
2015
2022
|
tr36:
|
2016
|
-
#line 1 "
|
2023
|
+
#line 1 "NONE"
|
2017
2024
|
{te = p+1;}
|
2018
|
-
#line
|
2025
|
+
#line 30 "hpricot_css.rl"
|
2019
2026
|
{
|
2020
2027
|
aps = p;
|
2021
2028
|
}
|
2022
|
-
#line
|
2029
|
+
#line 85 "hpricot_css.rl"
|
2023
2030
|
{act = 9;}
|
2024
2031
|
goto st113;
|
2025
2032
|
st113:
|
2026
2033
|
if ( ++p == pe )
|
2027
2034
|
goto _test_eof113;
|
2028
2035
|
case 113:
|
2029
|
-
#line
|
2036
|
+
#line 2037 "hpricot_css.c"
|
2030
2037
|
switch( (*p) ) {
|
2031
2038
|
case -60: goto st20;
|
2032
2039
|
case 40: goto tr169;
|
@@ -2054,16 +2061,16 @@ case 113:
|
|
2054
2061
|
goto st23;
|
2055
2062
|
goto tr166;
|
2056
2063
|
tr194:
|
2057
|
-
#line 1 "
|
2064
|
+
#line 1 "NONE"
|
2058
2065
|
{te = p+1;}
|
2059
|
-
#line
|
2066
|
+
#line 85 "hpricot_css.rl"
|
2060
2067
|
{act = 9;}
|
2061
2068
|
goto st114;
|
2062
2069
|
st114:
|
2063
2070
|
if ( ++p == pe )
|
2064
2071
|
goto _test_eof114;
|
2065
2072
|
case 114:
|
2066
|
-
#line
|
2073
|
+
#line 2074 "hpricot_css.c"
|
2067
2074
|
switch( (*p) ) {
|
2068
2075
|
case -60: goto st20;
|
2069
2076
|
case 40: goto tr169;
|
@@ -2091,20 +2098,20 @@ case 114:
|
|
2091
2098
|
goto st23;
|
2092
2099
|
goto tr166;
|
2093
2100
|
tr37:
|
2094
|
-
#line 1 "
|
2101
|
+
#line 1 "NONE"
|
2095
2102
|
{te = p+1;}
|
2096
|
-
#line
|
2103
|
+
#line 30 "hpricot_css.rl"
|
2097
2104
|
{
|
2098
2105
|
aps = p;
|
2099
2106
|
}
|
2100
|
-
#line
|
2107
|
+
#line 85 "hpricot_css.rl"
|
2101
2108
|
{act = 9;}
|
2102
2109
|
goto st115;
|
2103
2110
|
st115:
|
2104
2111
|
if ( ++p == pe )
|
2105
2112
|
goto _test_eof115;
|
2106
2113
|
case 115:
|
2107
|
-
#line
|
2114
|
+
#line 2115 "hpricot_css.c"
|
2108
2115
|
switch( (*p) ) {
|
2109
2116
|
case -60: goto st20;
|
2110
2117
|
case 40: goto tr169;
|
@@ -2133,16 +2140,16 @@ case 115:
|
|
2133
2140
|
goto st23;
|
2134
2141
|
goto tr166;
|
2135
2142
|
tr195:
|
2136
|
-
#line 1 "
|
2143
|
+
#line 1 "NONE"
|
2137
2144
|
{te = p+1;}
|
2138
|
-
#line
|
2145
|
+
#line 85 "hpricot_css.rl"
|
2139
2146
|
{act = 9;}
|
2140
2147
|
goto st116;
|
2141
2148
|
st116:
|
2142
2149
|
if ( ++p == pe )
|
2143
2150
|
goto _test_eof116;
|
2144
2151
|
case 116:
|
2145
|
-
#line
|
2152
|
+
#line 2153 "hpricot_css.c"
|
2146
2153
|
switch( (*p) ) {
|
2147
2154
|
case -60: goto st20;
|
2148
2155
|
case 40: goto tr169;
|
@@ -2170,16 +2177,16 @@ case 116:
|
|
2170
2177
|
goto st23;
|
2171
2178
|
goto tr166;
|
2172
2179
|
tr196:
|
2173
|
-
#line 1 "
|
2180
|
+
#line 1 "NONE"
|
2174
2181
|
{te = p+1;}
|
2175
|
-
#line
|
2182
|
+
#line 85 "hpricot_css.rl"
|
2176
2183
|
{act = 9;}
|
2177
2184
|
goto st117;
|
2178
2185
|
st117:
|
2179
2186
|
if ( ++p == pe )
|
2180
2187
|
goto _test_eof117;
|
2181
2188
|
case 117:
|
2182
|
-
#line
|
2189
|
+
#line 2190 "hpricot_css.c"
|
2183
2190
|
switch( (*p) ) {
|
2184
2191
|
case -60: goto st20;
|
2185
2192
|
case 40: goto tr169;
|
@@ -2207,16 +2214,16 @@ case 117:
|
|
2207
2214
|
goto st23;
|
2208
2215
|
goto tr166;
|
2209
2216
|
tr197:
|
2210
|
-
#line 1 "
|
2217
|
+
#line 1 "NONE"
|
2211
2218
|
{te = p+1;}
|
2212
|
-
#line
|
2219
|
+
#line 85 "hpricot_css.rl"
|
2213
2220
|
{act = 9;}
|
2214
2221
|
goto st118;
|
2215
2222
|
st118:
|
2216
2223
|
if ( ++p == pe )
|
2217
2224
|
goto _test_eof118;
|
2218
2225
|
case 118:
|
2219
|
-
#line
|
2226
|
+
#line 2227 "hpricot_css.c"
|
2220
2227
|
switch( (*p) ) {
|
2221
2228
|
case -60: goto st20;
|
2222
2229
|
case 40: goto tr169;
|
@@ -2244,16 +2251,16 @@ case 118:
|
|
2244
2251
|
goto st23;
|
2245
2252
|
goto tr166;
|
2246
2253
|
tr198:
|
2247
|
-
#line 1 "
|
2254
|
+
#line 1 "NONE"
|
2248
2255
|
{te = p+1;}
|
2249
|
-
#line
|
2256
|
+
#line 85 "hpricot_css.rl"
|
2250
2257
|
{act = 9;}
|
2251
2258
|
goto st119;
|
2252
2259
|
st119:
|
2253
2260
|
if ( ++p == pe )
|
2254
2261
|
goto _test_eof119;
|
2255
2262
|
case 119:
|
2256
|
-
#line
|
2263
|
+
#line 2264 "hpricot_css.c"
|
2257
2264
|
switch( (*p) ) {
|
2258
2265
|
case -60: goto st20;
|
2259
2266
|
case 40: goto tr169;
|
@@ -2309,7 +2316,7 @@ case 52:
|
|
2309
2316
|
goto tr80;
|
2310
2317
|
goto st0;
|
2311
2318
|
tr77:
|
2312
|
-
#line
|
2319
|
+
#line 30 "hpricot_css.rl"
|
2313
2320
|
{
|
2314
2321
|
aps = p;
|
2315
2322
|
}
|
@@ -2318,18 +2325,18 @@ st53:
|
|
2318
2325
|
if ( ++p == pe )
|
2319
2326
|
goto _test_eof53;
|
2320
2327
|
case 53:
|
2321
|
-
#line
|
2328
|
+
#line 2329 "hpricot_css.c"
|
2322
2329
|
if ( -88 <= (*p) && (*p) <= -65 )
|
2323
2330
|
goto st54;
|
2324
2331
|
goto st0;
|
2325
2332
|
tr81:
|
2326
|
-
#line
|
2333
|
+
#line 30 "hpricot_css.rl"
|
2327
2334
|
{
|
2328
2335
|
aps = p;
|
2329
2336
|
}
|
2330
2337
|
goto st54;
|
2331
2338
|
tr91:
|
2332
|
-
#line
|
2339
|
+
#line 39 "hpricot_css.rl"
|
2333
2340
|
{
|
2334
2341
|
ape = p;
|
2335
2342
|
aps2 = p;
|
@@ -2339,7 +2346,7 @@ st54:
|
|
2339
2346
|
if ( ++p == pe )
|
2340
2347
|
goto _test_eof54;
|
2341
2348
|
case 54:
|
2342
|
-
#line
|
2349
|
+
#line 2350 "hpricot_css.c"
|
2343
2350
|
switch( (*p) ) {
|
2344
2351
|
case -60: goto tr86;
|
2345
2352
|
case 32: goto tr90;
|
@@ -2370,7 +2377,7 @@ case 54:
|
|
2370
2377
|
goto tr90;
|
2371
2378
|
goto tr85;
|
2372
2379
|
tr85:
|
2373
|
-
#line
|
2380
|
+
#line 39 "hpricot_css.rl"
|
2374
2381
|
{
|
2375
2382
|
ape = p;
|
2376
2383
|
aps2 = p;
|
@@ -2380,7 +2387,7 @@ st55:
|
|
2380
2387
|
if ( ++p == pe )
|
2381
2388
|
goto _test_eof55;
|
2382
2389
|
case 55:
|
2383
|
-
#line
|
2390
|
+
#line 2391 "hpricot_css.c"
|
2384
2391
|
if ( (*p) == 61 )
|
2385
2392
|
goto st56;
|
2386
2393
|
goto st0;
|
@@ -2398,7 +2405,7 @@ case 56:
|
|
2398
2405
|
goto tr96;
|
2399
2406
|
goto tr95;
|
2400
2407
|
tr95:
|
2401
|
-
#line
|
2408
|
+
#line 44 "hpricot_css.rl"
|
2402
2409
|
{
|
2403
2410
|
ape2 = p;
|
2404
2411
|
PUSH(aps, ape);
|
@@ -2409,12 +2416,12 @@ st57:
|
|
2409
2416
|
if ( ++p == pe )
|
2410
2417
|
goto _test_eof57;
|
2411
2418
|
case 57:
|
2412
|
-
#line
|
2419
|
+
#line 2420 "hpricot_css.c"
|
2413
2420
|
if ( (*p) == 93 )
|
2414
2421
|
goto tr100;
|
2415
2422
|
goto st57;
|
2416
2423
|
tr96:
|
2417
|
-
#line
|
2424
|
+
#line 44 "hpricot_css.rl"
|
2418
2425
|
{
|
2419
2426
|
ape2 = p;
|
2420
2427
|
PUSH(aps, ape);
|
@@ -2425,7 +2432,7 @@ st58:
|
|
2425
2432
|
if ( ++p == pe )
|
2426
2433
|
goto _test_eof58;
|
2427
2434
|
case 58:
|
2428
|
-
#line
|
2435
|
+
#line 2436 "hpricot_css.c"
|
2429
2436
|
switch( (*p) ) {
|
2430
2437
|
case 32: goto st58;
|
2431
2438
|
case 34: goto st59;
|
@@ -2436,7 +2443,7 @@ case 58:
|
|
2436
2443
|
goto st58;
|
2437
2444
|
goto st57;
|
2438
2445
|
tr97:
|
2439
|
-
#line
|
2446
|
+
#line 44 "hpricot_css.rl"
|
2440
2447
|
{
|
2441
2448
|
ape2 = p;
|
2442
2449
|
PUSH(aps, ape);
|
@@ -2447,21 +2454,21 @@ st59:
|
|
2447
2454
|
if ( ++p == pe )
|
2448
2455
|
goto _test_eof59;
|
2449
2456
|
case 59:
|
2450
|
-
#line
|
2457
|
+
#line 2458 "hpricot_css.c"
|
2451
2458
|
switch( (*p) ) {
|
2452
2459
|
case 34: goto st57;
|
2453
2460
|
case 93: goto tr104;
|
2454
2461
|
}
|
2455
2462
|
goto st59;
|
2456
2463
|
tr104:
|
2457
|
-
#line 1 "
|
2464
|
+
#line 1 "NONE"
|
2458
2465
|
{te = p+1;}
|
2459
2466
|
goto st120;
|
2460
2467
|
st120:
|
2461
2468
|
if ( ++p == pe )
|
2462
2469
|
goto _test_eof120;
|
2463
2470
|
case 120:
|
2464
|
-
#line
|
2471
|
+
#line 2472 "hpricot_css.c"
|
2465
2472
|
if ( (*p) == 34 )
|
2466
2473
|
goto st61;
|
2467
2474
|
goto st60;
|
@@ -2480,7 +2487,7 @@ case 61:
|
|
2480
2487
|
goto tr100;
|
2481
2488
|
goto tr105;
|
2482
2489
|
tr98:
|
2483
|
-
#line
|
2490
|
+
#line 44 "hpricot_css.rl"
|
2484
2491
|
{
|
2485
2492
|
ape2 = p;
|
2486
2493
|
PUSH(aps, ape);
|
@@ -2491,21 +2498,21 @@ st62:
|
|
2491
2498
|
if ( ++p == pe )
|
2492
2499
|
goto _test_eof62;
|
2493
2500
|
case 62:
|
2494
|
-
#line
|
2501
|
+
#line 2502 "hpricot_css.c"
|
2495
2502
|
switch( (*p) ) {
|
2496
2503
|
case 39: goto st57;
|
2497
2504
|
case 93: goto tr108;
|
2498
2505
|
}
|
2499
2506
|
goto st62;
|
2500
2507
|
tr108:
|
2501
|
-
#line 1 "
|
2508
|
+
#line 1 "NONE"
|
2502
2509
|
{te = p+1;}
|
2503
2510
|
goto st121;
|
2504
2511
|
st121:
|
2505
2512
|
if ( ++p == pe )
|
2506
2513
|
goto _test_eof121;
|
2507
2514
|
case 121:
|
2508
|
-
#line
|
2515
|
+
#line 2516 "hpricot_css.c"
|
2509
2516
|
if ( (*p) == 39 )
|
2510
2517
|
goto st61;
|
2511
2518
|
goto st63;
|
@@ -2517,7 +2524,7 @@ case 63:
|
|
2517
2524
|
goto st61;
|
2518
2525
|
goto st63;
|
2519
2526
|
tr86:
|
2520
|
-
#line
|
2527
|
+
#line 39 "hpricot_css.rl"
|
2521
2528
|
{
|
2522
2529
|
ape = p;
|
2523
2530
|
aps2 = p;
|
@@ -2527,14 +2534,14 @@ st64:
|
|
2527
2534
|
if ( ++p == pe )
|
2528
2535
|
goto _test_eof64;
|
2529
2536
|
case 64:
|
2530
|
-
#line
|
2537
|
+
#line 2538 "hpricot_css.c"
|
2531
2538
|
if ( (*p) == 61 )
|
2532
2539
|
goto st56;
|
2533
2540
|
if ( -88 <= (*p) && (*p) <= -65 )
|
2534
2541
|
goto st54;
|
2535
2542
|
goto st0;
|
2536
2543
|
tr87:
|
2537
|
-
#line
|
2544
|
+
#line 39 "hpricot_css.rl"
|
2538
2545
|
{
|
2539
2546
|
ape = p;
|
2540
2547
|
aps2 = p;
|
@@ -2544,14 +2551,14 @@ st65:
|
|
2544
2551
|
if ( ++p == pe )
|
2545
2552
|
goto _test_eof65;
|
2546
2553
|
case 65:
|
2547
|
-
#line
|
2554
|
+
#line 2555 "hpricot_css.c"
|
2548
2555
|
if ( (*p) == 61 )
|
2549
2556
|
goto st56;
|
2550
2557
|
if ( (*p) <= -65 )
|
2551
2558
|
goto st54;
|
2552
2559
|
goto st0;
|
2553
2560
|
tr88:
|
2554
|
-
#line
|
2561
|
+
#line 39 "hpricot_css.rl"
|
2555
2562
|
{
|
2556
2563
|
ape = p;
|
2557
2564
|
aps2 = p;
|
@@ -2561,14 +2568,14 @@ st66:
|
|
2561
2568
|
if ( ++p == pe )
|
2562
2569
|
goto _test_eof66;
|
2563
2570
|
case 66:
|
2564
|
-
#line
|
2571
|
+
#line 2572 "hpricot_css.c"
|
2565
2572
|
if ( (*p) == 61 )
|
2566
2573
|
goto st56;
|
2567
2574
|
if ( (*p) <= -65 )
|
2568
2575
|
goto st67;
|
2569
2576
|
goto st0;
|
2570
2577
|
tr78:
|
2571
|
-
#line
|
2578
|
+
#line 30 "hpricot_css.rl"
|
2572
2579
|
{
|
2573
2580
|
aps = p;
|
2574
2581
|
}
|
@@ -2577,12 +2584,12 @@ st67:
|
|
2577
2584
|
if ( ++p == pe )
|
2578
2585
|
goto _test_eof67;
|
2579
2586
|
case 67:
|
2580
|
-
#line
|
2587
|
+
#line 2588 "hpricot_css.c"
|
2581
2588
|
if ( (*p) <= -65 )
|
2582
2589
|
goto st54;
|
2583
2590
|
goto st0;
|
2584
2591
|
tr89:
|
2585
|
-
#line
|
2592
|
+
#line 39 "hpricot_css.rl"
|
2586
2593
|
{
|
2587
2594
|
ape = p;
|
2588
2595
|
aps2 = p;
|
@@ -2592,14 +2599,14 @@ st68:
|
|
2592
2599
|
if ( ++p == pe )
|
2593
2600
|
goto _test_eof68;
|
2594
2601
|
case 68:
|
2595
|
-
#line
|
2602
|
+
#line 2603 "hpricot_css.c"
|
2596
2603
|
if ( (*p) == 61 )
|
2597
2604
|
goto st56;
|
2598
2605
|
if ( (*p) <= -65 )
|
2599
2606
|
goto st69;
|
2600
2607
|
goto st0;
|
2601
2608
|
tr79:
|
2602
|
-
#line
|
2609
|
+
#line 30 "hpricot_css.rl"
|
2603
2610
|
{
|
2604
2611
|
aps = p;
|
2605
2612
|
}
|
@@ -2608,12 +2615,12 @@ st69:
|
|
2608
2615
|
if ( ++p == pe )
|
2609
2616
|
goto _test_eof69;
|
2610
2617
|
case 69:
|
2611
|
-
#line
|
2618
|
+
#line 2619 "hpricot_css.c"
|
2612
2619
|
if ( (*p) <= -65 )
|
2613
2620
|
goto st67;
|
2614
2621
|
goto st0;
|
2615
2622
|
tr90:
|
2616
|
-
#line
|
2623
|
+
#line 39 "hpricot_css.rl"
|
2617
2624
|
{
|
2618
2625
|
ape = p;
|
2619
2626
|
aps2 = p;
|
@@ -2623,7 +2630,7 @@ st70:
|
|
2623
2630
|
if ( ++p == pe )
|
2624
2631
|
goto _test_eof70;
|
2625
2632
|
case 70:
|
2626
|
-
#line
|
2633
|
+
#line 2634 "hpricot_css.c"
|
2627
2634
|
switch( (*p) ) {
|
2628
2635
|
case 32: goto st70;
|
2629
2636
|
case 61: goto st71;
|
@@ -2632,7 +2639,7 @@ case 70:
|
|
2632
2639
|
goto st70;
|
2633
2640
|
goto st55;
|
2634
2641
|
tr92:
|
2635
|
-
#line
|
2642
|
+
#line 39 "hpricot_css.rl"
|
2636
2643
|
{
|
2637
2644
|
ape = p;
|
2638
2645
|
aps2 = p;
|
@@ -2642,7 +2649,7 @@ st71:
|
|
2642
2649
|
if ( ++p == pe )
|
2643
2650
|
goto _test_eof71;
|
2644
2651
|
case 71:
|
2645
|
-
#line
|
2652
|
+
#line 2653 "hpricot_css.c"
|
2646
2653
|
switch( (*p) ) {
|
2647
2654
|
case 32: goto tr96;
|
2648
2655
|
case 34: goto tr97;
|
@@ -2654,7 +2661,7 @@ case 71:
|
|
2654
2661
|
goto tr96;
|
2655
2662
|
goto tr95;
|
2656
2663
|
tr115:
|
2657
|
-
#line
|
2664
|
+
#line 44 "hpricot_css.rl"
|
2658
2665
|
{
|
2659
2666
|
ape2 = p;
|
2660
2667
|
PUSH(aps, ape);
|
@@ -2665,7 +2672,7 @@ st72:
|
|
2665
2672
|
if ( ++p == pe )
|
2666
2673
|
goto _test_eof72;
|
2667
2674
|
case 72:
|
2668
|
-
#line
|
2675
|
+
#line 2676 "hpricot_css.c"
|
2669
2676
|
switch( (*p) ) {
|
2670
2677
|
case 32: goto tr96;
|
2671
2678
|
case 34: goto tr97;
|
@@ -2676,7 +2683,7 @@ case 72:
|
|
2676
2683
|
goto tr96;
|
2677
2684
|
goto tr95;
|
2678
2685
|
tr93:
|
2679
|
-
#line
|
2686
|
+
#line 39 "hpricot_css.rl"
|
2680
2687
|
{
|
2681
2688
|
ape = p;
|
2682
2689
|
aps2 = p;
|
@@ -2686,14 +2693,14 @@ st73:
|
|
2686
2693
|
if ( ++p == pe )
|
2687
2694
|
goto _test_eof73;
|
2688
2695
|
case 73:
|
2689
|
-
#line
|
2696
|
+
#line 2697 "hpricot_css.c"
|
2690
2697
|
switch( (*p) ) {
|
2691
2698
|
case 46: goto st54;
|
2692
2699
|
case 61: goto st56;
|
2693
2700
|
}
|
2694
2701
|
goto st0;
|
2695
2702
|
tr80:
|
2696
|
-
#line
|
2703
|
+
#line 30 "hpricot_css.rl"
|
2697
2704
|
{
|
2698
2705
|
aps = p;
|
2699
2706
|
}
|
@@ -2702,12 +2709,12 @@ st74:
|
|
2702
2709
|
if ( ++p == pe )
|
2703
2710
|
goto _test_eof74;
|
2704
2711
|
case 74:
|
2705
|
-
#line
|
2712
|
+
#line 2713 "hpricot_css.c"
|
2706
2713
|
if ( (*p) <= -65 )
|
2707
2714
|
goto st69;
|
2708
2715
|
goto st0;
|
2709
2716
|
tr82:
|
2710
|
-
#line
|
2717
|
+
#line 30 "hpricot_css.rl"
|
2711
2718
|
{
|
2712
2719
|
aps = p;
|
2713
2720
|
}
|
@@ -2716,12 +2723,12 @@ st75:
|
|
2716
2723
|
if ( ++p == pe )
|
2717
2724
|
goto _test_eof75;
|
2718
2725
|
case 75:
|
2719
|
-
#line
|
2726
|
+
#line 2727 "hpricot_css.c"
|
2720
2727
|
if ( (*p) == 46 )
|
2721
2728
|
goto st54;
|
2722
2729
|
goto st0;
|
2723
2730
|
tr83:
|
2724
|
-
#line
|
2731
|
+
#line 30 "hpricot_css.rl"
|
2725
2732
|
{
|
2726
2733
|
aps = p;
|
2727
2734
|
}
|
@@ -2730,7 +2737,7 @@ st76:
|
|
2730
2737
|
if ( ++p == pe )
|
2731
2738
|
goto _test_eof76;
|
2732
2739
|
case 76:
|
2733
|
-
#line
|
2740
|
+
#line 2741 "hpricot_css.c"
|
2734
2741
|
switch( (*p) ) {
|
2735
2742
|
case -60: goto tr86;
|
2736
2743
|
case 32: goto tr90;
|
@@ -2762,7 +2769,7 @@ case 76:
|
|
2762
2769
|
goto tr90;
|
2763
2770
|
goto tr85;
|
2764
2771
|
tr116:
|
2765
|
-
#line
|
2772
|
+
#line 39 "hpricot_css.rl"
|
2766
2773
|
{
|
2767
2774
|
ape = p;
|
2768
2775
|
aps2 = p;
|
@@ -2772,7 +2779,7 @@ st77:
|
|
2772
2779
|
if ( ++p == pe )
|
2773
2780
|
goto _test_eof77;
|
2774
2781
|
case 77:
|
2775
|
-
#line
|
2782
|
+
#line 2783 "hpricot_css.c"
|
2776
2783
|
switch( (*p) ) {
|
2777
2784
|
case -60: goto tr86;
|
2778
2785
|
case 32: goto tr90;
|
@@ -2804,7 +2811,7 @@ case 77:
|
|
2804
2811
|
goto tr90;
|
2805
2812
|
goto tr85;
|
2806
2813
|
tr117:
|
2807
|
-
#line
|
2814
|
+
#line 39 "hpricot_css.rl"
|
2808
2815
|
{
|
2809
2816
|
ape = p;
|
2810
2817
|
aps2 = p;
|
@@ -2814,7 +2821,7 @@ st78:
|
|
2814
2821
|
if ( ++p == pe )
|
2815
2822
|
goto _test_eof78;
|
2816
2823
|
case 78:
|
2817
|
-
#line
|
2824
|
+
#line 2825 "hpricot_css.c"
|
2818
2825
|
switch( (*p) ) {
|
2819
2826
|
case -60: goto tr86;
|
2820
2827
|
case 32: goto tr90;
|
@@ -2846,7 +2853,7 @@ case 78:
|
|
2846
2853
|
goto tr90;
|
2847
2854
|
goto tr85;
|
2848
2855
|
tr118:
|
2849
|
-
#line
|
2856
|
+
#line 39 "hpricot_css.rl"
|
2850
2857
|
{
|
2851
2858
|
ape = p;
|
2852
2859
|
aps2 = p;
|
@@ -2856,7 +2863,7 @@ st79:
|
|
2856
2863
|
if ( ++p == pe )
|
2857
2864
|
goto _test_eof79;
|
2858
2865
|
case 79:
|
2859
|
-
#line
|
2866
|
+
#line 2867 "hpricot_css.c"
|
2860
2867
|
switch( (*p) ) {
|
2861
2868
|
case -60: goto tr86;
|
2862
2869
|
case 32: goto tr90;
|
@@ -2887,7 +2894,7 @@ case 79:
|
|
2887
2894
|
goto tr90;
|
2888
2895
|
goto tr85;
|
2889
2896
|
tr119:
|
2890
|
-
#line
|
2897
|
+
#line 39 "hpricot_css.rl"
|
2891
2898
|
{
|
2892
2899
|
ape = p;
|
2893
2900
|
aps2 = p;
|
@@ -2897,7 +2904,7 @@ st80:
|
|
2897
2904
|
if ( ++p == pe )
|
2898
2905
|
goto _test_eof80;
|
2899
2906
|
case 80:
|
2900
|
-
#line
|
2907
|
+
#line 2908 "hpricot_css.c"
|
2901
2908
|
switch( (*p) ) {
|
2902
2909
|
case -60: goto tr120;
|
2903
2910
|
case 32: goto tr96;
|
@@ -2931,11 +2938,11 @@ case 80:
|
|
2931
2938
|
goto tr96;
|
2932
2939
|
goto tr95;
|
2933
2940
|
tr120:
|
2934
|
-
#line
|
2941
|
+
#line 30 "hpricot_css.rl"
|
2935
2942
|
{
|
2936
2943
|
aps = p;
|
2937
2944
|
}
|
2938
|
-
#line
|
2945
|
+
#line 44 "hpricot_css.rl"
|
2939
2946
|
{
|
2940
2947
|
ape2 = p;
|
2941
2948
|
PUSH(aps, ape);
|
@@ -2946,18 +2953,18 @@ st81:
|
|
2946
2953
|
if ( ++p == pe )
|
2947
2954
|
goto _test_eof81;
|
2948
2955
|
case 81:
|
2949
|
-
#line
|
2956
|
+
#line 2957 "hpricot_css.c"
|
2950
2957
|
if ( (*p) == 93 )
|
2951
2958
|
goto tr100;
|
2952
2959
|
if ( -88 <= (*p) && (*p) <= -65 )
|
2953
2960
|
goto st82;
|
2954
2961
|
goto st57;
|
2955
2962
|
tr124:
|
2956
|
-
#line
|
2963
|
+
#line 30 "hpricot_css.rl"
|
2957
2964
|
{
|
2958
2965
|
aps = p;
|
2959
2966
|
}
|
2960
|
-
#line
|
2967
|
+
#line 44 "hpricot_css.rl"
|
2961
2968
|
{
|
2962
2969
|
ape2 = p;
|
2963
2970
|
PUSH(aps, ape);
|
@@ -2968,7 +2975,7 @@ st82:
|
|
2968
2975
|
if ( ++p == pe )
|
2969
2976
|
goto _test_eof82;
|
2970
2977
|
case 82:
|
2971
|
-
#line
|
2978
|
+
#line 2979 "hpricot_css.c"
|
2972
2979
|
switch( (*p) ) {
|
2973
2980
|
case -60: goto st81;
|
2974
2981
|
case 45: goto st82;
|
@@ -2995,11 +3002,11 @@ case 82:
|
|
2995
3002
|
goto st85;
|
2996
3003
|
goto st57;
|
2997
3004
|
tr121:
|
2998
|
-
#line
|
3005
|
+
#line 30 "hpricot_css.rl"
|
2999
3006
|
{
|
3000
3007
|
aps = p;
|
3001
3008
|
}
|
3002
|
-
#line
|
3009
|
+
#line 44 "hpricot_css.rl"
|
3003
3010
|
{
|
3004
3011
|
ape2 = p;
|
3005
3012
|
PUSH(aps, ape);
|
@@ -3010,18 +3017,18 @@ st83:
|
|
3010
3017
|
if ( ++p == pe )
|
3011
3018
|
goto _test_eof83;
|
3012
3019
|
case 83:
|
3013
|
-
#line
|
3020
|
+
#line 3021 "hpricot_css.c"
|
3014
3021
|
if ( (*p) == 93 )
|
3015
3022
|
goto tr100;
|
3016
3023
|
if ( (*p) <= -65 )
|
3017
3024
|
goto st82;
|
3018
3025
|
goto st57;
|
3019
3026
|
tr122:
|
3020
|
-
#line
|
3027
|
+
#line 30 "hpricot_css.rl"
|
3021
3028
|
{
|
3022
3029
|
aps = p;
|
3023
3030
|
}
|
3024
|
-
#line
|
3031
|
+
#line 44 "hpricot_css.rl"
|
3025
3032
|
{
|
3026
3033
|
ape2 = p;
|
3027
3034
|
PUSH(aps, ape);
|
@@ -3032,18 +3039,18 @@ st84:
|
|
3032
3039
|
if ( ++p == pe )
|
3033
3040
|
goto _test_eof84;
|
3034
3041
|
case 84:
|
3035
|
-
#line
|
3042
|
+
#line 3043 "hpricot_css.c"
|
3036
3043
|
if ( (*p) == 93 )
|
3037
3044
|
goto tr100;
|
3038
3045
|
if ( (*p) <= -65 )
|
3039
3046
|
goto st83;
|
3040
3047
|
goto st57;
|
3041
3048
|
tr123:
|
3042
|
-
#line
|
3049
|
+
#line 30 "hpricot_css.rl"
|
3043
3050
|
{
|
3044
3051
|
aps = p;
|
3045
3052
|
}
|
3046
|
-
#line
|
3053
|
+
#line 44 "hpricot_css.rl"
|
3047
3054
|
{
|
3048
3055
|
ape2 = p;
|
3049
3056
|
PUSH(aps, ape);
|
@@ -3054,18 +3061,18 @@ st85:
|
|
3054
3061
|
if ( ++p == pe )
|
3055
3062
|
goto _test_eof85;
|
3056
3063
|
case 85:
|
3057
|
-
#line
|
3064
|
+
#line 3065 "hpricot_css.c"
|
3058
3065
|
if ( (*p) == 93 )
|
3059
3066
|
goto tr100;
|
3060
3067
|
if ( (*p) <= -65 )
|
3061
3068
|
goto st84;
|
3062
3069
|
goto st57;
|
3063
3070
|
tr125:
|
3064
|
-
#line
|
3071
|
+
#line 30 "hpricot_css.rl"
|
3065
3072
|
{
|
3066
3073
|
aps = p;
|
3067
3074
|
}
|
3068
|
-
#line
|
3075
|
+
#line 44 "hpricot_css.rl"
|
3069
3076
|
{
|
3070
3077
|
ape2 = p;
|
3071
3078
|
PUSH(aps, ape);
|
@@ -3076,27 +3083,27 @@ st86:
|
|
3076
3083
|
if ( ++p == pe )
|
3077
3084
|
goto _test_eof86;
|
3078
3085
|
case 86:
|
3079
|
-
#line
|
3086
|
+
#line 3087 "hpricot_css.c"
|
3080
3087
|
switch( (*p) ) {
|
3081
3088
|
case 46: goto st82;
|
3082
3089
|
case 93: goto tr100;
|
3083
3090
|
}
|
3084
3091
|
goto st57;
|
3085
3092
|
tr147:
|
3086
|
-
#line 1 "
|
3093
|
+
#line 1 "NONE"
|
3087
3094
|
{te = p+1;}
|
3088
|
-
#line
|
3095
|
+
#line 30 "hpricot_css.rl"
|
3089
3096
|
{
|
3090
3097
|
aps = p;
|
3091
3098
|
}
|
3092
|
-
#line
|
3099
|
+
#line 81 "hpricot_css.rl"
|
3093
3100
|
{act = 5;}
|
3094
3101
|
goto st122;
|
3095
3102
|
st122:
|
3096
3103
|
if ( ++p == pe )
|
3097
3104
|
goto _test_eof122;
|
3098
3105
|
case 122:
|
3099
|
-
#line
|
3106
|
+
#line 3107 "hpricot_css.c"
|
3100
3107
|
switch( (*p) ) {
|
3101
3108
|
case -60: goto st1;
|
3102
3109
|
case 45: goto tr1;
|
@@ -3123,16 +3130,16 @@ case 122:
|
|
3123
3130
|
goto st4;
|
3124
3131
|
goto tr149;
|
3125
3132
|
tr201:
|
3126
|
-
#line 1 "
|
3133
|
+
#line 1 "NONE"
|
3127
3134
|
{te = p+1;}
|
3128
|
-
#line
|
3135
|
+
#line 81 "hpricot_css.rl"
|
3129
3136
|
{act = 5;}
|
3130
3137
|
goto st123;
|
3131
3138
|
st123:
|
3132
3139
|
if ( ++p == pe )
|
3133
3140
|
goto _test_eof123;
|
3134
3141
|
case 123:
|
3135
|
-
#line
|
3142
|
+
#line 3143 "hpricot_css.c"
|
3136
3143
|
switch( (*p) ) {
|
3137
3144
|
case -60: goto st1;
|
3138
3145
|
case 45: goto tr1;
|
@@ -3159,16 +3166,16 @@ case 123:
|
|
3159
3166
|
goto st4;
|
3160
3167
|
goto tr149;
|
3161
3168
|
tr202:
|
3162
|
-
#line 1 "
|
3169
|
+
#line 1 "NONE"
|
3163
3170
|
{te = p+1;}
|
3164
|
-
#line
|
3171
|
+
#line 81 "hpricot_css.rl"
|
3165
3172
|
{act = 5;}
|
3166
3173
|
goto st124;
|
3167
3174
|
st124:
|
3168
3175
|
if ( ++p == pe )
|
3169
3176
|
goto _test_eof124;
|
3170
3177
|
case 124:
|
3171
|
-
#line
|
3178
|
+
#line 3179 "hpricot_css.c"
|
3172
3179
|
switch( (*p) ) {
|
3173
3180
|
case -60: goto st1;
|
3174
3181
|
case 45: goto tr1;
|
@@ -3194,20 +3201,20 @@ case 124:
|
|
3194
3201
|
goto st4;
|
3195
3202
|
goto tr149;
|
3196
3203
|
tr148:
|
3197
|
-
#line 1 "
|
3204
|
+
#line 1 "NONE"
|
3198
3205
|
{te = p+1;}
|
3199
|
-
#line
|
3206
|
+
#line 30 "hpricot_css.rl"
|
3200
3207
|
{
|
3201
3208
|
aps = p;
|
3202
3209
|
}
|
3203
|
-
#line
|
3210
|
+
#line 81 "hpricot_css.rl"
|
3204
3211
|
{act = 5;}
|
3205
3212
|
goto st125;
|
3206
3213
|
st125:
|
3207
3214
|
if ( ++p == pe )
|
3208
3215
|
goto _test_eof125;
|
3209
3216
|
case 125:
|
3210
|
-
#line
|
3217
|
+
#line 3218 "hpricot_css.c"
|
3211
3218
|
switch( (*p) ) {
|
3212
3219
|
case -60: goto st1;
|
3213
3220
|
case 45: goto tr1;
|
@@ -3234,16 +3241,16 @@ case 125:
|
|
3234
3241
|
goto st4;
|
3235
3242
|
goto tr149;
|
3236
3243
|
tr203:
|
3237
|
-
#line 1 "
|
3244
|
+
#line 1 "NONE"
|
3238
3245
|
{te = p+1;}
|
3239
|
-
#line
|
3246
|
+
#line 81 "hpricot_css.rl"
|
3240
3247
|
{act = 5;}
|
3241
3248
|
goto st126;
|
3242
3249
|
st126:
|
3243
3250
|
if ( ++p == pe )
|
3244
3251
|
goto _test_eof126;
|
3245
3252
|
case 126:
|
3246
|
-
#line
|
3253
|
+
#line 3254 "hpricot_css.c"
|
3247
3254
|
switch( (*p) ) {
|
3248
3255
|
case -60: goto st1;
|
3249
3256
|
case 45: goto tr1;
|
@@ -3495,7 +3502,8 @@ case 126:
|
|
3495
3502
|
|
3496
3503
|
_out: {}
|
3497
3504
|
}
|
3498
|
-
|
3505
|
+
|
3506
|
+
#line 116 "hpricot_css.rl"
|
3499
3507
|
|
3500
3508
|
rb_gc_unregister_address(&focus);
|
3501
3509
|
rb_gc_unregister_address(&tmpt);
|