Fixed regular expressions in Syntax file.
[midnight-commander.git] / misc / syntax / Syntax
blob4ef9fa496cf0fd4340cd827aefe81db9ff235f5c
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))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
41 include sh.syntax
43 file ..\*\\.(pl|PL|pm|PM)$ 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|Kbuild)$ Makefile
68 include makefile.syntax
70 file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
71 include pascal.syntax
73 file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
74 include ada95.syntax
76 file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
77 include tcl.syntax
79 file ..\*\\.(sl|SL)$ S-Lang\sProgram
80 include slang.syntax
82 file ..\*\\.tex$ LaTeX\s2.09\sDocument
83 include latex.syntax
85 file ..\*\\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
86 include texinfo.syntax
88 file ..\*\\.c$ C\sProgram
89 include c.syntax
91 file ..\*\\.([hC]|CC|cxx|cc|cpp|CPP|CXX|hxx|hh|hpp|HPP|h\\.in)$ C/C\+\+\sProgram
92 include cxx.syntax
94 file ..\*\\.d$ D\sProgram
95 include d.syntax
97 file ..\*\\.[fF]$ Fortran\sProgram
98 include fortran.syntax
100 file ..\*\\.[fF]9[05]$ Freeform\sFortran\sProgram
101 include f90.syntax
103 file ..\*\\.i$ SWIG\sSource
104 include swig.syntax
106 file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
107 include php.syntax
109 file ..\*\\.ij[xs]$ J\sFile
110 include j.syntax
112 file ..\*\\.(java|JAVA|Java|jav|groovy|GROOVY|Groovy)$ Java\sProgram
113 include java.syntax
115 file ..\*\\.(properties|config) Java\sFile
116 include properties.syntax
118 file ..\*\\.(cs|CS)$ C\#\sProgram
119 include cs.syntax
121 file ..\*\\.(js|JS)$ JavaScript\sProgram
122 include js.syntax
124 file ..\*\\.(as|AS)$ ActionScript\sProgram
125 include as.syntax
127 file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
128 include aspx.syntax
130 file ..\*\\.st$ SmallTalk\sProgram
131 include smalltalk.syntax
133 file ..\*\\.(lisp|lsp|el|cl)$ Lisp\sProgram
134 include lisp.syntax
136 file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
137 include ml.syntax
139 file ..\*\\.m$ Matlab\sor\sOctave\sFile
140 include octave.syntax
142 file ..\*\\.(sql|SQL)$ SQL\sProgram
143 include sql.syntax
145 file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
146 include spec.syntax
148 file ..\*\\.repo$ YUM\sRepo\sFile
149 include yum-repo.syntax
151 file ..\*\\.(awk)$ AWK\sFile
152 include awk.syntax
154 file ..\*\\.(css|qss|CSS|QSS)$ CSS\sFile
155 include css.syntax
157 file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
158 include changelog.syntax
160 file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
161 include m4.syntax
163 file ..\*\\.(bat|cmd)$ DOS\sBatch
164 include dos.syntax
166 file ..\*\\.(po|pot|pox)$ PO\sFile
167 include po.syntax
169 file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
170 include assembler.syntax
172 file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
173 include povray.syntax
175 file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
176 include ebuild.syntax
178 file ..\*\\.([lL][uU][aA])$ LUA\sProgram ^#!.*/lua
179 include lua.syntax
181 file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
182 include idl.syntax
184 file ..\*\\.([iI][nN][iI])$ INI\sFile
185 include ini.syntax
187 file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
188 include mail.syntax
190 file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
191 include procmail.syntax
193 file sources.list$ sources\slist
194 include debian-sources-list.syntax
196 file control$ Debian\scontrol\sfile
197 include debian-control.syntax
199 file (rules|rocks)$ Debian\srules
200 include makefile.syntax
202 file .\*changelog$ Debian\schangelog\sfile
203 include debian-changelog.syntax
205 file changelog.Debian$ Debian\schangelog\sfile
206 include debian-changelog.syntax
208 file .\*\\.dsc$ Debian\sdescriptiom\sfile
209 include debian-description.syntax
211 file ..\*\\.([hH][sS][cC]?)$ Haskell\sprogram
212 include haskell.syntax
214 file ..\*\\.([cC][aA][bB][aA][lL])$ Cabal\sconfig\sfile
215 include cabal.syntax
217 file ..\*\\.(n|N)$ Nemerle\sProgram
218 include nemerle.syntax
220 file ..\*\\.(v|V)$ Verilog\sDevice\sDescription
221 include verilog.syntax
223 file ..\*\\.(hdl|vhd|vdhl|HDL|VHD|VHDL)$ VHDL\sDevice\sDescription
224 include vhdl.syntax
226 file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
227 include erlang.syntax
229 file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
230 include erlang.syntax
232 file .\*named.conf$ Bind9\sconfiguration
233 include named.syntax
235 file .\*\\.strace$ Strace\sdebug\soutput
236 include strace.syntax
238 file PKGBUILD$ Arch\spackage\sbuild\sscript
239 include PKGBUILD.syntax
241 file \\.install$ Arch\spackage\sinstall\sscript
242 include sh.syntax
244 file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
245 include yxx.syntax
247 file .\* unknown
248 include unknown.syntax