Skip to content

Commit 3eec4ee

Browse files
committed
[anthonygelibert#74] Added .install, .less, .module, .profile, .sass, and .scss file types with relevant colourcoding.
1 parent b5978ea commit 3eec4ee

File tree

2 files changed

+55
-4
lines changed

2 files changed

+55
-4
lines changed

Info.plist

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<string>QLGenerator</string>
1414
<key>LSItemContentTypes</key>
1515
<array>
16+
<string>dyn.ah62d4rv4ge8023pxsq</string>
17+
<string>dyn.ah62d4rv4ge81g25xsq</string>
18+
<string>dyn.ah62d4rv4ge81g2pxsq</string>
19+
<string>dyn.ah62d4rv4ge80w5xxsvu025a</string>
20+
<string>dyn.ah62d4rv4ge81a6xtq3y023k</string>
21+
<string>dyn.ah62d4rv4ge80455esz0gn</string>
1622
<string>public.source-code</string>
1723
<string>public.ruby-script</string>
1824
<string>public.yaml</string>
@@ -1353,6 +1359,29 @@
13531359
</array>
13541360
</dict>
13551361
</dict>
1362+
<dict>
1363+
<key>UTTypeConformsTo</key>
1364+
<array>
1365+
<string>public.css</string>
1366+
<string>dyn.ah62d4rv4ge81g25xsq</string>
1367+
<string>dyn.ah62d4rv4ge81g2pxsq</string>
1368+
<string>dyn.ah62d4rv4ge8023pxsq</string>
1369+
</array>
1370+
<key>UTTypeDescription</key>
1371+
<string>CSS Source File</string>
1372+
<key>UTTypeIdentifier</key>
1373+
<string>org.css.source</string>
1374+
<key>UTTypeTagSpecification</key>
1375+
<dict>
1376+
<key>public.filename-extension</key>
1377+
<array>
1378+
<string>css</string>
1379+
<string>less</string>
1380+
<string>sass</string>
1381+
<string>scss</string>
1382+
</array>
1383+
</dict>
1384+
</dict>
13561385
</array>
13571386
</dict>
13581387
</plist>

hl/highlight.patch

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,46 @@
1+
diff --git a/filetypes.conf b/filetypes.conf
2+
index 10cfd0c..a558ce2 100644
3+
--- a/filetypes.conf
4+
+++ b/filetypes.conf
5+
@@ -45,6 +45,7 @@ FileMapping = {
6+
{ Lang="coldfusion", Extensions={"cfc","cfm"} },
7+
{ Lang="cobol", Extensions={"cob", "cbl"} },
8+
{ Lang="crystal", Extensions={"cr"} },
9+
+ { Lang="css", Extensions={"css", "less", "sass", "scss"} },
10+
{ Lang="conf", Extensions={"anacrontab"} },
11+
{ Lang="delphi", Extensions={"pas", "dpr"} },
12+
{ Lang="diff", Extensions={"patch"} },
13+
@@ -73,7 +74,7 @@ FileMapping = {
14+
{ Lang="mod2", Extensions={"mod", "def"} },
15+
{ Lang="mod3", Extensions={"m3", "i3"} },
16+
{ Lang="oberon", Extensions={"ooc"} },
17+
- { Lang="php", Extensions={"php3", "php4", "php5", "php6", "php7", "phps", "phpt"} },
18+
+ { Lang="php", Extensions={"php3", "php4", "php5", "php6", "php7", "phps", "phpt", "install", "module", "profile"} },
19+
{ Lang="pike", Extensions={"pmod"} },
20+
{ Lang="pl1", Extensions={"ff", "fp", "fpp", "rpp","sf", "sp", "spb",
21+
"spp","sps", "wp", "wf", "wpp","wps","wpb","bdy","spe"} },
22+
123
diff --git a/src/makefile b/src/makefile
224
index 9d0a08e..0a7a833 100644
325
--- a/src/makefile
426
+++ b/src/makefile
527
@@ -43,8 +43,8 @@ ifeq (${LUA_TEST},1)
628
LUA_PKG_NAME=lua
729
endif
8-
30+
931
-LUA_CFLAGS=$(shell pkg-config --cflags ${LUA_PKG_NAME})
1032
-LUA_LIBS=$(shell pkg-config --libs ${LUA_PKG_NAME})
1133
+LUA_CFLAGS=-I../../lua -I../..
1234
+LUA_LIBS=../../lua/liblua.a
13-
35+
1436
# luajit lib
1537
# LUA_LIBS=$(shell pkg-config --libs luajit)
1638
@@ -75,7 +75,7 @@ LDFLAGS = -ldl
1739
#LDFLAGS = ${LDFLAGS} -s
1840
#LDFLAGS= -Wl,--as-needed
19-
41+
2042
-CXX_COMPILE=${CXX} ${CFLAGS} -c -I ${INCLUDE_DIR} ${LUA_CFLAGS}
2143
+CXX_COMPILE=${CXX} ${CFLAGS} -c -I /opt/local/include -I /usr/local/include -I ${INCLUDE_DIR} ${LUA_CFLAGS}
22-
44+
2345
# Data directories (data dir, configuration file dir)
2446
CXX_DIR=-DHL_DATA_DIR=\"${HL_DATA_DIR}\" -DHL_CONFIG_DIR=\"${HL_CONFIG_DIR}\"

0 commit comments

Comments
 (0)