From 4b5fef0fbace0447fb9a36d7e2e5b6baf87a110c Mon Sep 17 00:00:00 2001 From: Brian Gilbert Date: Fri, 11 Dec 2020 16:49:41 +1100 Subject: [PATCH] [#74] Added .install, .less, .module, .profile, .sass, and .scss file types with relevant colourcoding. --- Info.plist | 1244 ++++++++++++++++++++++++++++++++++++++++++++ hl/highlight.patch | 46 ++ 2 files changed, 1290 insertions(+) create mode 100644 hl/highlight.patch diff --git a/Info.plist b/Info.plist index 2960ed6..74e4170 100644 --- a/Info.plist +++ b/Info.plist @@ -14,6 +14,12 @@ LSItemContentTypes dyn.ah62d4rv4ge81q4pr + dyn.ah62d4rv4ge8023pxsq + dyn.ah62d4rv4ge81g25xsq + dyn.ah62d4rv4ge81g2pxsq + dyn.ah62d4rv4ge80w5xxsvu025a + dyn.ah62d4rv4ge81a6xtq3y023k + dyn.ah62d4rv4ge80455esz0gn public.source-code public.ruby-script public.yaml @@ -147,5 +153,1243 @@ QLThumbnailMinimumSize 17 + UTImportedTypeDeclarations + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Logos Source File + UTTypeIdentifier + com.dhowett.logos + UTTypeTagSpecification + + public.filename-extension + + xm + + + + + UTTypeIdentifier + org.ocaml.ocaml-source + UTTypeReferenceURL + http://www.ocaml.org/ + UTTypeTagSpecification + + public.filename-extension + + ml + mll + mly + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + OCaml Interface File + UTTypeIdentifier + org.ocaml.ocaml-interface + UTTypeReferenceURL + http://www.ocaml.org/ + UTTypeTagSpecification + + public.filename-extension + + mli + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Haskell Source File + UTTypeIdentifier + org.haskell.haskell-source + UTTypeReferenceURL + http://www.haskell.org/ + UTTypeTagSpecification + + public.filename-extension + + hs + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Literate Haskell Source File + UTTypeIdentifier + org.haskell.literate-haskell-source + UTTypeReferenceURL + http://www.haskell.org/ + UTTypeTagSpecification + + public.filename-extension + + lhs + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + scheme Source File + UTTypeIdentifier + org.n8gray.scheme-source + UTTypeTagSpecification + + public.filename-extension + + scm + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + .ini Source File + UTTypeIdentifier + org.n8gray.ini-source + UTTypeTagSpecification + + public.filename-extension + + ini + + public.mime-type + text/x-ini + + + + UTTypeConformsTo + + public.tex + + UTTypeDescription + TeX text file + UTTypeIdentifier + public.tex + UTTypeTagSpecification + + public.filename-extension + + tex + latex + ltx + texi + ctx + sty + cls + + + + + UTTypeConformsTo + + public.yaml + + UTTypeDescription + YAML file + UTTypeIdentifier + public.yaml + UTTypeTagSpecification + + public.filename-extension + + yaml + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Erlang Source File + UTTypeIdentifier + org.erlang.erlang-source + UTTypeTagSpecification + + public.filename-extension + + erl + hrl + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Standard ML Source File + UTTypeIdentifier + org.n8gray.standard-ml-source + UTTypeTagSpecification + + public.filename-extension + + sml + + + + + UTTypeConformsTo + + public.source-code + dyn.ah62d4rv4ge81g6pq + + UTTypeDescription + SQL Source File + UTTypeIdentifier + org.n8gray.structured-query-language-source + UTTypeTagSpecification + + public.filename-extension + + sql + + + + + UTTypeConformsTo + + public.script + public.patch-file + + UTTypeDescription + Diff File + UTTypeIdentifier + org.n8gray.diff-script + UTTypeTagSpecification + + public.filename-extension + + diff + patch + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + CSS File + UTTypeIdentifier + public.css + UTTypeTagSpecification + + public.filename-extension + + css + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Lua Source File + UTTypeIdentifier + org.lua.lua-source + UTTypeTagSpecification + + public.filename-extension + + lua + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Tcl Source File + UTTypeIdentifier + tk.tcl.tcl-source + UTTypeTagSpecification + + public.filename-extension + + tcl + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + JSP Source File + UTTypeIdentifier + org.n8gray.jsp-source + UTTypeTagSpecification + + public.filename-extension + + jsp + + + + + UTTypeConformsTo + + public.source-code + dyn.ah62d4rv4ge80e2py + + UTTypeDescription + DOS Batch Source File + UTTypeIdentifier + org.n8gray.bat + UTTypeTagSpecification + + public.filename-extension + + bat + cmd + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Adobe Flash ActionScript Source File + UTTypeIdentifier + com.adobe.actionscript + UTTypeTagSpecification + + public.filename-extension + + as + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Lisp Source File + UTTypeIdentifier + org.n8gray.lisp + UTTypeTagSpecification + + public.filename-extension + + sb + lisp + lsp + asd + el + clj + + + + + UTTypeConformsTo + + public.source-code + dyn.ah62d4rv4ge80s52 + + UTTypeDescription + Go Source File + UTTypeIdentifier + org.go.source + UTTypeTagSpecification + + public.filename-extension + + go + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + IDL Source File + UTTypeIdentifier + org.n8gray.idl + UTTypeTagSpecification + + public.filename-extension + + pro + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Makefile Source File + UTTypeIdentifier + org.n8gray.makefile + UTTypeTagSpecification + + public.filename-extension + + mk + mak + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Verilog Source File + UTTypeIdentifier + org.n8gray.verilog + UTTypeTagSpecification + + public.filename-extension + + v + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + VHDL Source File + UTTypeIdentifier + org.n8gray.vhdl + UTTypeTagSpecification + + public.filename-extension + + vhdl + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + XHTML Source File + UTTypeIdentifier + org.n8gray.xhtml + UTTypeTagSpecification + + public.filename-extension + + xhtml + + + + + UTTypeConformsTo + + public.xml + + UTTypeDescription + Java Web Installer (XML) + UTTypeIdentifier + org.n8gray.javaInstaller + UTTypeTagSpecification + + public.filename-extension + + jnlp + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Eiffel source code file + UTTypeIdentifier + com.eiffel.source-code + UTTypeTagSpecification + + public.filename-extension + + e + + + + + UTTypeConformsTo + + public.xml + + UTTypeDescription + EiffelStudio project configuration file + UTTypeIdentifier + com.eiffel.eiffelstudio-project-config + UTTypeTagSpecification + + public.filename-extension + + ecf + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + C# Source File + UTTypeIdentifier + com.microsoft.csharp-source + UTTypeReferenceURL + http://www.microsoft.com/ + UTTypeTagSpecification + + public.filename-extension + + cs + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Visual Basic Source File + UTTypeIdentifier + com.microsoft.vb-source + UTTypeReferenceURL + http://www.microsoft.com/ + UTTypeTagSpecification + + public.filename-extension + + vb + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Ruby on Rails File + UTTypeIdentifier + org.n8gray.railstemplate + UTTypeTagSpecification + + public.filename-extension + + rhtml + erb + rjs + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + QLColorCode Test File + UTTypeIdentifier + org.n8gray.bogusextension + UTTypeTagSpecification + + public.filename-extension + + bogus_extension + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Groovy Source Code + UTTypeIdentifier + org.codehaus.groovy-source + UTTypeTagSpecification + + public.filename-extension + + groovy + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Scala Source Code + UTTypeIdentifier + org.scala.source + UTTypeTagSpecification + + public.filename-extension + + scala + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Coldfusion Source Code + UTTypeIdentifier + com.adobe.coldfusion + UTTypeTagSpecification + + public.filename-extension + + cfc + cfm + cfml + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + PDE files + UTTypeIdentifier + org.arduino.source + UTTypeTagSpecification + + public.filename-extension + + pde + ino + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + ASCR files + UTTypeIdentifier + org.applescript.source + UTTypeTagSpecification + + public.filename-extension + + ascr + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + RDF files + UTTypeIdentifier + org.rdf.source + UTTypeTagSpecification + + public.filename-extension + + rdf + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + XUL files + UTTypeIdentifier + org.xul.source + UTTypeTagSpecification + + public.filename-extension + + xul + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + INO files + UTTypeIdentifier + org.arduino.ino-source + UTTypeTagSpecification + + public.filename-extension + + ino + + + + + UTTypeConformsTo + + public.plain-text + + UTTypeDescription + INF files + UTTypeIdentifier + org.microsoft.inf + UTTypeTagSpecification + + public.filename-extension + + inf + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + MF files + UTTypeIdentifier + com.sun.manifest + UTTypeTagSpecification + + public.filename-extension + + mf + + + + + UTTypeConformsTo + + com.sun.java-class + + UTTypeDescription + Java Class + UTTypeIdentifier + com.sun.java-class + UTTypeTagSpecification + + public.filename-extension + + class + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + JavaFX ML + UTTypeIdentifier + com.sun.javafx + UTTypeTagSpecification + + public.filename-extension + + fxml + + + + + UTTypeConformsTo + + public.plain-text + + UTTypeDescription + NFO files + UTTypeIdentifier + org.nfo + UTTypeTagSpecification + + public.filename-extension + + nfo + + + + + UTTypeConformsTo + + public.xml + + UTTypeDescription + ECore files + UTTypeIdentifier + org.omg.ecore + UTTypeTagSpecification + + public.filename-extension + + ecore + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + ATL files + UTTypeIdentifier + org.km3 + UTTypeTagSpecification + + public.filename-extension + + atl + + + + + UTTypeConformsTo + + public.source-code + dyn.ah62d4rv4ge80q4pxra + + UTTypeDescription + Fish source files + UTTypeIdentifier + org.fish.source + UTTypeTagSpecification + + public.filename-extension + + fish + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge81u65k + + UTTypeDescription + XSH source files + UTTypeIdentifier + org.xsh.source + UTTypeTagSpecification + + public.filename-extension + + xsh + + + + + UTTypeConformsTo + + public.source-code + dyn.ah62d4rv4ge81e62 + + UTTypeDescription + Rust source files + UTTypeIdentifier + org.rust.source + UTTypeTagSpecification + + public.filename-extension + + rs + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Coffee source files + UTTypeIdentifier + org.coffee.source + UTTypeTagSpecification + + public.filename-extension + + coffee + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + CSON source files + UTTypeIdentifier + org.cson.source + UTTypeTagSpecification + + public.filename-extension + + cson + + + + + UTTypeConformsTo + + public.source-code + dyn.ah62d4rv4ge80e2pysq + public.bash-script + + UTTypeDescription + Shell script + UTTypeIdentifier + org.bash.source + UTTypeTagSpecification + + public.filename-extension + + bashrc + bats + bash + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + INNO source files + UTTypeIdentifier + org.inno.source + UTTypeTagSpecification + + public.filename-extension + + iss + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + ASM source files + UTTypeIdentifier + org.asm.source + UTTypeTagSpecification + + public.filename-extension + + s79 + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + KERMETA source files + UTTypeIdentifier + org.kmt.source + UTTypeTagSpecification + + public.filename-extension + + kmt + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge8007dx + + UTTypeDescription + Kotlin source files + UTTypeIdentifier + org.kotlin.source + UTTypeTagSpecification + + public.filename-extension + + kts + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + GCC-linked files + UTTypeIdentifier + org.gcc.files + UTTypeTagSpecification + + public.filename-extension + + ld + map + d + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge8007a + + UTTypeDescription + Kotlin Source File + UTTypeIdentifier + org.kotlinlang.source + UTTypeTagSpecification + + public.filename-extension + + kt + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge80s6xbqv0gn + + UTTypeDescription + Gradle Source File + UTTypeIdentifier + org.gradle.source + UTTypeTagSpecification + + public.filename-extension + + gradle + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge80w5pq + + UTTypeDescription + JetBrain Project File + UTTypeIdentifier + com.jetbrain.source + UTTypeTagSpecification + + public.filename-extension + + iml + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge80g2pcqf0a + + UTTypeDescription + CABAL file + UTTypeIdentifier + public.cabal + UTTypeTagSpecification + + public.filename-extension + + cabal + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge80u62 + + UTTypeDescription + Haskell file + UTTypeIdentifier + public.haskell + UTTypeTagSpecification + + public.filename-extension + + hs + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge80g6u + + UTTypeDescription + Crystal Source File + UTTypeIdentifier + org.crystal-lang.source + UTTypeTagSpecification + + public.filename-extension + + cr + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge81q7pf + + UTTypeDescription + Vue Source File + UTTypeIdentifier + org.vue.source + UTTypeTagSpecification + + public.filename-extension + + vue + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge80e2p4qz0a + dyn.ah62d4rv4ge80e8xq + + UTTypeDescription + Bazel Source File + UTTypeIdentifier + org.bazel.source + UTTypeTagSpecification + + public.filename-extension + + bazel + bzl + + + + + UTTypeConformsTo + + dyn.ah62d4rv4ge81u65e + dyn.ah62d4rv4ge81u6pzqz3hw + org.vim.xsl-file + public.xml + dyn.ah62d4rv4ge81u7k + dyn.ah62d4rv4ge81u6pr + dyn.ah62d4rv4ge81u6k + + UTTypeDescription + XSD/XQuery/XSL/XML Source File + UTTypeIdentifier + org.xml-tools.source + UTTypeTagSpecification + + public.filename-extension + + xsd + xquery + xml + xsl + xu + xqm + xq + + + + + UTTypeConformsTo + + public.css + dyn.ah62d4rv4ge81g25xsq + dyn.ah62d4rv4ge81g2pxsq + dyn.ah62d4rv4ge8023pxsq + + UTTypeDescription + CSS Source File + UTTypeIdentifier + org.css.source + UTTypeTagSpecification + + public.filename-extension + + css + less + sass + scss + + + + diff --git a/hl/highlight.patch b/hl/highlight.patch new file mode 100644 index 0000000..1a1bd1b --- /dev/null +++ b/hl/highlight.patch @@ -0,0 +1,46 @@ +diff --git a/filetypes.conf b/filetypes.conf +index 10cfd0c..a558ce2 100644 +--- a/filetypes.conf ++++ b/filetypes.conf +@@ -45,6 +45,7 @@ FileMapping = { + { Lang="coldfusion", Extensions={"cfc","cfm"} }, + { Lang="cobol", Extensions={"cob", "cbl"} }, + { Lang="crystal", Extensions={"cr"} }, ++ { Lang="css", Extensions={"css", "less", "sass", "scss"} }, + { Lang="conf", Extensions={"anacrontab"} }, + { Lang="delphi", Extensions={"pas", "dpr"} }, + { Lang="diff", Extensions={"patch"} }, +@@ -73,7 +74,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}\"