diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/highlight/filetypes.conf |
Initial commit
Diffstat (limited to 'support/highlight/filetypes.conf')
-rw-r--r-- | support/highlight/filetypes.conf | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/support/highlight/filetypes.conf b/support/highlight/filetypes.conf new file mode 100644 index 0000000000..a8a48c98d5 --- /dev/null +++ b/support/highlight/filetypes.conf @@ -0,0 +1,64 @@ +# Extension mapping +# ----------------- +# This file is a part of highlight, a free source code converter released +# under the GPL. +# Format: $ext(lang) = <extensions of source files> +# where lang is the file name of the language definition +# If there exists only one extension, you do not have to list it here. +# See README in the highlight directory for details. +# ---------- +# andre.simon1@gmx.de +# http:/www.andre-simon.de/ + +$ext(ada)=adb ads a gnad +$ext(ampl)=dat run +$ext(amtrix)=s4 s4t s4h hnd t4 +$ext(asm)=a51 29k 68s 68x x68 +$ext(asp)=asa +$ext(ats)=dats +$ext(aspect)=was wud +$ext(bat)=cmd +$ext(c)=c++ cpp cxx cc h hh hxx hpp +$ext(cfc)=cfm +$ext(cob)=cbl +$ext(diff)=patch +$ext(e)=se +$ext(erl)=hrl +$ext(euphoria)=ex exw exu ew eu +$ext(f77)=f for ftn +$ext(f90)=f95 +$ext(haskell)=hs +$ext(java)=groovy grv +$ext(lisp)=cl clisp el lsp sbcl +$ext(make)=mak mk +$ext(mib)=smi +$ext(ml)=mli ocaml +$ext(mod2)=mod def +$ext(mod3)=m3 i3 +$ext(oberon)=ooc +$ext(php)=php3 php4 php5 php6 +$ext(pike)=pmod +$ext(pl1)=ff fp fpp rpp sf sp spb spp sps wp wf wpp wps wpb bdy spe +$ext(pl)=perl cgi pm plx plex +$ext(progress)=p i w +$ext(rb)=ruby pp rjs +$ext(rexx)=rex rx the +$ext(sh)=bash ebuild eclass +$ext(smalltalk)=st gst sq +$ext(sybase)=sp +$ext(tcl)=wish itcl +$ext(tex)=sty cls +$ext(vb)=bas basic bi vbs +$ext(verilog)=v +$ext(html)=htm xhtml +$ext(xml)=sgm sgml nrm ent hdr hub dtd wml vxml wml tld svg xsl ecf jnlp +$ext(fs)=fsx + +# Input file recognition +# Highlight matches the first input line with the listed expressions. +# Format: $shebang(lang) = <regex> + +$shebang(sh)=^#!(\/usr)?(\/local)?\/bin\/(bash|t?csh|[akz]?sh) +$shebang(pl)=^#!(\/usr)?(\/local)?\/bin\/perl +$shebang(py)=^#!(\/usr)?(\/local)?\/bin\/python +$shebang(awk)=^#!(\/usr)?(\/local)?\/bin\/[gn]?awk |