Ticket #3690: initial support of OpenCL syntax highlighting.
[midnight-commander.git] / misc / syntax / Syntax.in
blob0275b9abd55dfb6594f917aee2a53eccdeb3c89b
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|t)$ 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)$ CMake
71 include cmake.syntax
73 file ..\*\\.(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 ..\*\\.go$ GoLang\sProgram
104 include go.syntax
106 file ..\*\\.[fF]9[05]$ Freeform\sFortran\sProgram
107 include f90.syntax
109 file ..\*\\.i$ SWIG\sSource
110 include swig.syntax
112 file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
113 include php.syntax
115 file ..\*\\.ij[xs]$ J\sFile
116 include j.syntax
118 file ..\*\\.(java|JAVA|Java|jav|groovy|GROOVY|Groovy)$ Java\sProgram
119 include java.syntax
121 file ..\*\\.(properties|config)$ Java\sFile
122 include properties.syntax
124 file ..\*\\.(cs|CS)$ C\#\sProgram
125 include cs.syntax
127 file ..\*\\.(js|JS)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b
128 include js.syntax
130 file ..\*\\.(as|AS)$ ActionScript\sProgram
131 include as.syntax
133 file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
134 include aspx.syntax
136 file ..\*\\.st$ SmallTalk\sProgram
137 include smalltalk.syntax
139 file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
140 include lisp.syntax
142 file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
143 include ml.syntax
145 file ..\*\\.m$ Matlab\sor\sOctave\sFile
146 include octave.syntax
148 file ..\*\\.(sql|SQL)$ SQL\sProgram
149 include sql.syntax
151 file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
152 include spec.syntax
154 file ..\*\\.repo$ YUM\sRepo\sFile
155 include yum-repo.syntax
157 file ..\*\\.(awk)$ AWK\sFile
158 include awk.syntax
160 file ..\*\\.(css|qss|CSS|QSS)$ CSS\sFile
161 include css.syntax
163 file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
164 include changelog.syntax
166 file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
167 include m4.syntax
169 file ..\*\\.(bat|cmd)$ DOS\sBatch
170 include dos.syntax
172 file ..\*\\.(po|pot|pox)$ PO\sFile
173 include po.syntax
175 file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
176 include assembler.syntax
178 file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
179 include povray.syntax
181 file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
182 include ebuild.syntax
184 file ..\*\\.([lL][uU][aA])$ Lua\sProgram ^#!.\*[\s/]lua
185 include lua.syntax
187 file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
188 include idl.syntax
190 file ..\*\\.([iI][nN][iI])$ INI\sFile
191 include ini.syntax
193 file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
194 include mail.syntax
196 file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
197 include procmail.syntax
199 file sources.list$ sources\slist
200 include debian-sources-list.syntax
202 file control$ Debian\scontrol\sfile
203 include debian-control.syntax
205 file (rules|rocks)$ Debian\srules
206 include makefile.syntax
208 file .\*changelog$ Debian\schangelog\sfile
209 include debian-changelog.syntax
211 file changelog.Debian$ Debian\schangelog\sfile
212 include debian-changelog.syntax
214 file .\*\\.dsc$ Debian\sdescriptiom\sfile
215 include debian-description.syntax
217 file ..\*\\.([hH][sS][cC]?)$ Haskell\sprogram
218 include haskell.syntax
220 file ..\*\\.([cC][aA][bB][aA][lL])$ Cabal\sconfig\sfile
221 include cabal.syntax
223 file ..\*\\.(n|N)$ Nemerle\sProgram
224 include nemerle.syntax
226 file ..\*\\.(v|V)$ Verilog\sDevice\sDescription
227 include verilog.syntax
229 file ..\*\\.(hdl|vhd|vdhl|HDL|VHD|VHDL)$ VHDL\sDevice\sDescription
230 include vhdl.syntax
232 file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
233 include erlang.syntax
235 file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
236 include erlang.syntax
238 file .\*named.conf$ Bind9\sconfiguration
239 include named.syntax
241 file .\*\\.strace$ Strace\sdebug\soutput
242 include strace.syntax
244 file PKGBUILD$ Arch\spackage\sbuild\sscript
245 include PKGBUILD.syntax
247 file \\.install$ Arch\spackage\sinstall\sscript
248 include sh.syntax
250 file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
251 include yxx.syntax
253 file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands
254 include dlink.syntax
256 file ..\*\\.([jJ][aA][lL][tT]?)$ Jal\ssource
257 include jal.syntax
259 file ..\*\\.([lL][kK][rR])$ PIC\slinker\sscript\sfile
260 include lkr.syntax
262 file .\*\\.pp$ Puppet\smanifest\sfile
263 include puppet.syntax
265 file .\*\\.(glsl|vert|frag|geom)$ GLSL\sProgram
266 include glsl.syntax
268 file .\*\\.(cu|cuh)$ CUDA\sProgram
269 include cuda.syntax
271 file .\*\\.(cl)$ OpenCL\sProgram
272 include opencl.syntax
274 file .\* unknown
275 include unknown.syntax