Known failure page (#1876) This PR adds a known failures page. This resolves #1750. The known failures are moved from the example pages. (I also updated all example pages with invalid HTML.) Some known failures were actually fixed in the meantime but never updated, so I removed a few. Those were: - Handlebars - Markdown's nested bold-italic - Smarty - Textile's "Nested styles are only partially supported" ### Screenshot <details> ![image](https://user-images.githubusercontent.com/20878432/56849438-7eca3200-68f4-11e9-9dc3-bf0256be8d1e.png) </details>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135
diff --git a/examples/prism-actionscript.html b/examples/prism-actionscript.html
index abb5804..9ef3987 100644
--- a/examples/prism-actionscript.html
+++ b/examples/prism-actionscript.html
@@ -93,7 +93,7 @@ class B extends A {}</code></pre>
var gradientBmp:BitmapData = new BitmapData(256, 10, false, 0);
gradientBmp.draw(gradient);
RLUT = new Array(); GLUT = new Array(); BLUT = new Array();
- for (var i:int = 0; i < 256; i++) {
+ for (var i:int = 0; i < 256; i++) {
var pixelColor:uint = gradientBmp.getPixel(i, 0);
//I drew the gradient backwards, so sue me
RLUT[256-i] = pixelColor & 0xff0000;
@@ -130,4 +130,4 @@ class B extends A {}</code></pre>
colorBmp.paletteMap(sourceBmp, sourceBmp.rect, O, RLUT, GLUT, BLUT, null);
}
}
-}</code></pre>
\ No newline at end of file
+}</code></pre>
diff --git a/examples/prism-applescript.html b/examples/prism-applescript.html
index c88390e..9567b87 100644
--- a/examples/prism-applescript.html
+++ b/examples/prism-applescript.html
@@ -24,18 +24,3 @@ text 1 thru 5 of "Bring me the mouse."
set averageTemp to 63 as degrees Fahrenheit
set circleArea to (pi * 7 * 7) as square yards
</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Comments only support one level of nesting</h3>
-<pre><code>(* Nested block
- (* comments
- (* on more than
- 2 levels *)
- are *)
-not supported *)</code></pre>
\ No newline at end of file
diff --git a/examples/prism-arduino.html b/examples/prism-arduino.html
index 915f700..cc96f26 100644
--- a/examples/prism-arduino.html
+++ b/examples/prism-arduino.html
@@ -14,7 +14,7 @@ are supported too."</code></pre>
false;</code></pre>
<h2>Operators</h2>
-<pre><code>a < b;
+<pre><code>a < b;
c && d;</code></pre>
<h2>Full example</h2>
@@ -28,7 +28,7 @@ int piezo = 8;
* runs once before everyhing else
*/
void setup() {
- pinMode(piezo, OUTPUT);
+ pinMode(piezo, OUTPUT);
}
/**
diff --git a/examples/prism-asciidoc.html b/examples/prism-asciidoc.html
index d6df302..bd2aedf 100644
--- a/examples/prism-asciidoc.html
+++ b/examples/prism-asciidoc.html
@@ -88,7 +88,7 @@ Dolor::
<pre><code>[cols="e,m,^,>s",width="25%"]
|============================
|1 >s|2 |3 |4
-^|5 2.2+^.^|6 .3+<.>m|7
+^|5 2.2+^.^|6 .3+<.>m|7
^|8
|9 2+>|10
|============================</code></pre>
@@ -101,4 +101,4 @@ This is an _emphasis_
<h2>Attribute entries</h2>
<pre><code>:Author Initials: JB
{authorinitials}
-:Author Initials!:</code></pre>
\ No newline at end of file
+:Author Initials!:</code></pre>
diff --git a/examples/prism-aspnet.html b/examples/prism-aspnet.html
index d9c30fc..d65a84d 100644
--- a/examples/prism-aspnet.html
+++ b/examples/prism-aspnet.html
@@ -1,17 +1,17 @@
<h2>Comments</h2>
-<pre><code><%-- This is a comment --%>
-<%-- This is a
+<pre><code><%-- This is a comment --%>
+<%-- This is a
multi-line comment --%></code></pre>
<h2>Page directives</h2>
-<pre><code><%@ Page Title="Products" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="WingtipToys.ProductList" %>
+<pre><code><%@ Page Title="Products" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="WingtipToys.ProductList" %>
</code></pre>
<h2>Directive tag</h2>
-<pre><code><%: Page.Title %>
-<a href="ProductDetails.aspx?productID=<%#:Item.ProductID%>">
+<pre><code><%: Page.Title %>
+<a href="ProductDetails.aspx?productID=<%#:Item.ProductID%>">
<span>
- <%#:Item.ProductName%>
+ <%#:Item.ProductName%>
</span></code></pre>
<h2>Highlighted C# inside scripts</h2>
@@ -19,18 +19,18 @@ multi-line comment --%></code></pre>
On this page, check C# <strong>before</strong> checking ASP.NET should make
the example below work properly.</p>
<pre><code><script runat="server">
- // The following variables are visible to all procedures
- // within the script block.
- String str;
- int i;
- int i2;
+ // The following variables are visible to all procedures
+ // within the script block.
+ String str;
+ int i;
+ int i2;
- int DoubleIt(int inpt)
- {
- // The following variable is visible only within
- // the DoubleIt procedure.
- int factor = 2;
+ int DoubleIt(int inpt)
+ {
+ // The following variable is visible only within
+ // the DoubleIt procedure.
+ int factor = 2;
- return inpt * factor;
- }
-</script></code></pre>
\ No newline at end of file
+ return inpt * factor;
+ }
+</script></code></pre>
diff --git a/examples/prism-autohotkey.html b/examples/prism-autohotkey.html
index 620edb2..3e7ced7 100644
--- a/examples/prism-autohotkey.html
+++ b/examples/prism-autohotkey.html
@@ -19,7 +19,7 @@ if f_path =
return
if f_class = #32770 ; It's a dialog.
{
- if f_Edit1Pos <> ; And it has an Edit1 control.
+ if f_Edit1Pos <> ; And it has an Edit1 control.
{
; Activate the window so that if the user is middle-clicking
; outside the dialog, subsequent clicks will also work:
@@ -37,7 +37,7 @@ if f_class = #32770 ; It's a dialog.
}
else if f_class in ExploreWClass,CabinetWClass ; In Explorer, switch folders.
{
- if f_Edit1Pos <> ; And it has an Edit1 control.
+ if f_Edit1Pos <> ; And it has an Edit1 control.
{
ControlSetText, Edit1, %f_path%, ahk_id %f_window_id%
; Tekl reported the following: "If I want to change to Folder L:\folder
@@ -65,4 +65,4 @@ else if f_class = ConsoleWindowClass ; In a console window, CD to that directory
; 2) It's a supported type but it lacks an Edit1 control to facilitate the custom
; action, so instead do the default action below.
Run, Explorer %f_path% ; Might work on more systems without double quotes.
-return</code></pre>
\ No newline at end of file
+return</code></pre>
diff --git a/examples/prism-autoit.html b/examples/prism-autoit.html
index 51220b4..be283a4 100644
--- a/examples/prism-autoit.html
+++ b/examples/prism-autoit.html
@@ -36,17 +36,3 @@ For $i = 1 To 10
EndIf
MsgBox($MB_SYSTEMMODAL, "", "The value of $i is: " & $i)
Next</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nested block comments</h3>
-<pre><code>#cs
- #cs
- foo()
- #ce
-#ce</code></pre>
\ No newline at end of file
diff --git a/examples/prism-bash.html b/examples/prism-bash.html
index 3e0febf..5cf56d1 100644
--- a/examples/prism-bash.html
+++ b/examples/prism-bash.html
@@ -21,7 +21,7 @@ args=("$@")
echo ${args[0]} ${args[1]} ${args[2]}</code></pre>
<h2>Keywords</h2>
-<pre><code>for (( i=0;i<$ELEMENTS;i++)); do
+<pre><code>for (( i=0;i<$ELEMENTS;i++)); do
echo ${ARRAY[${i}]}
done
while read LINE; do
@@ -46,4 +46,4 @@ sudo dpkg -i vagrant_1.7.2_x86_64.deb
git pull origin master
-sudo gpg --refresh-keys; sudo apt-key update; sudo rm -rf /var/lib/apt/{lists,lists.old}; sudo mkdir -p /var/lib/apt/lists/partial; sudo apt-get clean all; sudo apt-get update</code></pre>
\ No newline at end of file
+sudo gpg --refresh-keys; sudo apt-key update; sudo rm -rf /var/lib/apt/{lists,lists.old}; sudo mkdir -p /var/lib/apt/lists/partial; sudo apt-get clean all; sudo apt-get update</code></pre>
diff --git a/examples/prism-basic.html b/examples/prism-basic.html
index 3630a8a..241a057 100644
--- a/examples/prism-basic.html
+++ b/examples/prism-basic.html
@@ -57,7 +57,7 @@ DO
CALL PrintSomeStars(NumStars)
DO
INPUT "Do you want more stars? ", Answer$
- LOOP UNTIL Answer$ <> ""
+ LOOP UNTIL Answer$ <> ""
Answer$ = LEFT$(Answer$, 1)
LOOP WHILE UCASE$(Answer$) = "Y"
PRINT "Goodbye "; UserName$
@@ -66,4 +66,4 @@ SUB PrintSomeStars (StarCount)
REM This procedure uses a local variable called Stars$
Stars$ = STRING$(StarCount, "*")
PRINT Stars$
-END SUB</code></pre>
\ No newline at end of file
+END SUB</code></pre>
diff --git a/examples/prism-bison.html b/examples/prism-bison.html
index 9c7edeb..a4ccf8d 100644
--- a/examples/prism-bison.html
+++ b/examples/prism-bison.html
@@ -50,7 +50,7 @@ int yylex(void);
string* op_val;
}
-%start input
+%start input
%token <int_val> INTEGER_LITERAL
%type <int_val> exp
@@ -74,7 +74,7 @@ int yyerror(string s)
{
extern int yylineno; // defined and maintained in lex.c
extern char *yytext; // defined and maintained in lex.c
-
+
cerr << "ERROR: " << s << " at symbol \"" << yytext;
cerr << "\" on line " << yylineno << endl;
exit(1);
@@ -84,21 +84,3 @@ int yyerror(char *s)
{
return yyerror(string(s));
}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Two levels of nesting inside C section</h3>
-<pre><code>{
- if($1) {
- if($2) {
-
- }
- }
-} // <- Broken
-%%
-%%</code></pre>
\ No newline at end of file
diff --git a/examples/prism-brainfuck.html b/examples/prism-brainfuck.html
index 89a435c..d47a974 100644
--- a/examples/prism-brainfuck.html
+++ b/examples/prism-brainfuck.html
@@ -7,15 +7,15 @@
>+++ Add 3 to Cell #3
>+++ Add 3 to Cell #4
>+ Add 1 to Cell #5
- <<<<- Decrement the loop counter in Cell #1
+ <<<<- Decrement the loop counter in Cell #1
] Loop till Cell #1 is zero; number of iterations is 4
>+ Add 1 to Cell #2
>+ Add 1 to Cell #3
>- Subtract 1 from Cell #4
>>+ Add 1 to Cell #6
- [<] Move back to the first zero cell you find; this will
+ [<] Move back to the first zero cell you find; this will
be Cell #1 which was cleared by the previous loop
- <- Decrement the loop Counter in Cell #0
+ <- Decrement the loop Counter in Cell #0
] Loop till Cell #0 is zero; number of iterations is 8
The result of this is:
@@ -27,11 +27,11 @@ Pointer : ^
>---. Subtract 3 from Cell #3 to get 101 which is 'e'
+++++++..+++. Likewise for 'llo' from Cell #3
>>. Cell #5 is 32 for the space
-<-. Subtract 1 from Cell #4 for 87 to give a 'W'
-<. Cell #3 was set to 'o' from the end of 'Hello'
+<-. Subtract 1 from Cell #4 for 87 to give a 'W'
+<. Cell #3 was set to 'o' from the end of 'Hello'
+++.------.--------. Cell #3 for 'rl' and 'd'
>>+. Add 1 to Cell #5 gives us an exclamation point
>++. And finally a newline from Cell #6</code></pre>
<h2>One-line example</h2>
-<pre><code>++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.</code></pre>
+<pre><code>++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.</code></pre>
diff --git a/examples/prism-bro.html b/examples/prism-bro.html
index 83d6374..d7645c6 100644
--- a/examples/prism-bro.html
+++ b/examples/prism-bro.html
@@ -300,7 +300,7 @@ function check_scan(c: connection, established: bool, reverse: bool): bool
# because c might not correspond to an active connection (which
# causes the function to fail).
if ( suppress_UDP_scan_checks &&
- service >= 0/udp && service <= 65535/udp )
+ service >= 0/udp && service <= 65535/udp )
return F;
if ( service in skip_services && ! outbound )
@@ -343,8 +343,8 @@ function check_scan(c: connection, established: bool, reverse: bool): bool
empty_bs_table;
}
- if ( ++distinct_backscatter_peers[orig][resp] <= 2 &&
- # The test is <= 2 because we get two check_scan()
+ if ( ++distinct_backscatter_peers[orig][resp] <= 2 &&
+ # The test is <= 2 because we get two check_scan()
# calls, once on connection attempt and once on
# tear-down.
@@ -380,7 +380,7 @@ function check_scan(c: connection, established: bool, reverse: bool): bool
pre_distinct_peers[orig] = set();
add pre_distinct_peers[orig][resp];
- if ( |pre_distinct_peers[orig]| < addr_scan_trigger )
+ if ( |pre_distinct_peers[orig]| < addr_scan_trigger )
ignore = T;
}
@@ -462,7 +462,7 @@ function check_scan(c: connection, established: bool, reverse: bool): bool
}
# Check for low ports.
- if ( activate_priv_port_check && ! outbound && service < 1024/tcp &&
+ if ( activate_priv_port_check && ! outbound && service < 1024/tcp &&
service !in troll_skip_service )
{
if ( orig !in distinct_low_ports ||
@@ -559,7 +559,7 @@ function thresh_check(v: vector of count, idx: table[addr] of count,
return F;
}
- if ( idx[orig] <= |v| && n >= v[idx[orig]] )
+ if ( idx[orig] <= |v| && n >= v[idx[orig]] )
{
++idx[orig];
return T;
@@ -578,7 +578,7 @@ function thresh_check_2(v: vector of count, idx: table[addr, addr] of count,
return F;
}
- if ( idx[orig,resp] <= |v| && n >= v[idx[orig, resp]] )
+ if ( idx[orig,resp] <= |v| && n >= v[idx[orig, resp]] )
{
++idx[orig,resp];
return T;
@@ -642,4 +642,4 @@ event bro_done()
for ( orig in distinct_low_ports )
lowport_summary(distinct_low_ports, orig);
}
-</code></pre>
\ No newline at end of file
+</code></pre>
diff --git a/examples/prism-c.html b/examples/prism-c.html
index aee1c06..635b01f 100644
--- a/examples/prism-c.html
+++ b/examples/prism-c.html
@@ -16,7 +16,7 @@ main(int argc, char *argv[])
{
int c;
printf("Number of command line arguments passed: %d\n", argc);
- for ( c = 0 ; c < argc ; c++)
+ for ( c = 0 ; c < argc ; c++)
printf("%d. Command line argument passed is %s\n", c+1, argv[c]);
return 0;
-}</code></pre>
\ No newline at end of file
+}</code></pre>
diff --git a/examples/prism-clojure.html b/examples/prism-clojure.html
index abc5019..4dd5118 100644
--- a/examples/prism-clojure.html
+++ b/examples/prism-clojure.html
@@ -255,8 +255,8 @@ keymap ; => {:a 1, :b 2, :c 3}
; The "Thread-first" macro (->) inserts into each form the result of
; the previous, as the first argument (second item)
-(->
- {:a 1 :b 2}
+(->
+ {:a 1 :b 2}
(assoc :c 3) ;=> (assoc {:a 1 :b 2} :c 3)
(dissoc :b)) ;=> (dissoc (assoc {:a 1 :b 2} :c 3) :b)
@@ -275,7 +275,7 @@ keymap ; => {:a 1, :b 2, :c 3}
; Result: [1 3 5 7 9]
; When you are in a situation where you want more freedom as where to
-; put the result of previous data transformations in an
+; put the result of previous data transformations in an
; expression, you can use the as-> macro. With it, you can assign a
; specific name to transformations' output and use it as a
; placeholder in your chained expressions:
@@ -365,7 +365,7 @@ keymap ; => {:a 1, :b 2, :c 3}
(swap! my-atom assoc :b 2) ; Sets my-atom to the result of (assoc {:a 1} :b 2)
; Use '@' to dereference the atom and get the value
-my-atom ;=> Atom<#...> (Returns the Atom object)
+my-atom ;=> Atom<#...> (Returns the Atom object)
@my-atom ; => {:a 1 :b 2}
; Here's a simple counter using an atom
@@ -383,4 +383,4 @@ my-atom ;=> Atom<#...> (Returns the Atom object)
; Other STM constructs are refs and agents.
; Refs: http://clojure.org/refs
-; Agents: http://clojure.org/agents</code></pre>
\ No newline at end of file
+; Agents: http://clojure.org/agents</code></pre>
diff --git a/examples/prism-cpp.html b/examples/prism-cpp.html
index 32bdcbd..f0fa1d3 100644
--- a/examples/prism-cpp.html
+++ b/examples/prism-cpp.html
@@ -32,7 +32,7 @@ vector<int> pick_vector_with_biggest_fifth_element(
vector<int> left,
vector<int> right
){
- if( (left[5]) < (right[5]) ){
+ if( (left[5]) < (right[5]) ){
return( right );
};
// else
@@ -40,18 +40,18 @@ vector<int> pick_vector_with_biggest_fifth_element(
}
int vector_demo(void){
- cout << "vector demo" << endl;
+ cout << "vector demo" << endl;
vector<int> left(7);
vector<int> right(7);
left[5] = 7;
right[5] = 8;
- cout << left[5] << endl;
- cout << right[5] << endl;
+ cout << left[5] << endl;
+ cout << right[5] << endl;
vector<int> biggest(
pick_vector_with_biggest_fifth_element( left, right )
);
- cout << biggest[5] << endl;
+ cout << biggest[5] << endl;
return 0;
}
diff --git a/examples/prism-d.html b/examples/prism-d.html
index d4bf34c..9ef1d6c 100644
--- a/examples/prism-d.html
+++ b/examples/prism-d.html
@@ -252,16 +252,3 @@ void main(char[][] args) // 'void' here means return 0 by default.
assert(_totalc >= _argc);
}
}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Comments only support one level of nesting</h3>
-<pre><code>/+ /+ /+ this does not work +/ +/ +/</code></pre>
-
-<h3>Token strings only support one level of nesting</h3>
-<pre><code>q{ q{ q{ this does not work } } }</code></pre>
\ No newline at end of file
diff --git a/examples/prism-elixir.html b/examples/prism-elixir.html
index 7112fbc..df4426b 100644
--- a/examples/prism-elixir.html
+++ b/examples/prism-elixir.html
@@ -450,13 +450,3 @@ send pid, {:circle, 2}
# The shell is also a process, you can use `self` to get the current pid
self() #=> #PID<0.27.0></code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>String interpolation in single-quoted strings</h3>
-<pre><code>'#{:atom} <- this should not be highligted'</code></pre>
\ No newline at end of file
diff --git a/examples/prism-gml.html b/examples/prism-gml.html
index a1649f6..5526c5c 100644
--- a/examples/prism-gml.html
+++ b/examples/prism-gml.html
@@ -8,7 +8,7 @@ on multiple lines */</code></pre>
<h2>Full example</h2>
<pre><code>if(instance_exists(_inst) || _inst==global){
- if(_delay<=0){
+ if(_delay<=0){
_time+=1;
if(_time<_duration){
event_user(0);
diff --git a/examples/prism-go.html b/examples/prism-go.html
index 205a1a7..da2bc7f 100644
--- a/examples/prism-go.html
+++ b/examples/prism-go.html
@@ -41,7 +41,7 @@ string`
string"</code></pre>
<h2>Functions</h2>
-<pre><code>func(a, b int, z float64) bool { return a*b < int(z) }</code></pre>
+<pre><code>func(a, b int, z float64) bool { return a*b < int(z) }</code></pre>
<h2>Full example</h2>
<pre><code>package main
@@ -52,7 +52,7 @@ func sum(a []int, c chan int) {
for _, v := range a {
sum += v
}
- c <- sum // send sum to c
+ c <- sum // send sum to c
}
func main() {
@@ -61,8 +61,8 @@ func main() {
c := make(chan int)
go sum(a[:len(a)/2], c)
go sum(a[len(a)/2:], c)
- x, y := <-c, <-c // receive from c
+ x, y := <-c, <-c // receive from c
fmt.Println(x, y, x+y)
}
-</code></pre>
\ No newline at end of file
+</code></pre>
diff --git a/examples/prism-groovy.html b/examples/prism-groovy.html
index 3ec1d6d..ac36cf7 100644
--- a/examples/prism-groovy.html
+++ b/examples/prism-groovy.html
@@ -81,13 +81,3 @@ class Distribution implements Distributable {
assert 4 / 2 == 2
}
}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Two divisions on the same line</h3>
-<pre><code>2 / 3 / 4</code></pre>
\ No newline at end of file
diff --git a/examples/prism-haml.html b/examples/prism-haml.html
index c2cc670..364595a 100644
--- a/examples/prism-haml.html
+++ b/examples/prism-haml.html
@@ -21,7 +21,7 @@ but this is not
%html{html_attrs('fr-fr')}
%div[@user, :greeting]
%img
-%pre><
+%pre><
foo
bar
%img
@@ -76,4 +76,4 @@ On this page, check CoffeeScript <strong>before</strong> checking Haml should ma
the example below work properly.</p>
<pre><code>%script
:coffee
- console.log 'This is coffee script'</code></pre>
\ No newline at end of file
+ console.log 'This is coffee script'</code></pre>
diff --git a/examples/prism-handlebars.html b/examples/prism-handlebars.html
index c39c8b7..8e07329 100644
--- a/examples/prism-handlebars.html
+++ b/examples/prism-handlebars.html
@@ -29,13 +29,3 @@
This should probably work...
{{/block-with-hyphens}}
</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Handlebars tag in the middle of an HTML tag</h3>
-<pre><code><div{{#if test}} class="test"{{/if}}></div></code></pre>
diff --git a/examples/prism-haskell.html b/examples/prism-haskell.html
index de58eb7..799bbdf 100644
--- a/examples/prism-haskell.html
+++ b/examples/prism-haskell.html
@@ -28,7 +28,7 @@ comment -}</code></pre>
wantReadableHandle_ "Data.ByteString.hGetLine" h $
\ h_@Handle__{haByteBuffer} -> do
flushCharReadBuffer h_
- buf <- readIORef haByteBuffer
+ buf <- readIORef haByteBuffer
if isEmptyBuffer buf
then fill h_ buf 0 []
else haveBuf h_ buf 0 []
@@ -36,7 +36,7 @@ comment -}</code></pre>
fill h_@Handle__{haByteBuffer,haDevice} buf len xss =
len `seq` do
- (r,buf') <- Buffered.fillReadBuffer haDevice buf
+ (r,buf') <- Buffered.fillReadBuffer haDevice buf
if r == 0
then do writeIORef haByteBuffer buf{ bufR=0, bufL=0 }
if len > 0
@@ -48,9 +48,9 @@ comment -}</code></pre>
buf@Buffer{ bufRaw=raw, bufR=w, bufL=r }
len xss =
do
- off <- findEOL r w raw
+ off <- findEOL r w raw
let new_len = len + off - r
- xs <- mkPS raw r off
+ xs <- mkPS raw r off
-- if eol == True, then off is the offset of the '\n'
-- otherwise off == w and the buffer is now empty.
@@ -66,7 +66,7 @@ comment -}</code></pre>
findEOL r w raw
| r == w = return w
| otherwise = do
- c <- readWord8Buf raw r
+ c <- readWord8Buf raw r
if c == fromIntegral (ord '\n')
then return r -- NB. not r+1: don't include the '\n'
else findEOL (r+1) w raw
@@ -77,4 +77,4 @@ mkPS buf start end =
withRawBuffer buf $ \pbuf -> do
copyBytes p (pbuf `plusPtr` start) len
where
- len = end - start</code></pre>
\ No newline at end of file
+ len = end - start</code></pre>
diff --git a/examples/prism-inform7.html b/examples/prism-inform7.html
index 9e2214f..d4c3b74 100644
--- a/examples/prism-inform7.html
+++ b/examples/prism-inform7.html
@@ -159,13 +159,3 @@ The player wears a bathing outfit. The description of the bathing outfit is "Sty
Instead of taking off the outfit: say "What odd ideas come into your head sometimes!"
Test me with "fill glass / empty absinthe into lake / fill glass / swim / drink lake / drink / x water / x lake". </code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Names starting with a number</h3>
-<pre><code>The box 1A is a container</code></pre>
\ No newline at end of file
diff --git a/examples/prism-j.html b/examples/prism-j.html
index cf4c109..0227e31 100644
--- a/examples/prism-j.html
+++ b/examples/prism-j.html
@@ -34,7 +34,7 @@ NB. interchange two rows of a matrix,
NB. multiply a row by a constant,
NB. and add a multiple of one row to another:
-E1=: <@] C. [
+E1=: <@] C. [
E2=: f`g`[}
E3=: F`g`[}
f=: {:@] * {.@] { [
@@ -56,4 +56,4 @@ quicksort=: verb define
<pre><code>NB. Implementation of quicksort (tacit programming)
-quicksort=: (($:@(<#[), (=#[), $:@(>#[)) ({~ ?@#)) ^: (1<#)</code></pre>
\ No newline at end of file
+quicksort=: (($:@(<#[), (=#[), $:@(>#[)) ({~ ?@#)) ^: (1<#)</code></pre>
diff --git a/examples/prism-java.html b/examples/prism-java.html
index 691a6b1..277a1ab 100644
--- a/examples/prism-java.html
+++ b/examples/prism-java.html
@@ -39,8 +39,8 @@ public class Life {
public static boolean[][] gen(){
boolean[][] grid = new boolean[10][10];
- for(int r = 0; r < 10; r++)
- for(int c = 0; c < 10; c++)
+ for(int r = 0; r < 10; r++)
+ for(int c = 0; c < 10; c++)
if( Math.random() > 0.7 )
grid[r][c] = true;
return grid;
diff --git a/examples/prism-javascript.html b/examples/prism-javascript.html
index 35ccf7d..f073b65 100644
--- a/examples/prism-javascript.html
+++ b/examples/prism-javascript.html
@@ -64,17 +64,3 @@ import { foo as bar } from "file.js"
multiple lines.`
`40 + 2 = ${ 40 + 2 }`
`The squares of the first 3 natural integers are ${[for (x of [1,2,3]) x*x].join(', ')}`</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>String interpolation containing a closing brace</h3>
-<pre><code>`${ /* } */ a + b }`
-`${ '}' }`</code></pre>
-
-<h3>String interpolation with deeply nested braces</h3>
-<pre><code>`${foo({ a: { b: { c: true } } })}`</code></pre>
diff --git a/examples/prism-jolie.html b/examples/prism-jolie.html
index 8d23d99..9a35b00 100644
--- a/examples/prism-jolie.html
+++ b/examples/prism-jolie.html
@@ -60,7 +60,7 @@ interface extender AuthInterfaceExtender {
OneWay: *(AuthenticationData)
}
-service SubService
+service SubService
{
Interfaces: NetInterface
@@ -92,9 +92,9 @@ inputPort In {
.debug.showContent = true
}
Interfaces: NetInterface
- Aggregates: SubService,
+ Aggregates: SubService,
LoggerService
- Redirects: A => SubService,
+ Redirects: A => SubService,
B => SubService
}
@@ -105,11 +105,11 @@ cset {
execution{ concurrent }
define netmodule {
- if( request.load == 0 || request.load < 1 &&
- request.load <= 2 || request.load >= 3 &&
+ if( request.load == 0 || request.load < 1 &&
+ request.load <= 2 || request.load >= 3 &&
request.load > 4 || request.load%4 == 2
) {
- scope( scopeName ) {
+ scope( scopeName ) {
// inline comment
install( MyFault => println@Console( "Something \"Went\" Wrong" + ' but it\'s ok' )() );
/*
@@ -127,9 +127,9 @@ define netmodule {
with( node ){
while( .load != 100 ) {
.load++
- }
+ }
}
- }
+ }
}
}
@@ -159,4 +159,4 @@ main
}
until
[ quit() ]{ exit }
-}</code></pre>
\ No newline at end of file
+}</code></pre>
diff --git a/examples/prism-less.html b/examples/prism-less.html
index db8a5e6..56f0562 100644
--- a/examples/prism-less.html
+++ b/examples/prism-less.html
@@ -48,23 +48,3 @@ comment */</code></pre>
@{property}: #0ee;
background-@{property}: #999;
}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>At-rules looking like variables</h3>
-<pre><code>@import "some file.less";</code></pre>
-
-<h3>At-rules containing interpolation</h3>
-<pre><code>@import "@{themes}/tidal-wave.less";</code></pre>
-
-<h3>extend is not highlighted consistently</h3>
-<pre><code>nav ul {
- &:extend(.inline);
- background: blue;
-}
-.a:extend(.b) {}</code></pre>
\ No newline at end of file
diff --git a/examples/prism-lua.html b/examples/prism-lua.html
index 288b767..9c18b9d 100644
--- a/examples/prism-lua.html
+++ b/examples/prism-lua.html
@@ -77,13 +77,3 @@ function song(n)
io.write(line1(i), line2(i), line3(i - 1), "\n")
end
end</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Functions with a single string parameter not using parentheses are not highlighted</h3>
-<pre><code>foobar"param";</code></pre>
diff --git a/examples/prism-makefile.html b/examples/prism-makefile.html
index 45f6f42..fd74713 100644
--- a/examples/prism-makefile.html
+++ b/examples/prism-makefile.html
@@ -19,7 +19,7 @@ edit : $(objects)
$(objects) : defs.h
-%oo: $$< $$^ $$+ $$*
+%oo: $$< $$^ $$+ $$*
foo : bar/lose
cd $(@D) && gobble $(@F) > ../$@</code></pre>
@@ -260,4 +260,4 @@ tar.zoo: $(SRCS) $(AUX)
> tmp.dir/$$X ; done
cd tmp.dir ; zoo aM ../tar.zoo *
-rm -rf tmp.dir
-</code></pre>
\ No newline at end of file
+</code></pre>
diff --git a/examples/prism-markdown.html b/examples/prism-markdown.html
index a57eaea..ea44fea 100644
--- a/examples/prism-markdown.html
+++ b/examples/prism-markdown.html
@@ -67,20 +67,3 @@ is not allowed__
> Containing <strong>raw HTML</strong>
<p>*Italic text inside HTML tag*</p></code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nesting of elements is not fully supported</h3>
-<pre><code>_ **bold** inside italic DOESN'T work _
-__ but *italic* inside bold DOES work __
-
-[Link partially *italic* DOESN'T work](http://example.com)
-_ [But link inside italic DOES work](http://example.com) _
-
-[Link partially **bold** DOESN'T work](http://example.com)
-__ [But link inside bold DOES work](http://example.com) __</code></pre>
\ No newline at end of file
diff --git a/examples/prism-matlab.html b/examples/prism-matlab.html
index e78abe3..790d71c 100644
--- a/examples/prism-matlab.html
+++ b/examples/prism-matlab.html
@@ -40,7 +40,7 @@ switch dayString
end
n = 1;
nFactorial = 1;
-while nFactorial < 1e100
+while nFactorial < 1e100
n = n + 1;
nFactorial = nFactorial * n;
end</code></pre>
@@ -49,4 +49,4 @@ end</code></pre>
<pre><code>q = integral(sqr,0,1);
y = parabola(x)
mygrid = @(x,y) ndgrid((-x:x/c:x),(-y:y/c:y));
-[x,y] = mygrid(pi,2*pi);</code></pre>
\ No newline at end of file
+[x,y] = mygrid(pi,2*pi);</code></pre>
diff --git a/examples/prism-mel.html b/examples/prism-mel.html
index e887975..eaf3ba5 100644
--- a/examples/prism-mel.html
+++ b/examples/prism-mel.html
@@ -28,14 +28,14 @@ print($array[0]); // Prints "first\n"
print($array[1]); // Prints "second\n"
print($array[2]); // Prints "third\n"
-vector $roger = <<3.0, 7.7, 9.1>>;
-vector $more = <<4.5, 6.789, 9.12356>>;
+vector $roger = <<3.0, 7.7, 9.1>>;
+vector $more = <<4.5, 6.789, 9.12356>>;
// Assign a vector to variable $test:
-vector $test = <<3.0, 7.7, 9.1>>;
-$test = <<$test.x, 5.5, $test.z>>
-// $test is now <<3.0, 5.5, 9.1>>
+vector $test = <<3.0, 7.7, 9.1>>;
+$test = <<$test.x, 5.5, $test.z>>
+// $test is now <<3.0, 5.5, 9.1>>
-matrix $a3[3][4] = <<2.5, 4.5, 3.25, 8.05;
+matrix $a3[3][4] = <<2.5, 4.5, 3.25, 8.05;
1.12, 1.3, 9.5, 5.2;
7.23, 6.006, 2.34, 4.67>></code></pre>
@@ -82,7 +82,7 @@ global proc float dynTimePlayback( float $frames )
// Check for negative $frames. This indicates
// $silent mode.
//
- if ($frames < 0)
+ if ($frames < 0)
{
$silent = 1;
$frames = -$frames;
@@ -102,7 +102,7 @@ global proc float dynTimePlayback( float $frames )
$startTime = `timerX`;
// play -wait;
int $i;
- for ($i = 1; $i < $frames; $i++ )
+ for ($i = 1; $i < $frames; $i++ )
{
// Set time
//
@@ -110,7 +110,7 @@ global proc float dynTimePlayback( float $frames )
int $obj;
// Request count for every particle object.
//
- for ($obj = 0; $obj < $particleCount; $obj++)
+ for ($obj = 0; $obj < $particleCount; $obj++)
{
string $cmd = "getAttr " + $particleObjects[$obj]+".count";
eval( $cmd );
@@ -118,7 +118,7 @@ global proc float dynTimePlayback( float $frames )
// Request position for every transform
// (includes every rigid body).
//
- for ($obj = 0; $obj < $trCount; $obj++)
+ for ($obj = 0; $obj < $trCount; $obj++)
{
string $cmd = "getAttr " + $transforms[$obj]+".translate";
eval ($cmd);
@@ -134,4 +134,4 @@ global proc float dynTimePlayback( float $frames )
print( "Playback $rate: " + $rate + " $frames/sec\n" );
}
return ( $rate );
-} // timePlayback //</code></pre>
\ No newline at end of file
+} // timePlayback //</code></pre>
diff --git a/examples/prism-mizar.html b/examples/prism-mizar.html
index 98d626c..044c5c3 100644
--- a/examples/prism-mizar.html
+++ b/examples/prism-mizar.html
@@ -11,14 +11,14 @@ schemes NAT_1;
begin
P: for k being Nat
- st for n being Nat st n < k holds Fib (n+1) ≥ n
+ st for n being Nat st n < k holds Fib (n+1) ≥ n
holds Fib (k+1) ≥ k
proof let k be Nat; assume
-IH: for n being Nat st n < k holds Fib (n+1) ≥ n;
+IH: for n being Nat st n < k holds Fib (n+1) ≥ n;
per cases;
suppose k ≤ 1; then k = 0 or k = 0+1 by CQC_THE1:2;
hence Fib (k+1) ≥ k by PRE_FF:1;
- suppose 1 < k; then
+ suppose 1 < k; then
1+1 ≤ k by NAT_1:38; then
consider m being Nat such that
A: k = 1+1+m by NAT_1:28;
@@ -33,8 +33,8 @@ IH: for n being Nat st n < k holds Fib (n+1) ≥ n;
m ≥ 1 by NAT_1:38; then
B: m+(m+1) ≥ m+1+1 by REAL_1:49;
C: k = m+1+1 by A, AXIOMS:13;
- m < m+1 & m+1 < m+1+1 by REAL_1:69; then
- m < k & m+1 < k by C, AXIOMS:22; then
+ m < m+1 & m+1 < m+1+1 by REAL_1:69; then
+ m < k & m+1 < k by C, AXIOMS:22; then
D: Fib (m+1) ≥ m & Fib (m+1+1) ≥ m+1 by IH;
Fib (m+1+1+1) = Fib (m+1) + Fib (m+1+1) by PRE_FF:1; then
Fib (m+1+1+1) ≥ m+(m+1) by D, REAL_1:55;
@@ -42,4 +42,4 @@ IH: for n being Nat st n < k holds Fib (n+1) ≥ n;
end;
end;
-for n being Nat holds Fib(n+1) ≥ n from Comp_Ind(P);</code></pre>
\ No newline at end of file
+for n being Nat holds Fib(n+1) ≥ n from Comp_Ind(P);</code></pre>
diff --git a/examples/prism-nasm.html b/examples/prism-nasm.html
index c1b7c92..e76146d 100644
--- a/examples/prism-nasm.html
+++ b/examples/prism-nasm.html
@@ -57,18 +57,3 @@ dq 1.e-10 ; 0.000 000 000 1
dt 3.141592653589793238462 ; pi
do 1.e+4000 ; IEEE 754r quad precision
</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Numbers with underscores</h3>
-<pre><code>mov ax,1100_1000b
-mov ax,1100_1000y
-mov ax,0b1100_1000
-mov ax,0y1100_1000
-
-dd 1.222_222_222</code></pre>
\ No newline at end of file
diff --git a/examples/prism-nim.html b/examples/prism-nim.html
index c661125..80296fb 100644
--- a/examples/prism-nim.html
+++ b/examples/prism-nim.html
@@ -176,7 +176,7 @@ macro class*(head: expr, body: stmt): stmt {.immediate.} =
# Empty
# OfInherit
# Ident !"RootObj"
- # Empty <= We want to replace this
+ # Empty <= We want to replace this
# MethodDef
# ...
@@ -219,4 +219,4 @@ animals.add(Cat(name: "Mitten", age: 10))
for a in animals:
echo a.vocalize()
- echo a.age_human_yrs()</code></pre>
\ No newline at end of file
+ echo a.age_human_yrs()</code></pre>
diff --git a/examples/prism-ocaml.html b/examples/prism-ocaml.html
index 0534b1d..46ee6dc 100644
--- a/examples/prism-ocaml.html
+++ b/examples/prism-ocaml.html
@@ -44,16 +44,16 @@ comment *)</code></pre>
match t with
| Empty -> false
| Interval (l,h) ->
- Endpoint.compare x l >= 0 && Endpoint.compare x h <= 0
+ Endpoint.compare x l >= 0 && Endpoint.compare x h <= 0
(** [intersect t1 t2] returns the intersection of the two input
intervals *)
let intersect t1 t2 =
- let min x y = if Endpoint.compare x y <= 0 then x else y in
+ let min x y = if Endpoint.compare x y <= 0 then x else y in
let max x y = if Endpoint.compare x y >= 0 then x else y in
match t1,t2 with
| Empty, _ | _, Empty -> Empty
| Interval (l1,h1), Interval (l2,h2) ->
create (max l1 l2) (min h1 h2)
- end ;;</code></pre>
\ No newline at end of file
+ end ;;</code></pre>
diff --git a/examples/prism-opencl.html b/examples/prism-opencl.html
index f901230..8431fb9 100644
--- a/examples/prism-opencl.html
+++ b/examples/prism-opencl.html
@@ -52,11 +52,11 @@ type_single filter_sum_single_3x3(read_only image2d_t imgIn,
// Image patch is row-wise accessed
// Filter kernel is centred in the middle
#pragma unroll
- for (int y = -ROWS_HALF_3x3; y <= ROWS_HALF_3x3; ++y) // Start at the top left corner of the filter
+ for (int y = -ROWS_HALF_3x3; y <= ROWS_HALF_3x3; ++y) // Start at the top left corner of the filter
{
coordCurrent.y = coordBase.y + y;
#pragma unroll
- for (int x = -COLS_HALF_3x3; x <= COLS_HALF_3x3; ++x) // And end at the bottom right corner
+ for (int x = -COLS_HALF_3x3; x <= COLS_HALF_3x3; ++x) // And end at the bottom right corner
{
coordCurrent.x = coordBase.x + x;
coordBorder = borderCoordinate(coordCurrent, rows, cols, border);
diff --git a/examples/prism-parser.html b/examples/prism-parser.html
index 4b4e9c0..c2fc79e 100644
--- a/examples/prism-parser.html
+++ b/examples/prism-parser.html
@@ -67,22 +67,4 @@ $result[$t.$sName]
# new functionality
@remove[iOffset;iLimit]
$iLimit(^iLimit.int(0))
-$t[^t.select(^t.offset[]<$iOffset || ^t.offset[]>=$iOffset+$iLimit)]</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Code block starting with a comment</h3>
-<pre><code># Doesn't work
-# Does work</code></pre>
-<pre><code> # Does work when prefixed with a space</code></pre>
-
-<h3>Comments inside expressions break literals and operators</h3>
-<pre><code>^if(
- $age>=4 # not too young
- && $age<=80 # and not too old
-)</code></pre>
\ No newline at end of file
+$t[^t.select(^t.offset[]<$iOffset || ^t.offset[]>=$iOffset+$iLimit)]</code></pre>
diff --git a/examples/prism-perl.html b/examples/prism-perl.html
index 85c3681..80a0874 100644
--- a/examples/prism-perl.html
+++ b/examples/prism-perl.html
@@ -54,10 +54,10 @@ $1, $_, %!;</code></pre>
$conf{user} = delete $conf{username} unless $conf{user};
}
else { # Process .pause manually
- open my $pauserc, '<', $filename
+ open my $pauserc, '<', $filename
or die "can't open $filename for reading: $!";
- while (<$pauserc>) {
+ while (<$pauserc>) {
chomp;
next unless $_ and $_ !~ /^\s*#/;
@@ -68,4 +68,4 @@ $1, $_, %!;</code></pre>
}
return \%conf;
-}</code></pre>
\ No newline at end of file
+}</code></pre>
diff --git a/examples/prism-php.html b/examples/prism-php.html
index 1a25589..23d4bae 100644
--- a/examples/prism-php.html
+++ b/examples/prism-php.html
@@ -41,7 +41,7 @@ trait ezcReflectionReturnInfo {
function getReturnDescription() { /*2*/ }
}
function gen_one_to_three() {
- for ($i = 1; $i <= 3; $i++) {
+ for ($i = 1; $i <= 3; $i++) {
// Note that $i is preserved between yields.
yield $i;
}
@@ -64,4 +64,4 @@ $a = <<<FOO
FOO;
$b = <<<"FOOBAR"
Interpolation inside Heredoc strings {$obj->values[3]->name}
-FOOBAR;</code></pre>
\ No newline at end of file
+FOOBAR;</code></pre>
diff --git a/examples/prism-powershell.html b/examples/prism-powershell.html
index e5dba2e..7028084 100644
--- a/examples/prism-powershell.html
+++ b/examples/prism-powershell.html
@@ -1,6 +1,6 @@
<h2>Comments</h2>
<pre><code># This is a comment
-<# This is a
+<# This is a
multi-line comment #></code></pre>
<h2>Variable Interpolation</h2>
@@ -16,4 +16,4 @@ $Names = @("Bob", "Alice")
$Names | ForEach {
SayHello $_
}
-</code></pre>
\ No newline at end of file
+</code></pre>
diff --git a/examples/prism-prolog.html b/examples/prism-prolog.html
index b231bca..a0df67e 100644
--- a/examples/prism-prolog.html
+++ b/examples/prism-prolog.html
@@ -21,24 +21,3 @@ fibo(N, F) :-
N >= 2, N1 is N - 1, N2 is N - 2,
fibo(N1, F1), fibo(N2, F2), F is F1 + F2,
assert(fibo(N,F):-!). % assert as first clause</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Null-ary predicates are not highlighted</h3>
-<pre><code>halt.
-trace.
-
-:- if(test1).
-section_1.
-:- elif(test2).
-section_2.
-:- elif(test3).
-section_3.
-:- else.
-section_else.
-:- endif.</code></pre>
diff --git a/examples/prism-pug.html b/examples/prism-pug.html
index d37de5c..ee46c8b 100644
--- a/examples/prism-pug.html
+++ b/examples/prism-pug.html
@@ -52,7 +52,7 @@ script(type="text/javascript").
alert('foo');
alert('bar');
- var classes = ['foo', 'bar', 'baz']
-- for (var x = 0; x < 3; x++)
+- for (var x = 0; x < 3; x++)
li item
</code></pre>
diff --git a/examples/prism-puppet.html b/examples/prism-puppet.html
index 4892ab8..ff73e81 100644
--- a/examples/prism-puppet.html
+++ b/examples/prism-puppet.html
@@ -30,7 +30,7 @@ $foo::bar::baz</code></pre>
<h2>Functions</h2>
<pre><code>require apache
template('apache/vhost-default.conf.erb')
-[1,20,3].filter |$value| { $value < 10 }</code></pre>
+[1,20,3].filter |$value| { $value < 10 }</code></pre>
<h2>All-in-one example</h2>
<pre><code>file {'ntp.conf':
@@ -114,10 +114,10 @@ $rootgroup = $osfamily ? {
default => 'root',
}
-User <| groups == 'admin' |>
-Concat::Fragment <<| tag == "bacula-storage-dir-${bacula_director}" |>>
+User <| groups == 'admin' |>
+Concat::Fragment <<| tag == "bacula-storage-dir-${bacula_director}" |>>
-Exec <| title == 'update_migrations' |> {
+Exec <| title == 'update_migrations' |> {
environment => 'RUBYLIB=/usr/lib/ruby/site_ruby/1.8/',
}
@@ -137,16 +137,3 @@ Exec <| title == 'update_migrations' |> {
target => '/etc/nagios3/conf.d/nagios_service.cfg',
notify => Service[$nagios::params::nagios_service],
}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>More than one level of nested braces inside interpolation</h3>
-<pre><code>"Foobar ${foo({
- bar => {baz => 42}
- baz => 42
-})} <- broken"</code></pre>
\ No newline at end of file
diff --git a/examples/prism-pure.html b/examples/prism-pure.html
index d7a0129..9bcac74 100644
--- a/examples/prism-pure.html
+++ b/examples/prism-pure.html
@@ -24,7 +24,7 @@ nan</code></pre>
<p>Inline code requires the desired language to be loaded.
On this page, check C, C++ and Fortran <strong>before</strong> checking Pure should make
the examples below work properly.</p>
-<pre><code>%<
+<pre><code>%<
int mygcd(int x, int y)
{
if (y == 0)
@@ -34,7 +34,7 @@ int mygcd(int x, int y)
}
%>
-%< -*- Fortran90 -*-
+%< -*- Fortran90 -*-
function fact(n) result(p)
integer n, p
p = 1
@@ -44,7 +44,7 @@ function fact(n) result(p)
end function fact
%>
-%< -*- C++ -*-
+%< -*- C++ -*-
#include <pure/runtime.h>
#include <string>
@@ -112,4 +112,4 @@ extern "C" void map_destroy(exprmap *m)
safe (i,j) p = ~any (check (i,j)) p;
check (i1,j1) (i2,j2)
= i1==i2 || j1==j2 || i1+j1==i2+j2 || i1-j1==i2-j2;
-end;</code></pre>
\ No newline at end of file
+end;</code></pre>
diff --git a/examples/prism-python.html b/examples/prism-python.html
index ce6efc0..3a63e8b 100644
--- a/examples/prism-python.html
+++ b/examples/prism-python.html
@@ -49,13 +49,3 @@ are supported.'''</code></pre>
if __name__ == '__main__':
import doctest
doctest.testmod()</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Interpolation expressions containing strings with <code>{</code> or <code>}</code></h3>
-<pre><code>f"{'}'}"</code></pre>
diff --git a/examples/prism-q.html b/examples/prism-q.html
index 58d674f..9d7d5c6 100644
--- a/examples/prism-q.html
+++ b/examples/prism-q.html
@@ -100,13 +100,3 @@ adjust:{[t;caTypes]
getCAs exec distinct caType from ca
adjust[t;`dividend] / adjust trades for dividends only</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>The global context is highlighted as a verb</h3>
-<pre><code>\d .</code></pre>
\ No newline at end of file
diff --git a/examples/prism-rest.html b/examples/prism-rest.html
index 511e87c..a7288a3 100644
--- a/examples/prism-rest.html
+++ b/examples/prism-rest.html
@@ -308,22 +308,3 @@ floating-point numbers (without exponents).
See the `Python home page <http://www.python.org>`_ for info.
Oh yes, the _`Norwegian Blue`. What's, um, what's wrong with it?</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nothing is highlighted inside table cells</h3>
-<pre><code>+---------------+----------+
-| column 1 | column 2 |
-+--------------+-----------+
-| **bold**? | *italic*? |
-+--------------+-----------+</code></pre>
-
-<h3>The inline markup recognition rules are not as strict as they are in the spec</h3>
-<p>No inline markup should be highlighted in the following code.</p>
-<pre><code>2 * x a ** b (* BOM32_* ` `` _ __ |
-"*" '|' (*) [*] {*} <*> ‘*’ ‚*‘ ‘*‚ ’*’ ‚*’ “*” „*“ “*„ ”*” „*” »*« ›*‹ «*» »*» ›*›</code></pre>
\ No newline at end of file
diff --git a/examples/prism-rust.html b/examples/prism-rust.html
index d447968..3f56a91 100644
--- a/examples/prism-rust.html
+++ b/examples/prism-rust.html
@@ -50,19 +50,3 @@ let y = c || d;
let add_one = |x: int| -> int { 1i + x };
let printer = || { println!("x is: {}", x); };
</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nested block comments</h3>
-<pre><code>/* Nested block
- /* comments
- are */
-not supported */</code></pre>
-
-<h3>Delimiters of parameters for closures that don't use braces</h3>
-<pre><code>|x| x + 1i;</code></pre>
\ No newline at end of file
diff --git a/examples/prism-sas.html b/examples/prism-sas.html
index 8932ebb..546404b 100644
--- a/examples/prism-sas.html
+++ b/examples/prism-sas.html
@@ -23,7 +23,7 @@ multi-line comment */
<pre><code>A**B;
'foo'||'bar'!!'baz'¦¦'test';
A<>B><C;
-A~=B¬=C^=D>=E<=F;
+A~=B¬=C^=D>=E<=F;
a*b/c+d-e<f>g&h|i!j¦k;
~a;¬b;^c;
(a eq b) ne (c gt d) lt e ge f le h;
@@ -155,4 +155,4 @@ UYN7 rod 211 09sep2010 11.55
JD03 switch 383 09jan2013 13.99
BV1E timer 26 03aug2013 34.50
;
-run;</code></pre>
\ No newline at end of file
+run;</code></pre>
diff --git a/examples/prism-sass.html b/examples/prism-sass.html
index 7200e78..a2f0673 100644
--- a/examples/prism-sass.html
+++ b/examples/prism-sass.html
@@ -26,22 +26,3 @@ h1
#main
width: $width
</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Deprecated Sass syntax is not supported</h3>
-<pre><code>.page
- color = 5px + 9px
-
-!width = 13px
-.icon
- width = !width</code></pre>
-
-<h3>Selectors with pseudo classes are highlighted as property/value pairs</h3>
-<pre><code>a:hover
- text-decoration: underline</code></pre>
\ No newline at end of file
diff --git a/examples/prism-scala.html b/examples/prism-scala.html
index 1dc56f8..b9ed1f1 100644
--- a/examples/prism-scala.html
+++ b/examples/prism-scala.html
@@ -85,16 +85,3 @@ object lazyEvaluation {
println("sl2 = " + sl2)
}
}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nested block comments</h3>
-<pre><code>/* Nested block
- /* comments
- are */
-not supported */</code></pre>
\ No newline at end of file
diff --git a/examples/prism-smarty.html b/examples/prism-smarty.html
index 5e57922..650e6fc 100644
--- a/examples/prism-smarty.html
+++ b/examples/prism-smarty.html
@@ -69,13 +69,3 @@ comment *}</code></pre>
}
{/literal}
</style></code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Smarty tag in the middle of an HTML tag</h3>
-<pre><code><div{if $test} class="test"{/if}></div></code></pre>
\ No newline at end of file
diff --git a/examples/prism-swift.html b/examples/prism-swift.html
index 98d6eb5..e49a0d4 100644
--- a/examples/prism-swift.html
+++ b/examples/prism-swift.html
@@ -29,12 +29,12 @@ let multiplier = 3
for _ in 1...power {
answer *= base
}
-while square < finalSquare {
+while square < finalSquare {
// roll the dice
if ++diceRoll == 7 { diceRoll = 1 }
// move by the rolled amount
square += diceRoll
- if square < board.count {
+ if square < board.count {
// if we're still on the board, move up or down for a snake or a ladder
square += board[square]
}
@@ -52,29 +52,16 @@ switch someCharacter {
<h2>Classes and attributes</h2>
<pre><code>class MyViewController: UIViewController {
- @IBOutlet weak var button: UIButton!
- @IBOutlet var textFields: [UITextField]!
- @IBAction func buttonTapped(AnyObject) {
- println("button tapped!")
+ @IBOutlet weak var button: UIButton!
+ @IBOutlet var textFields: [UITextField]!
+ @IBAction func buttonTapped(AnyObject) {
+ println("button tapped!")
}
}
@IBDesignable
class MyCustomView: UIView {
- @IBInspectable var textColor: UIColor
- @IBInspectable var iconHeight: CGFloat
- /* ... */
+ @IBInspectable var textColor: UIColor
+ @IBInspectable var iconHeight: CGFloat
+ /* ... */
}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nested block comments</h3>
-<pre><code>/* Nested block
- /* comments
- are */
-not supported */</code></pre>
\ No newline at end of file
diff --git a/examples/prism-textile.html b/examples/prism-textile.html
index 4ff4d12..f195e96 100644
--- a/examples/prism-textile.html
+++ b/examples/prism-textile.html
@@ -156,23 +156,3 @@ table{border:1px solid black}.
|This|is|a|row|
{background:#ddd}. |This|is|grey|row|</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nested styles are only partially supported</h3>
-
-<p>Only one level of nesting is supported.</p>
-
-<pre><code>*A bold paragraph %containing a span with broken _italic_ inside%!*</code></pre>
-
-<h3>HTML inside Textile is not supported</h3>
-
-<p>But Textile inside HTML should be just fine.</p>
-
-<pre><code><strong>This _should_ work properly.</strong>
-*But this is <em>definitely</em> broken.*</code></pre>
\ No newline at end of file
diff --git a/examples/prism-twig.html b/examples/prism-twig.html
index 0a70781..167ffad 100644
--- a/examples/prism-twig.html
+++ b/examples/prism-twig.html
@@ -23,13 +23,3 @@ inside #}</code></pre>
{% else %}
<p>Not foo...</p>
{% endif %}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Tag containing Twig is not highlighted</h3>
-<pre><code><div{% if foo %} class="bar"{% endif %}></div></code></pre>
\ No newline at end of file
diff --git a/examples/prism-vbnet.html b/examples/prism-vbnet.html
index bc2a376..b5e3081 100644
--- a/examples/prism-vbnet.html
+++ b/examples/prism-vbnet.html
@@ -7,10 +7,10 @@ REM foobar
<pre><code>Public Function findValue(ByVal arr() As Double,
ByVal searchValue As Double) As Double
Dim i As Integer = 0
- While i <= UBound(arr) AndAlso arr(i) <> searchValue
+ While i <= UBound(arr) AndAlso arr(i) <> searchValue
' If i is greater than UBound(arr), searchValue is not checked.
i += 1
End While
If i > UBound(arr) Then i = -1
Return i
-End Function</code></pre>
\ No newline at end of file
+End Function</code></pre>
diff --git a/examples/prism-vhdl.html b/examples/prism-vhdl.html
index b495085..0d3b56f 100644
--- a/examples/prism-vhdl.html
+++ b/examples/prism-vhdl.html
@@ -5,8 +5,8 @@ I am not</code></pre>
<h2>Literals</h2>
<pre><code>constant FREEZE : integer := 32;
constant TEMP : real := 32.0;
-A_INT <= 16#FF#;
-B_INT <= 2#1010_1010#;
+A_INT <= 16#FF#;
+B_INT <= 2#1010_1010#;
MONEY := 1_000_000.0;
FACTOR := 2.2E-6;
constant DEL1 :time := 10 ns;
@@ -17,9 +17,9 @@ signal CLK : MY_LOGIC := '0';
signal STATE : T_STATE := IDLE;
constant FLAG :bit_vector(0 to 7) := "11111111";
constant MSG : string := "Hello";
-BIT_8_BUS <= B"1111_1111";
-BIT_9_BUS <= O"353";
-BIT_16_BUS <= X"AA55";
+BIT_8_BUS <= B"1111_1111";
+BIT_9_BUS <= O"353";
+BIT_16_BUS <= X"AA55";
constant TWO_LINE_MSG : string := "Hello" & CR & "World";</code></pre>
<h2>Full example</h2>
@@ -37,8 +37,8 @@ end entity fadd;
architecture circuits of fadd is -- full adder stage, body
begin -- circuits of fadd
- s <= a xor b xor cin after 1 ns;
- cout <= (a and b) or (a and cin) or (b and cin) after 1 ns;
+ s <= a xor b xor cin after 1 ns;
+ cout <= (a and b) or (a and cin) or (b and cin) after 1 ns;
end architecture circuits; -- of fadd
library IEEE;
diff --git a/examples/prism-wiki.html b/examples/prism-wiki.html
index 295eb3f..99dbd0c 100644
--- a/examples/prism-wiki.html
+++ b/examples/prism-wiki.html
@@ -143,23 +143,3 @@ dolor sit amet.
|
|15.00
|}</code></pre>
-
-<h2>Known failures</h2>
-<p>There are certain edge cases where Prism will fail.
- There are always such cases in every regex-based syntax highlighter.
- However, Prism dares to be open and honest about them.
- If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
-</p>
-
-<h3>Nested magic words are not supported</h3>
-
-<pre><code>{{#switch:{{PAGENAME}}
-| L'Aquila = No translation
-| L = Not OK
-| L'Aquila = Entity escaping
-| L'Aquila = Numeric char encoding
-}}</code></pre>
-
-<h3>Nesting of bold and italic is not supported</h3>
-<pre><code>''Italic with '''bold''' inside''</code></pre>
-
diff --git a/examples/prism-xojo.html b/examples/prism-xojo.html
index 3548074..5dd8fc8 100644
--- a/examples/prism-xojo.html
+++ b/examples/prism-xojo.html
@@ -21,8 +21,8 @@ Rem This is a remark</code></pre>
<pre><code>Dim g As Graphics
Dim yOffSet As Integer
g = OpenPrinterDialog()
-If g <> Nil Then
- If MainDishMenu.ListIndex <> -1 Then
+If g <> Nil Then
+ If MainDishMenu.ListIndex <> -1 Then
g.Bold = True
g.DrawString("Main Dish:",20,20)
g.Bold = False
diff --git a/examples/prism-yaml.html b/examples/prism-yaml.html
index bea52f8..58b78f6 100644
--- a/examples/prism-yaml.html
+++ b/examples/prism-yaml.html
@@ -89,7 +89,7 @@ bill-to: &id001
state : MI
postal : 48046
ship-to:
- <<: *id001
+ <<: *id001
product:
- sku : BL394D
quantity : 4
diff --git a/index.html b/index.html
index fef21c9..0bb0d68 100644
--- a/index.html
+++ b/index.html
@@ -115,7 +115,7 @@
<h1>Limitations</h1>
<ul>
<li>Any pre-existing HTML in the code will be stripped off. <a href="faq.html#if-pre-existing-html-is-stripped-off-how-can-i-highlight">There are ways around it though</a>.</li>
- <li>Regex-based so it *will* fail on certain edge cases, which are documented in the <a href="examples.html">Examples section</a>.</li>
+ <li>Regex-based so it *will* fail on certain edge cases, which are documented in the <a href="known-failures.html">known failues page</a>.</li>
<li>No IE 6-8 support. If someone can read code, they are probably in the 85% of the population with a modern browser.</li>
</ul>
</section>
diff --git a/known-failures.html b/known-failures.html
new file mode 100644
index 0000000..ebd401e
--- /dev/null
+++ b/known-failures.html
@@ -0,0 +1,384 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+
+<meta charset="utf-8" />
+<link rel="icon" href="favicon.png" />
+<title>Known failures ▲ Prism</title>
+<link rel="stylesheet" href="style.css" />
+<link rel="stylesheet" href="themes/prism.css" data-noprefix />
+<style>
+#toc {
+ display: block;
+ position: static;
+ max-width: 900px;
+ font-size: 100%;
+ color: black;
+}
+#toc > ol {
+ columns: 4;
+}
+</style>
+<script src="scripts/prefixfree.min.js"></script>
+
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="https://www.google-analytics.com/ga.js" async></script>
+</head>
+<body>
+
+<header>
+ <div class="intro" data-src="templates/header-main.html" data-type="text/html"></div>
+
+ <h2>Known failures</h2>
+ <p>A list of rare edge cases where Prism highlights code incorrectly.</p>
+</header>
+
+<section>
+ <p>There are certain edge cases where Prism will fail. There are always such cases in every regex-based syntax highlighter. <br>
+ However, Prism dares to be open and honest about them. If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.</p>
+</section>
+
+
+<section class="language-applescript">
+
+<h3>Comments only support one level of nesting</h3>
+<pre><code>(* Nested block
+ (* comments
+ (* on more than
+ 2 levels *)
+ are *)
+not supported *)</code></pre>
+
+</section>
+
+
+<section class="language-autoit">
+
+<h3>Nested block comments</h3>
+<pre><code>#cs
+ #cs
+ foo()
+ #ce
+#ce</code></pre>
+
+</section>
+
+
+<section class="language-bison">
+
+<h3>Two levels of nesting inside C section</h3>
+<pre><code>{
+ if($1) {
+ if($2) {
+
+ }
+ }
+} // <- Broken
+%%
+%%</code></pre>
+
+</section>
+
+
+<section class="language-d">
+
+<h3>Comments only support one level of nesting</h3>
+<pre><code>/+ /+ /+ this does not work +/ +/ +/</code></pre>
+
+<h3>Token strings only support one level of nesting</h3>
+<pre><code>q{ q{ q{ this does not work } } }</code></pre>
+
+</section>
+
+
+<section class="language-elixir">
+
+<h3>String interpolation in single-quoted strings</h3>
+<pre><code>'#{:atom} <- this should not be highligted'</code></pre>
+
+</section>
+
+
+<section class="language-groovy">
+
+<h3>Two divisions on the same line</h3>
+<pre><code>2 / 3 / 4</code></pre>
+
+</section>
+
+
+<section class="language-inform7">
+
+<h3>Names starting with a number</h3>
+<pre><code>The box 1A is a container</code></pre>
+
+</section>
+
+
+<section class="language-javascript">
+
+<h3>String interpolation containing a closing brace</h3>
+<pre><code>`${ /* } */ a + b }`
+`${ '}' }`</code></pre>
+
+<h3>String interpolation with deeply nested braces</h3>
+<pre><code>`${foo({ a: { b: { c: true } } })}`</code></pre>
+
+</section>
+
+
+<section class="language-less">
+
+<h3>At-rules looking like variables</h3>
+<pre><code>@import "some file.less";</code></pre>
+
+<h3>At-rules containing interpolation</h3>
+<pre><code>@import "@{themes}/tidal-wave.less";</code></pre>
+
+<h3>extend is not highlighted consistently</h3>
+<pre><code>nav ul {
+ &:extend(.inline);
+ background: blue;
+}
+.a:extend(.b) {}</code></pre>
+
+</section>
+
+
+<section class="language-lua">
+
+<h3>Functions with a single string parameter not using parentheses are not highlighted</h3>
+<pre><code>foobar"param";</code></pre>
+
+</section>
+
+
+<section class="language-markdown">
+
+<h3>Nesting of elements is not fully supported</h3>
+<pre><code>[Link partially *italic* DOESN'T work](http://example.com)
+_ [But link inside italic DOES work](http://example.com) _
+
+[Link partially **bold** DOESN'T work](http://example.com)
+__ [But link inside bold DOES work](http://example.com) __</code></pre>
+
+</section>
+
+
+<section class="language-nasm">
+
+<h3>Numbers with underscores</h3>
+<pre><code>mov ax,1100_1000b
+mov ax,1100_1000y
+mov ax,0b1100_1000
+mov ax,0y1100_1000
+
+dd 1.222_222_222</code></pre>
+
+</section>
+
+
+<section class="language-parser">
+
+<h3>Code block starting with a comment</h3>
+<pre><code># Doesn't work
+# Does work</code></pre>
+<pre><code> # Does work when prefixed with a space</code></pre>
+
+<h3>Comments inside expressions break literals and operators</h3>
+<pre><code>^if(
+ $age>=4 # not too young
+ && $age<=80 # and not too old
+)</code></pre>
+
+</section>
+
+
+<section class="language-prolog">
+
+<h3>Null-ary predicates are not highlighted</h3>
+<pre><code>halt.
+trace.
+
+:- if(test1).
+section_1.
+:- elif(test2).
+section_2.
+:- elif(test3).
+section_3.
+:- else.
+section_else.
+:- endif.</code></pre>
+
+</section>
+
+
+<section class="language-puppet">
+
+<h3>More than one level of nested braces inside interpolation</h3>
+<pre><code>"Foobar ${foo({
+ bar => {baz => 42}
+ baz => 42
+})} <- broken"</code></pre>
+
+</section>
+
+
+<section class="language-python">
+
+<h3>Interpolation expressions containing strings with <code>{</code> or <code>}</code></h3>
+<pre><code>f"{'}'}"</code></pre>
+
+</section>
+
+
+<section class="language-q">
+
+<h3>The global context is highlighted as a verb</h3>
+<pre><code>\d .</code></pre>
+
+</section>
+
+
+<section class="language-rest">
+
+<h3>Nothing is highlighted inside table cells</h3>
+<pre><code>+---------------+----------+
+| column 1 | column 2 |
++--------------+-----------+
+| **bold**? | *italic*? |
++--------------+-----------+</code></pre>
+
+<h3>The inline markup recognition rules are not as strict as they are in the spec</h3>
+<p>No inline markup should be highlighted in the following code.</p>
+<pre><code>2 * x a ** b (* BOM32_* ` `` _ __ |
+"*" '|' (*) [*] {*} <*> ‘*’ ‚*‘ ‘*‚ ’*’ ‚*’ “*” „*“ “*„ ”*” „*” »*« ›*‹ «*» »*» ›*›</code></pre>
+
+</section>
+
+
+<section class="language-rust">
+
+<h3>Nested block comments</h3>
+<pre><code>/* Nested block
+ /* comments
+ are */
+not supported */</code></pre>
+
+<h3>Delimiters of parameters for closures that don't use braces</h3>
+<pre><code>|x| x + 1i;</code></pre>
+
+</section>
+
+
+<section class="language-sass">
+
+<h3>Deprecated Sass syntax is not supported</h3>
+<pre><code>.page
+ color = 5px + 9px
+
+!width = 13px
+.icon
+ width = !width</code></pre>
+
+<h3>Selectors with pseudo classes are highlighted as property/value pairs</h3>
+<pre><code>a:hover
+ text-decoration: underline</code></pre>
+
+</section>
+
+
+<section class="language-scala">
+
+<h3>Nested block comments</h3>
+<pre><code>/* Nested block
+ /* comments
+ are */
+not supported */</code></pre>
+
+</section>
+
+
+<section class="language-swift">
+
+<h3>Nested block comments</h3>
+<pre><code>/* Nested block
+ /* comments
+ are */
+not supported */</code></pre>
+
+</section>
+
+
+<section class="language-textile">
+
+<h3>HTML inside Textile is not supported</h3>
+
+<p>But Textile inside HTML should be just fine.</p>
+
+<pre><code><strong>This _should_ work properly.</strong>
+*But this is <em>definitely</em> broken.*</code></pre>
+
+</section>
+
+
+<section class="language-twig">
+
+<h3>Tag containing Twig is not highlighted</h3>
+<pre><code><div{% if foo %} class="bar"{% endif %}></div></code></pre>
+
+</section>
+
+
+<section class="language-wiki">
+
+<h3>Nested magic words are not supported</h3>
+
+<pre><code>{{#switch:{{PAGENAME}}
+| L'Aquila = No translation
+| L = Not OK
+| L'Aquila = Entity escaping
+| L'Aquila = Numeric char encoding
+}}</code></pre>
+
+<h3>Nesting of bold and italic is not supported</h3>
+<pre><code>''Italic with '''bold''' inside''</code></pre>
+
+</section>
+
+
+<footer data-src="templates/footer.html" data-type="text/html"></footer>
+
+<script src="scripts/utopia.js"></script>
+<script src="prism.js"></script>
+<script src="plugins/autoloader/prism-autoloader.js" data-autoloader-path="components"></script>
+<script src="components.js"></script>
+<script>
+ $$('section[class*=language-]').forEach(function (section) {
+ var lang = /(?:^|\s)language-([\w-]+)(?:$|\s)/.exec(section.className)[1];
+ var title = components.languages[lang].title;
+
+ $u.element.create('h1', {
+ contents: title,
+ id: lang,
+ before: section.firstChild
+ });
+ });
+
+ $$('section > h1').forEach(function (h1) {
+ $u.element.create('p', {
+ contents: {
+ tag: 'a',
+ properties: {
+ href: '#toc'
+ },
+ contents: '↑ Back to top'
+ },
+ inside: h1.parentNode
+ });
+ });
+</script>
+<script src="scripts/code.js"></script>
+
+</body>
+</html>