Skip to content

Commit

Permalink
[anthonygelibert#74] Added .install, .module, and .profile file types…
Browse files Browse the repository at this point in the history
… with php colourcoding.
  • Loading branch information
BrianGilbert committed Dec 11, 2020
1 parent b5978ea commit 2bbd305
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<string>QLGenerator</string>
<key>LSItemContentTypes</key>
<array>
<string>dyn.ah62d4rv4ge80w5xxsvu025a</string>
<string>dyn.ah62d4rv4ge81a6xtq3y023k</string>
<string>dyn.ah62d4rv4ge80455esz0gn</string>
<string>public.source-code</string>
<string>public.ruby-script</string>
<string>public.yaml</string>
Expand Down
22 changes: 18 additions & 4 deletions hl/highlight.patch
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
diff --git a/filetypes.conf b/filetypes.conf
index 10cfd0c..a558ce2 100644
--- a/filetypes.conf
+++ b/filetypes.conf
@@ -73,7 +73,7 @@ FileMapping = {
{ Lang="mod2", Extensions={"mod", "def"} },
{ Lang="mod3", Extensions={"m3", "i3"} },
{ Lang="oberon", Extensions={"ooc"} },
- { Lang="php", Extensions={"php3", "php4", "php5", "php6", "php7", "phps", "phpt"} },
+ { Lang="php", Extensions={"php3", "php4", "php5", "php6", "php7", "phps", "phpt", "install", "module", "profile"} },
{ Lang="pike", Extensions={"pmod"} },
{ Lang="pl1", Extensions={"ff", "fp", "fpp", "rpp","sf", "sp", "spb",
"spp","sps", "wp", "wf", "wpp","wps","wpb","bdy","spe"} },

diff --git a/src/makefile b/src/makefile
index 9d0a08e..0a7a833 100644
--- a/src/makefile
+++ b/src/makefile
@@ -43,8 +43,8 @@ ifeq (${LUA_TEST},1)
LUA_PKG_NAME=lua
endif

-LUA_CFLAGS=$(shell pkg-config --cflags ${LUA_PKG_NAME})
-LUA_LIBS=$(shell pkg-config --libs ${LUA_PKG_NAME})
+LUA_CFLAGS=-I../../lua -I../..
+LUA_LIBS=../../lua/liblua.a

# luajit lib
# LUA_LIBS=$(shell pkg-config --libs luajit)
@@ -75,7 +75,7 @@ LDFLAGS = -ldl
#LDFLAGS = ${LDFLAGS} -s
#LDFLAGS= -Wl,--as-needed

-CXX_COMPILE=${CXX} ${CFLAGS} -c -I ${INCLUDE_DIR} ${LUA_CFLAGS}
+CXX_COMPILE=${CXX} ${CFLAGS} -c -I /opt/local/include -I /usr/local/include -I ${INCLUDE_DIR} ${LUA_CFLAGS}

# Data directories (data dir, configuration file dir)
CXX_DIR=-DHL_DATA_DIR=\"${HL_DATA_DIR}\" -DHL_CONFIG_DIR=\"${HL_CONFIG_DIR}\"

0 comments on commit 2bbd305

Please sign in to comment.