summaryrefslogtreecommitdiff
path: root/support/highlight/filetypes.conf
blob: a8a48c98d513baf1898cee0b5d1b390888ddb5f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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