Skip to content

Commit

Permalink
Add filetype mappings for OpenQASM
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Feb 11, 2020
1 parent e8527a8 commit cfb2a1c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
[Unpublished]
----------------------
### Added
- **New icons:** Valve Source Engine (`.bsp`, `.vpk`, `.vtfx`, `.vmt`, `.vtf`, `.vmf`, `.res`)
- **New icons:** OpenQASM (`.qasm`), Valve Source Engine (`.bsp`, `.vpk`, `.vtfx`, `.vmt`, `.vtf`, `.vmf`, `.res`)
- **Support:** Atom (`.apmrc`, `apmrc`), Jest (`.snap`), Squirrel (`.gnut`)
- [[`#721`][]]: Colour variations for JavaScript test files

Expand Down
7 changes: 7 additions & 0 deletions config.cson
Original file line number Diff line number Diff line change
Expand Up @@ -4882,6 +4882,13 @@ fileIcons:
[".k", "dark-purple", scope: /^source\.k4$/]
]

QASM:
icon: "qiskit"
alias: "OpenQASM"
match: ".qasm"
colour: "dark-blue"
scope: "qasm"

QlikView:
icon: "qlik"
match: [
Expand Down
3 changes: 2 additions & 1 deletion lib/icons/.icondb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ module.exports = [
["python-icon",["dark-maroon","dark-maroon"],/^wscript$/],
["kx-icon",["medium-blue","medium-blue"],/\.q$/i,,false,,/^source\.q$/,/^[Qq][\W_ \t]?[Kk][Dd][Bb][\W_ \t]?$|^Kdb\s*\+$/],
["kx-icon",["dark-purple","dark-purple"],/\.k$/i,,false,,/^source\.k4$/,/^Q\/?Kdb\+?$/i],
["qiskit-icon",["dark-blue","dark-blue"],/\.qasm$/i,,false,,/\.qasm$/i,/^Qasm$|^[0o]pen[\W_ \t]?Qasm$/i],
["qlik-icon",["medium-green","medium-green"],/\.qvw$/i],
["qlik-icon",["dark-green","dark-green"],/\.qvd$/i],
["qt-icon",["medium-green","medium-green"],/\.qml$/i,,false,/^qml$/,/\.qml$/i,/^Qt$|^qml$/i],
Expand Down Expand Up @@ -1853,5 +1854,5 @@ module.exports = [
["book-icon",["dark-blue","dark-blue"],/^zork\d\.(?!pre$|pur$)[a-z]+$/,0],
["key-icon",["dark-blue","dark-blue"],/\.ssh[\/\\][^\/\\\s]+$/,0,true],
["v8-icon",["medium-blue","medium-blue"],/^(?:[dv]8|v8[-_.][^.]*|mksnapshot|mkpeephole)$/i,0]],
[[141,149,150,151,272,307,342,366,374,387,391,393,418,441,445,446,447,448,453,454,455,456,459,464,473,477,497,523,524,539,544,551,556,558,563,591,605,610,611,615,619,627,628,634,642,647,672,677,680,689,698,708,709,713,714,722,750,767,772,776,791,795,800,802,804,805,808,810,811,816,819,822,823,841,844,861,865,866,871,890,891,894,895,897,898,900,901,903,949,950,953,959,976,977,978,986,989,991,1003,1014,1016,1020,1028,1029,1037,1040,1044,1046,1053,1074,1095,1102,1157,1159,1162,1175,1185,1193,1194,1206,1208,1212,1215,1225,1226,1228,1243,1248,1249,1252,1289,1292,1305,1306,1307,1313,1318,1319,1331,1332,1346,1353,1355,1358,1361,1362,1365,1366,1369,1384,1387,1388,1391,1392,1415,1421,1431,1434,1438,1439,1445,1449,1454,1459,1460,1462,1464,1467,1482,1484,1487,1489,1513,1516,1518,1541,1545,1554,1568,1591,1592,1627,1629,1631,1645,1656,1658,1676,1702,1706,1709,1713,1714,1753,1755,1767,1768,1789,1793],[9,12,15,58,82,117,149,151,155,173,178,188,243,252,261,270,306,307,335,337,338,341,343,348,351,366,370,374,378,380,381,385,387,389,390,391,393,395,396,397,405,409,410,411,413,414,415,417,418,420,441,443,444,445,446,447,448,453,454,455,456,460,461,464,466,473,477,485,486,488,490,496,497,504,505,506,510,513,517,522,537,538,539,542,543,544,549,551,553,556,558,560,561,563,583,591,597,599,604,605,606,608,609,610,611,612,613,615,616,617,619,620,623,624,627,628,634,635,637,642,646,647,650,653,658,660,662,664,669,671,678,680,685,686,687,688,689,692,693,694,695,697,698,705,708,709,712,713,714,720,722,726,727,750,751,752,753,756,761,762,763,764,766,767,768,769,771,772,775,776,778,799,805,811,822,823,824,827,834,841,844,845,846,847,851,854,857,861,862,865,866,868,869,871,872,873,874,876,886,887,889,891,895,897,898,900,901,903,904,905,927,942,943,945,948,949,951,953,954,957,959,974,976,977,978,980,981,984,985,986,988,989,990,991,992,994,997,1001,1003,1006,1008,1009,1014,1016,1020,1025,1028,1029,1034,1037,1040,1042,1044,1046,1053,1063,1064,1065,1068,1074,1086,1095,1102,1152,1157,1159,1161,1162,1166,1175,1176,1178,1181,1185,1191,1193,1200,1201,1202,1204,1206,1207,1208,1212,1214,1215,1218,1219,1220,1225,1226,1228,1236,1237,1238,1241,1243,1248,1249,1250,1252,1253,1254,1255,1256,1257,1258,1275,1281,1284,1285,1286,1287,1288,1290,1291,1292,1302,1305,1306,1307,1312,1313,1318,1321,1323,1329,1330,1331,1332,1334,1337,1346,1352,1353,1356,1357,1358,1361,1362,1364,1365,1366,1369,1376,1380,1381,1384,1387,1388,1391,1392,1401,1402,1407,1415,1421,1424,1429,1430,1431,1434,1435,1436,1438,1439,1445,1449,1452,1454,1456,1457,1458,1459,1460,1462,1464,1467,1470,1474,1482,1485,1487,1489,1490,1498,1503,1504,1505,1506,1508,1509,1511,1513,1514,1516,1518,1530,1531,1540,1541,1545,1548,1550,1551,1554,1555,1556,1558,1568,1574,1576,1582,1586,1588,1591,1592,1606,1607,1620,1621,1623,1624,1625,1626,1627,1628,1629,1631,1640,1641,1645,1650,1654,1655,1656,1658,1676,1683,1701,1702,1703,1704,1706,1710,1713,1714,1716,1724,1725,1749,1750,1752,1753,1755,1760,1762,1765,1767,1768,1789,1791,1792,1802],[0,10,11,16,81,258,271,293,294,318,324,325,327,329,333,334,592,593,594,595,648,649,971,1440,1491,1595,1771,1772,1809],[2,9,12,15,58,82,117,149,151,155,173,178,188,243,252,261,270,293,306,307,335,337,338,341,343,348,351,366,370,374,378,380,381,385,387,389,390,391,393,395,396,397,405,409,410,411,413,414,415,417,418,420,441,443,444,445,446,447,448,453,454,455,456,460,461,464,466,473,477,485,486,488,490,496,497,504,505,506,510,513,517,522,523,524,537,538,539,542,543,544,549,551,553,556,558,560,561,563,583,584,587,591,596,597,599,604,605,606,608,609,610,611,612,613,615,616,617,619,620,623,624,627,628,633,634,635,637,638,642,643,646,647,650,653,658,660,662,664,669,671,678,680,685,686,687,688,689,692,693,694,695,697,698,705,708,709,712,713,714,720,722,726,727,745,750,751,752,753,756,761,762,763,764,766,767,768,769,771,772,775,776,778,790,791,795,798,799,800,802,804,805,808,809,810,811,812,815,816,819,822,823,824,827,834,841,844,845,846,847,851,854,857,861,862,865,866,868,869,871,872,873,874,876,886,887,889,890,891,892,894,895,897,898,900,901,903,904,905,927,942,943,945,948,949,951,953,954,957,959,974,976,977,978,980,981,984,985,986,988,989,990,991,992,994,997,1001,1003,1006,1008,1009,1014,1016,1020,1025,1028,1029,1034,1037,1040,1042,1044,1046,1053,1063,1064,1065,1068,1074,1086,1095,1102,1152,1157,1159,1161,1162,1164,1165,1166,1175,1176,1178,1181,1185,1191,1193,1200,1201,1202,1204,1206,1207,1208,1212,1214,1215,1218,1219,1220,1225,1226,1228,1236,1237,1238,1241,1243,1248,1249,1250,1252,1253,1254,1255,1256,1257,1258,1275,1281,1284,1285,1286,1287,1288,1290,1291,1292,1302,1305,1306,1307,1312,1313,1318,1321,1323,1329,1330,1331,1332,1334,1337,1346,1352,1353,1356,1357,1358,1361,1362,1364,1365,1366,1369,1376,1380,1381,1384,1387,1388,1391,1392,1401,1402,1407,1415,1421,1424,1429,1430,1431,1434,1435,1436,1438,1439,1445,1449,1452,1454,1456,1457,1458,1459,1460,1462,1464,1467,1470,1474,1476,1482,1484,1485,1487,1489,1490,1498,1503,1504,1505,1506,1508,1509,1511,1513,1514,1516,1518,1519,1530,1531,1540,1541,1545,1548,1550,1551,1554,1555,1556,1558,1568,1574,1576,1582,1586,1588,1591,1592,1602,1606,1607,1620,1621,1623,1624,1625,1626,1627,1628,1629,1631,1640,1641,1645,1650,1654,1655,1656,1658,1676,1683,1701,1702,1703,1704,1706,1710,1713,1714,1716,1724,1725,1749,1750,1752,1753,1755,1760,1762,1765,1767,1768,1771,1789,1791,1792,1802],[0,3,4,260,308,344,361,371,391,424,425,426,427,428,429,430,431,432,433,435,436,437,521,566,567,568,569,570,573,574,578,580,587,601,636,664,726,734,735,736,737,738,739,742,743,745,749,789,790,816,819,879,880,889,908,909,910,911,912,913,914,915,916,918,919,920,921,922,924,925,926,927,928,929,930,932,933,935,936,939,1121,1173,1198,1280,1304,1313,1318,1334,1337,1418,1420,1438,1497,1527,1593,1647,1648,1649,1651,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1677,1681,1710,1792,1803,1804]]]
[[141,149,150,151,272,307,342,366,374,387,391,393,418,441,445,446,447,448,453,454,455,456,459,464,473,477,497,523,524,539,544,551,556,558,563,591,605,610,611,615,619,627,628,634,642,647,672,677,680,689,698,708,709,713,714,722,750,767,772,776,791,795,800,802,804,805,808,810,811,816,819,822,823,841,844,861,865,866,871,890,891,894,895,897,898,900,901,903,949,950,953,959,976,977,978,986,989,991,1003,1014,1016,1020,1028,1029,1037,1040,1044,1046,1053,1074,1095,1102,1157,1159,1162,1175,1185,1193,1194,1206,1208,1212,1215,1225,1226,1228,1243,1248,1249,1252,1289,1292,1305,1306,1307,1313,1318,1319,1331,1332,1346,1353,1355,1358,1361,1362,1365,1366,1369,1385,1388,1389,1392,1393,1416,1422,1432,1435,1439,1440,1446,1450,1455,1460,1461,1463,1465,1468,1483,1485,1488,1490,1514,1517,1519,1542,1546,1555,1569,1592,1593,1628,1630,1632,1646,1657,1659,1677,1703,1707,1710,1714,1715,1754,1756,1768,1769,1790,1794],[9,12,15,58,82,117,149,151,155,173,178,188,243,252,261,270,306,307,335,337,338,341,343,348,351,366,370,374,378,380,381,385,387,389,390,391,393,395,396,397,405,409,410,411,413,414,415,417,418,420,441,443,444,445,446,447,448,453,454,455,456,460,461,464,466,473,477,485,486,488,490,496,497,504,505,506,510,513,517,522,537,538,539,542,543,544,549,551,553,556,558,560,561,563,583,591,597,599,604,605,606,608,609,610,611,612,613,615,616,617,619,620,623,624,627,628,634,635,637,642,646,647,650,653,658,660,662,664,669,671,678,680,685,686,687,688,689,692,693,694,695,697,698,705,708,709,712,713,714,720,722,726,727,750,751,752,753,756,761,762,763,764,766,767,768,769,771,772,775,776,778,799,805,811,822,823,824,827,834,841,844,845,846,847,851,854,857,861,862,865,866,868,869,871,872,873,874,876,886,887,889,891,895,897,898,900,901,903,904,905,927,942,943,945,948,949,951,953,954,957,959,974,976,977,978,980,981,984,985,986,988,989,990,991,992,994,997,1001,1003,1006,1008,1009,1014,1016,1020,1025,1028,1029,1034,1037,1040,1042,1044,1046,1053,1063,1064,1065,1068,1074,1086,1095,1102,1152,1157,1159,1161,1162,1166,1175,1176,1178,1181,1185,1191,1193,1200,1201,1202,1204,1206,1207,1208,1212,1214,1215,1218,1219,1220,1225,1226,1228,1236,1237,1238,1241,1243,1248,1249,1250,1252,1253,1254,1255,1256,1257,1258,1275,1281,1284,1285,1286,1287,1288,1290,1291,1292,1302,1305,1306,1307,1312,1313,1318,1321,1323,1329,1330,1331,1332,1334,1337,1346,1352,1353,1356,1357,1358,1361,1362,1364,1365,1366,1369,1376,1380,1381,1382,1385,1388,1389,1392,1393,1402,1403,1408,1416,1422,1425,1430,1431,1432,1435,1436,1437,1439,1440,1446,1450,1453,1455,1457,1458,1459,1460,1461,1463,1465,1468,1471,1475,1483,1486,1488,1490,1491,1499,1504,1505,1506,1507,1509,1510,1512,1514,1515,1517,1519,1531,1532,1541,1542,1546,1549,1551,1552,1555,1556,1557,1559,1569,1575,1577,1583,1587,1589,1592,1593,1607,1608,1621,1622,1624,1625,1626,1627,1628,1629,1630,1632,1641,1642,1646,1651,1655,1656,1657,1659,1677,1684,1702,1703,1704,1705,1707,1711,1714,1715,1717,1725,1726,1750,1751,1753,1754,1756,1761,1763,1766,1768,1769,1790,1792,1793,1803],[0,10,11,16,81,258,271,293,294,318,324,325,327,329,333,334,592,593,594,595,648,649,971,1441,1492,1596,1772,1773,1810],[2,9,12,15,58,82,117,149,151,155,173,178,188,243,252,261,270,293,306,307,335,337,338,341,343,348,351,366,370,374,378,380,381,385,387,389,390,391,393,395,396,397,405,409,410,411,413,414,415,417,418,420,441,443,444,445,446,447,448,453,454,455,456,460,461,464,466,473,477,485,486,488,490,496,497,504,505,506,510,513,517,522,523,524,537,538,539,542,543,544,549,551,553,556,558,560,561,563,583,584,587,591,596,597,599,604,605,606,608,609,610,611,612,613,615,616,617,619,620,623,624,627,628,633,634,635,637,638,642,643,646,647,650,653,658,660,662,664,669,671,678,680,685,686,687,688,689,692,693,694,695,697,698,705,708,709,712,713,714,720,722,726,727,745,750,751,752,753,756,761,762,763,764,766,767,768,769,771,772,775,776,778,790,791,795,798,799,800,802,804,805,808,809,810,811,812,815,816,819,822,823,824,827,834,841,844,845,846,847,851,854,857,861,862,865,866,868,869,871,872,873,874,876,886,887,889,890,891,892,894,895,897,898,900,901,903,904,905,927,942,943,945,948,949,951,953,954,957,959,974,976,977,978,980,981,984,985,986,988,989,990,991,992,994,997,1001,1003,1006,1008,1009,1014,1016,1020,1025,1028,1029,1034,1037,1040,1042,1044,1046,1053,1063,1064,1065,1068,1074,1086,1095,1102,1152,1157,1159,1161,1162,1164,1165,1166,1175,1176,1178,1181,1185,1191,1193,1200,1201,1202,1204,1206,1207,1208,1212,1214,1215,1218,1219,1220,1225,1226,1228,1236,1237,1238,1241,1243,1248,1249,1250,1252,1253,1254,1255,1256,1257,1258,1275,1281,1284,1285,1286,1287,1288,1290,1291,1292,1302,1305,1306,1307,1312,1313,1318,1321,1323,1329,1330,1331,1332,1334,1337,1346,1352,1353,1356,1357,1358,1361,1362,1364,1365,1366,1369,1376,1380,1381,1382,1385,1388,1389,1392,1393,1402,1403,1408,1416,1422,1425,1430,1431,1432,1435,1436,1437,1439,1440,1446,1450,1453,1455,1457,1458,1459,1460,1461,1463,1465,1468,1471,1475,1477,1483,1485,1486,1488,1490,1491,1499,1504,1505,1506,1507,1509,1510,1512,1514,1515,1517,1519,1520,1531,1532,1541,1542,1546,1549,1551,1552,1555,1556,1557,1559,1569,1575,1577,1583,1587,1589,1592,1593,1603,1607,1608,1621,1622,1624,1625,1626,1627,1628,1629,1630,1632,1641,1642,1646,1651,1655,1656,1657,1659,1677,1684,1702,1703,1704,1705,1707,1711,1714,1715,1717,1725,1726,1750,1751,1753,1754,1756,1761,1763,1766,1768,1769,1772,1790,1792,1793,1803],[0,3,4,260,308,344,361,371,391,424,425,426,427,428,429,430,431,432,433,435,436,437,521,566,567,568,569,570,573,574,578,580,587,601,636,664,726,734,735,736,737,738,739,742,743,745,749,789,790,816,819,879,880,889,908,909,910,911,912,913,914,915,916,918,919,920,921,922,924,925,926,927,928,929,930,932,933,935,936,939,1121,1173,1198,1280,1304,1313,1318,1334,1337,1419,1421,1439,1498,1528,1594,1648,1649,1650,1652,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1678,1682,1711,1793,1804,1805]]]
];
2 changes: 2 additions & 0 deletions styles/icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@
.pypi-icon:before { .fi; content: "\ea94"; top: 2px; }
.pyret-icon:before { .fi; content: "\2620"; top: 2px; font-size: 16px; }
.pyup-icon:before { .fi; content: "\eb26"; top: 2px; }
.qiskit-icon:before { .fi; content: "\eb81"; top: 2px; font-size: 16px; .sharpen; }
.qlik-icon:before { .fi; content: "\1f50d";top: 2px; }
.qt-icon:before { .fi; content: "\eb00"; top: 2px; font-size: 16px; }
.quasar-icon:before { .fi; content: "\eacc"; top: 2px; }
Expand Down Expand Up @@ -784,6 +785,7 @@
.solidity-icon:before { .fi; content: "\ea86"; top: 2px; }
.sophia-icon:before { .fi; content: "\eb72"; top: 3px; font-size: 17px; }
.sorbet-icon:before { .fi; content: "\1f366";top: 2px; font-size: 16px; }
.source-icon:before { .fi; content: "\eb82"; top: 2px; }
.spacemacs-icon:before { .fi; content: "\eaa4"; top: 2px; }
.sparql-icon:before { .fi; content: "\e959"; top: 2px; }
.sqf-icon:before { .fi; content: "\e9a5"; top: 1px; .sharpen; }
Expand Down

0 comments on commit cfb2a1c

Please sign in to comment.