Ticket #3940: add Meson syntax highlighting.
[midnight-commander.git] / misc / syntax / Syntax.in
blob4bdaafebf48857de57ab6da8a44b01ceaf547238
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 ..\*\\.((?i:pl|pm|psgi)|t)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
44 include perl.syntax
46 file ..\*\\.(?i: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 ..\*\\.(?i: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 ..\*\\.(?i:html?)$ HTML\sFile
59 include html.syntax
61 file ..\*\\.((?i:xml|xsd|xslt?|dtd)|qpg|qpg\\.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
62 include xml.syntax
64 file ..\*\\.(?i: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 meson.build$ Meson\sBuild\sFile
74 include meson.syntax
76 file ..\*\\.(?i:pas|dpr|inc)$ Pascal\sProgram
77 include pascal.syntax
79 file ..\*\\.(?i:ad[abs])$ Ada\sProgram
80 include ada95.syntax
82 file ..\*\\.(?i:i?tcl)$ Tcl\sProgram
83 include tcl.syntax
85 file ..\*\\.(?i:sl)$ S-Lang\sProgram
86 include slang.syntax
88 file ..\*\\.tex$ LaTeX\s2.09\sDocument
89 include latex.syntax
91 file ..\*\\.(?i:texi|texinfo)$ Texinfo\sDocument
92 include texinfo.syntax
94 file ..\*\\.c$ C\sProgram
95 include c.syntax
97 file ..\*\\.([hC]|(?i:cxx|cc|cpp|hpp|hxx|hh)|[Hh]\\.in)$ C/C\+\+\sProgram
98 include cxx.syntax
100 file ..\*\\.d$ D\sProgram
101 include d.syntax
103 file ..\*\\.(?i:f)$ Fortran\sProgram
104 include fortran.syntax
106 file ..\*\\.go$ GoLang\sProgram
107 include go.syntax
109 file ..\*\\.rs$ Rust\sProgram
110 include rust.syntax
112 file ..\*\\.(?i:f)9[05]$ Freeform\sFortran\sProgram
113 include f90.syntax
115 file ..\*\\.i$ SWIG\sSource
116 include swig.syntax
118 file ..\*\\.(?i:php)[0-9]?$ PHP\sProgram
119 include php.syntax
121 file ..\*\\.ij[xs]$ J\sFile
122 include j.syntax
124 file ..\*\\.(?i:java?|groovy)$ Java\sProgram
125 include java.syntax
127 file ..\*\\.(properties|config)$ Java\sFile
128 include properties.syntax
130 file ..\*\\.(?i:cs)$ C\#\sProgram
131 include cs.syntax
133 file ..\*\\.(?i:m?js)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b
134 include js.syntax
136 file ..\*\\.(?i:ts)$ TypeScript\sProgram
137 include ts.syntax
139 file ..\*\\.(?i:as)$ ActionScript\sProgram
140 include as.syntax
142 file ..\*\\.(as[achmp]x)$ ASPX\sFile
143 include aspx.syntax
145 file ..\*\\.st$ SmallTalk\sProgram
146 include smalltalk.syntax
148 file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
149 include lisp.syntax
151 file ..\*\\.(ml[ilpy]?)$ ML\sProgram
152 include ml.syntax
154 file ..\*\\.m$ Matlab\sor\sOctave\sFile
155 include octave.syntax
157 file ..\*\\.(?i:sql)$ SQL\sProgram
158 include sql.syntax
160 file ..\*\\.(?i:hql)$ HiveQL\sProgram
161 include hive.syntax
163 file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
164 include spec.syntax
166 file ..\*\\.repo$ YUM\sRepo\sFile
167 include yum-repo.syntax
169 file ..\*\\.awk$ AWK\sFile
170 include awk.syntax
172 file ..\*\\.(?i:[cq]ss)$ CSS\sFile
173 include css.syntax
175 file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
176 include changelog.syntax
178 file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
179 include m4.syntax
181 file ..\*\\.(bat|cmd)$ DOS\sBatch
182 include dos.syntax
184 file ..\*\\.(po|pot|pox)$ PO\sFile
185 include po.syntax
187 file ..\*\\.(?i:asm|s)$ ASM\sProgram
188 include assembler.syntax
190 file ..\*\\.(?i:pov)$ POV\sScript
191 include povray.syntax
193 file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
194 include ebuild.syntax
196 file ..\*\\.(?i:lua)$ Lua\sProgram ^#!.\*[\s/]lua
197 include lua.syntax
199 file ..\*\\.(?i:idl)$ CORBA\sIDL
200 include idl.syntax
202 file ..\*\\.(?i:ini)$ INI\sFile
203 include ini.syntax
205 file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
206 include mail.syntax
208 file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
209 include procmail.syntax
211 file sources.list$ sources\slist
212 include debian-sources-list.syntax
214 file control$ Debian\scontrol\sfile
215 include debian-control.syntax
217 file (rules|rocks)$ Debian\srules
218 include makefile.syntax
220 file .\*changelog$ Debian\schangelog\sfile
221 include debian-changelog.syntax
223 file changelog.Debian$ Debian\schangelog\sfile
224 include debian-changelog.syntax
226 file ..\*\\.dsc$ Debian\sdescriptiom\sfile
227 include debian-description.syntax
229 file ..\*\\.(?i:hsc?)$ Haskell\sprogram
230 include haskell.syntax
232 file ..\*\\.(?i:cabal)$ Cabal\sconfig\sfile
233 include cabal.syntax
235 file ..\*\\.(?i:n)$ Nemerle\sProgram
236 include nemerle.syntax
238 file ..\*\\.(?i:v)$ Verilog\sDevice\sDescription
239 include verilog.syntax
241 file ..\*\\.(?i:hdl|vhdl?)$ VHDL\sDevice\sDescription
242 include vhdl.syntax
244 file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
245 include erlang.syntax
247 file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
248 include erlang.syntax
250 file .\*named.conf$ Bind9\sconfiguration
251 include named.syntax
253 file ..\*\\.strace$ Strace\sdebug\soutput
254 include strace.syntax
256 file PKGBUILD$ Arch\spackage\sbuild\sscript
257 include PKGBUILD.syntax
259 file \\.install$ Arch\spackage\sinstall\sscript
260 include sh.syntax
262 file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
263 include yxx.syntax
265 file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands
266 include dlink.syntax
268 file ..\*\\.(?i:jalt?)$ Jal\ssource
269 include jal.syntax
271 file ..\*\\.(?i:lkr)$ PIC\slinker\sscript\sfile
272 include lkr.syntax
274 file ..\*\\.pp$ Puppet\smanifest\sfile
275 include puppet.syntax
277 file ..\*\\.(glsl|vert|frag|geom)$ GLSL\sProgram
278 include glsl.syntax
280 file ..\*\\.(cu|cuh)$ CUDA\sProgram
281 include cuda.syntax
283 file ..\*\\.cl$ OpenCL\sProgram
284 include opencl.syntax
286 file ..\*\\.(?i:ya?ml)$ YAML\sFile
287 include yaml.syntax
289 file .\*\\.osl$ OSL\sProgram
290 include osl.syntax
292 file .\*\\.([rR]|Rd|Rscript)$ R\sProgram
293 include r.syntax
295 file ..\*\\.(?i:md)$ Markdown
296 include markdown.syntax
298 file ..\*\\.proto$ Protobuf\sFile
299 include protobuf.syntax
301 file .\* unknown
302 include unknown.syntax