Ticket #2896: support syntax highlighting for makefile with .mak extension.
[midnight-commander.git] / misc / syntax / Syntax.in
blob49826f92a459b628d42e55835c93bb177b416235
1 # This file describes which highlighting scheme is applied to a particular
2 # file in mcedit.
4 # Each entry consists of two lines: a "file" specification and the
5 # corresponding highlighting definition ("include"). A file specification
6 # can have two or three fields, each separated by white-space characters.
8 # The first field is a regular expression that is matched against the file
9 # name. The second field is a description of the file type and is
10 # currently unused. The third (optional) field is a regular expression
11 # that is matched against the first line of the file. The first entry
12 # that matches wins, that is, all the entries below are ignored.
14 # Certain characters must be quoted in these fields. These are space (\s),
15 # tabs (\t), backslashes(\\), plus (\+) and asterisk (\*). Braces {} and
16 # brackets [] must not be quoted in this file. However, they have a special
17 # meaning when used in the actual syntax definitions.
19 # You can use the following colors in the syntax highlighting files:
20 # black, blue, brightblue, brightcyan, brightgreen, brightmagenta,
21 # brightred, brown, cyan, gray, green, lightgray, magenta, red, white,
22 # yellow
25 file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s
26 include syntax.syntax
28 file filehighlight.ini$ File\sHighlighting\sdefinitions ^#\sfile\shighlight\srules\sversion\s
29 include filehighlight.syntax
31 file ..\*\\.(e)$ Eiffel\sSource\sFile
32 include eiffel.syntax
34 file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s
35 include diff.syntax
37 file ..\*\\.lsm$ LSM\sFile
38 include lsm.syntax
40 file .\*(bash_completion|profile|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bashrc|profile|zlogin|zlogout|zprofile|zshenv|zshrc))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
41 include sh.syntax
43 file ..\*\\.(pl|PL|pm|PM|psgi|PSGI)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
44 include perl.syntax
46 file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
47 include python.syntax
49 file ..\*\\.(pyx|pxd|pxi)$ Cython\sor\sPyrex\sProgram
50 include cython.syntax
52 file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
53 include ruby.syntax
55 file ..\*\\.(man|[0-9n]|[0-9](x|ncurses|ssl|p|pm|menu|form|vga|t|td))$ NROFF\sSource
56 include nroff.syntax
58 file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile
59 include html.syntax
61 file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
62 include xml.syntax
64 file ..\*\\.(tt|TT)$ Template::Toolkit\sFile
65 include tt.syntax
67 file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile
68 include makefile.syntax
70 file CMakeLists.txt$ CMake
71 include cmake.syntax
73 file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
74 include pascal.syntax
76 file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
77 include ada95.syntax
79 file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
80 include tcl.syntax
82 file ..\*\\.(sl|SL)$ S-Lang\sProgram
83 include slang.syntax
85 file ..\*\\.tex$ LaTeX\s2.09\sDocument
86 include latex.syntax
88 file ..\*\\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
89 include texinfo.syntax
91 file ..\*\\.c$ C\sProgram
92 include c.syntax
94 file ..\*\\.([hC]|CC|cxx|cc|cpp|CPP|CXX|hxx|hh|hpp|HPP|h\\.in)$ C/C\+\+\sProgram
95 include cxx.syntax
97 file ..\*\\.d$ D\sProgram
98 include d.syntax
100 file ..\*\\.[fF]$ Fortran\sProgram
101 include fortran.syntax
103 file ..\*\\.[fF]9[05]$ Freeform\sFortran\sProgram
104 include f90.syntax
106 file ..\*\\.i$ SWIG\sSource
107 include swig.syntax
109 file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
110 include php.syntax
112 file ..\*\\.ij[xs]$ J\sFile
113 include j.syntax
115 file ..\*\\.(java|JAVA|Java|jav|groovy|GROOVY|Groovy)$ Java\sProgram
116 include java.syntax
118 file ..\*\\.(properties|config) Java\sFile
119 include properties.syntax
121 file ..\*\\.(cs|CS)$ C\#\sProgram
122 include cs.syntax
124 file ..\*\\.(js|JS)$ JavaScript\sProgram
125 include js.syntax
127 file ..\*\\.(as|AS)$ ActionScript\sProgram
128 include as.syntax
130 file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
131 include aspx.syntax
133 file ..\*\\.st$ SmallTalk\sProgram
134 include smalltalk.syntax
136 file ..\*\\.(lisp|lsp|el|cl)$ Lisp\sProgram
137 include lisp.syntax
139 file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
140 include ml.syntax
142 file ..\*\\.m$ Matlab\sor\sOctave\sFile
143 include octave.syntax
145 file ..\*\\.(sql|SQL)$ SQL\sProgram
146 include sql.syntax
148 file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
149 include spec.syntax
151 file ..\*\\.repo$ YUM\sRepo\sFile
152 include yum-repo.syntax
154 file ..\*\\.(awk)$ AWK\sFile
155 include awk.syntax
157 file ..\*\\.(css|qss|CSS|QSS)$ CSS\sFile
158 include css.syntax
160 file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
161 include changelog.syntax
163 file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
164 include m4.syntax
166 file ..\*\\.(bat|cmd)$ DOS\sBatch
167 include dos.syntax
169 file ..\*\\.(po|pot|pox)$ PO\sFile
170 include po.syntax
172 file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
173 include assembler.syntax
175 file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
176 include povray.syntax
178 file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
179 include ebuild.syntax
181 file ..\*\\.([lL][uU][aA])$ LUA\sProgram ^#!.*/lua
182 include lua.syntax
184 file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
185 include idl.syntax
187 file ..\*\\.([iI][nN][iI])$ INI\sFile
188 include ini.syntax
190 file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
191 include mail.syntax
193 file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
194 include procmail.syntax
196 file sources.list$ sources\slist
197 include debian-sources-list.syntax
199 file control$ Debian\scontrol\sfile
200 include debian-control.syntax
202 file (rules|rocks)$ Debian\srules
203 include makefile.syntax
205 file .\*changelog$ Debian\schangelog\sfile
206 include debian-changelog.syntax
208 file changelog.Debian$ Debian\schangelog\sfile
209 include debian-changelog.syntax
211 file .\*\\.dsc$ Debian\sdescriptiom\sfile
212 include debian-description.syntax
214 file ..\*\\.([hH][sS][cC]?)$ Haskell\sprogram
215 include haskell.syntax
217 file ..\*\\.([cC][aA][bB][aA][lL])$ Cabal\sconfig\sfile
218 include cabal.syntax
220 file ..\*\\.(n|N)$ Nemerle\sProgram
221 include nemerle.syntax
223 file ..\*\\.(v|V)$ Verilog\sDevice\sDescription
224 include verilog.syntax
226 file ..\*\\.(hdl|vhd|vdhl|HDL|VHD|VHDL)$ VHDL\sDevice\sDescription
227 include vhdl.syntax
229 file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
230 include erlang.syntax
232 file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
233 include erlang.syntax
235 file .\*named.conf$ Bind9\sconfiguration
236 include named.syntax
238 file .\*\\.strace$ Strace\sdebug\soutput
239 include strace.syntax
241 file PKGBUILD$ Arch\spackage\sbuild\sscript
242 include PKGBUILD.syntax
244 file \\.install$ Arch\spackage\sinstall\sscript
245 include sh.syntax
247 file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
248 include yxx.syntax
250 file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands
251 include dlink.syntax
253 file .\* unknown
254 include unknown.syntax