Skip to content

Commit e7e4352

Browse files
committed
Merge branch 'develop'
2 parents aeb58da + 487abbc commit e7e4352

27 files changed

+92
-7
lines changed

PACKAGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ This file contains a list of possible packages you may need to install to see th
179179

180180
- [MDX Syntax Highlighting](https://packagecontrol.io/packages/MDX%20Syntax%20Highlighting)
181181

182+
## Meson
183+
184+
- [Meson](https://packagecontrol.io/packages/Meson)
185+
182186
## Mint
183187

184188
- [Mint Lang](https://packagecontrol.io/packages/Mint%20Lang)

build/icons.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
import os
33
import re
4-
4+
import subprocess
55

66
try:
77
import cairosvg
@@ -34,7 +34,7 @@ def replace_color(text, color, new_color):
3434

3535

3636
def create_png(bytestring, write_to, size):
37-
width, height, rows, info = png.Reader(
37+
_, _, rows, info = png.Reader(
3838
bytes=cairosvg.svg2png(
3939
bytestring=bytestring, parent_height=size, parent_width=size
4040
)
@@ -49,11 +49,11 @@ def create_icons(icons):
4949

5050
for icon_name, icon_data in icons.items():
5151
with open(icons_path("svg", icon_name + ".svg")) as fp:
52+
svg_multi = fp.read()
53+
svg_mono = replace_color(svg_multi, ".+?", "#fff")
5254
color = colors.get(icon_data["color"])
53-
svg_raw = fp.read()
54-
svg_mono = replace_color(svg_raw, ".+?", "#fff")
5555
if color:
56-
svg_multi = replace_color(svg_raw, "#000", color)
56+
svg_multi = replace_color(svg_multi, "#000", color)
5757

5858
for size in (1, 2, 3):
5959
suffix = "@{}x.png".format(size) if size > 1 else ".png"
@@ -67,3 +67,10 @@ def create_icons(icons):
6767
write_to=icons_path("single", icon_name + suffix),
6868
size=size * 16,
6969
)
70+
71+
# recreate icons overlay
72+
# note: requires `subl` to be registered on $PATH
73+
try:
74+
subprocess.call(["subl", "--command", "afi_revert"])
75+
except:
76+
pass

icons/icons.json

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,23 @@
480480
}
481481
]
482482
},
483+
"file_type_cppheader": {
484+
"aliases": [
485+
{
486+
"base": "source.c++",
487+
"extensions": [
488+
"h",
489+
"h++",
490+
"hh",
491+
"hpp",
492+
"hxx"
493+
],
494+
"name": "C++ (Header)",
495+
"scope": "source.c++.header"
496+
}
497+
],
498+
"color": "sky"
499+
},
483500
"file_type_crystal": {
484501
"color": "graphite",
485502
"syntaxes": [
@@ -1405,6 +1422,19 @@
14051422
}
14061423
]
14071424
},
1425+
"file_type_meson": {
1426+
"color": "blue",
1427+
"syntaxes": [
1428+
{
1429+
"extensions": [
1430+
"meson.build",
1431+
"meson_options.txt"
1432+
],
1433+
"name": "Plain Text (Meson)",
1434+
"scope": "source.meson"
1435+
}
1436+
]
1437+
},
14081438
"file_type_mint": {
14091439
"color": "green",
14101440
"syntaxes": [
@@ -2068,11 +2098,24 @@
20682098
{
20692099
"base": "source.json",
20702100
"extensions": [
2101+
".htmlhintrc",
20712102
".jshintrc",
2072-
".jsbeautifyrc"
2103+
".jsbeautifyrc",
2104+
".prettierrc",
2105+
".releaserc"
20732106
],
20742107
"name": "JSON (Settings)",
20752108
"scope": "source.json.settings"
2109+
},
2110+
{
2111+
"extensions": [
2112+
".htmlhintignore",
2113+
".jshintignore",
2114+
".jsbeautifyignore",
2115+
".prettierignore"
2116+
],
2117+
"name": "Plain Text (Settings)",
2118+
"scope": "text.plain.settings"
20762119
}
20772120
],
20782121
"color": "graphite",
@@ -2722,6 +2765,7 @@
27222765
"aliases": [
27232766
{
27242767
"extensions": [
2768+
".coverage",
27252769
"idl",
27262770
"sln"
27272771
],
228 Bytes
Loading

icons/multi/[email protected]

349 Bytes
Loading

icons/multi/[email protected]

468 Bytes
Loading

icons/multi/file_type_meson.png

401 Bytes
Loading

icons/multi/[email protected]

748 Bytes
Loading

icons/multi/[email protected]

994 Bytes
Loading
179 Bytes
Loading

0 commit comments

Comments
 (0)