2005-05-25 03:00:36 +04:00
|
|
|
# This file describes which highlighting scheme is applied to a particular
|
|
|
|
# file in mcedit.
|
|
|
|
#
|
|
|
|
# Each entry consists of two lines: a "file" specification and the
|
|
|
|
# corresponding highlighting definition ("include"). A file specification
|
|
|
|
# can have two or three fields, each separated by white-space characters.
|
|
|
|
#
|
|
|
|
# The first field is a regular expression that is matched against the file
|
|
|
|
# name. The second field is a description of the file type and is
|
|
|
|
# currently unused. The third (optional) field is a regular expression
|
|
|
|
# that is matched against the first line of the file. The first entry
|
|
|
|
# that matches wins, that is, all the entries below are ignored.
|
|
|
|
#
|
|
|
|
# Certain characters must be quoted in these fields. These are space (\s),
|
|
|
|
# tabs (\t), backslashes(\\), plus (\+) and asterisk (\*). Braces {} and
|
2005-07-20 15:14:15 +04:00
|
|
|
# brackets [] must not be quoted in this file. However, they have a special
|
|
|
|
# meaning when used in the actual syntax definitions.
|
2005-05-25 03:00:36 +04:00
|
|
|
#
|
|
|
|
# You can use the following colors in the syntax highlighting files:
|
|
|
|
# black, blue, brightblue, brightcyan, brightgreen, brightmagenta,
|
|
|
|
# brightred, brown, cyan, gray, green, lightgray, magenta, red, white,
|
2001-09-12 01:42:13 +04:00
|
|
|
# yellow
|
2005-05-25 03:00:36 +04:00
|
|
|
#
|
2001-09-12 01:42:13 +04:00
|
|
|
|
2003-02-05 12:43:37 +03:00
|
|
|
file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s
|
|
|
|
include syntax.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file filehighlight\\.ini$ File\sHighlighting\sdefinitions ^#\sfile\shighlight\srules\sversion\s
|
2009-09-17 11:20:28 +04:00
|
|
|
include filehighlight.syntax
|
|
|
|
|
2016-12-04 18:06:33 +03:00
|
|
|
file ..\*\\.e$ Eiffel\sSource\sFile
|
2004-10-16 16:59:26 +04:00
|
|
|
include eiffel.syntax
|
|
|
|
|
2002-09-13 23:49:44 +04:00
|
|
|
file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s
|
2001-09-12 01:42:13 +04:00
|
|
|
include diff.syntax
|
|
|
|
|
|
|
|
file ..\*\\.lsm$ LSM\sFile
|
|
|
|
include lsm.syntax
|
|
|
|
|
2013-03-09 10:51:43 +04:00
|
|
|
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
|
2001-09-12 01:42:13 +04:00
|
|
|
include sh.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.((?i:pl|pm|psgi)|t)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
|
2001-09-12 01:42:13 +04:00
|
|
|
include perl.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:py)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
|
2001-09-12 01:42:13 +04:00
|
|
|
include python.syntax
|
|
|
|
|
2010-12-04 15:48:02 +03:00
|
|
|
file ..\*\\.(pyx|pxd|pxi)$ Cython\sor\sPyrex\sProgram
|
|
|
|
include cython.syntax
|
|
|
|
|
2017-12-18 11:01:35 +03:00
|
|
|
file ..\*\\.(?i:rb)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
|
2003-05-15 02:30:02 +04:00
|
|
|
include ruby.syntax
|
|
|
|
|
2009-01-11 00:50:00 +03:00
|
|
|
file ..\*\\.(man|[0-9n]|[0-9](x|ncurses|ssl|p|pm|menu|form|vga|t|td))$ NROFF\sSource
|
2001-09-12 01:42:13 +04:00
|
|
|
include nroff.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:html?)$ HTML\sFile
|
2001-09-12 01:42:13 +04:00
|
|
|
include html.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.((?i:xml|xsd|xslt?|dtd)|qpg|qpg\\.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
|
2002-01-11 08:51:32 +03:00
|
|
|
include xml.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:tt)$ Template::Toolkit\sFile
|
2009-11-03 20:50:37 +03:00
|
|
|
include tt.syntax
|
|
|
|
|
2013-03-09 10:59:18 +04:00
|
|
|
file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile
|
2005-11-01 00:13:49 +03:00
|
|
|
include makefile.syntax
|
|
|
|
|
2014-07-25 09:33:44 +04:00
|
|
|
file (CMakeLists.txt|.\*.cmake)$ CMake
|
2012-07-27 10:06:32 +04:00
|
|
|
include cmake.syntax
|
|
|
|
|
2018-10-20 19:01:15 +03:00
|
|
|
file meson\\.build$ Meson\sBuild\sFile
|
2018-10-15 14:29:42 +03:00
|
|
|
include meson.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:pas|dpr|inc)$ Pascal\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include pascal.syntax
|
|
|
|
|
2017-06-20 09:40:02 +03:00
|
|
|
file ..\*\\.(?i:ad[abs])$ Ada\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include ada95.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:i?tcl)$ Tcl\sProgram
|
2002-07-10 23:56:11 +04:00
|
|
|
include tcl.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:sl)$ S-Lang\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include slang.syntax
|
|
|
|
|
|
|
|
file ..\*\\.tex$ LaTeX\s2.09\sDocument
|
|
|
|
include latex.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:texi|texinfo)$ Texinfo\sDocument
|
2001-09-12 01:42:13 +04:00
|
|
|
include texinfo.syntax
|
|
|
|
|
2009-01-05 14:43:41 +03:00
|
|
|
file ..\*\\.c$ C\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include c.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.([hC]|(?i:cxx|cc|cpp|hpp|hxx|hh)|[Hh]\\.in)$ C/C\+\+\sProgram
|
2009-01-05 14:43:41 +03:00
|
|
|
include cxx.syntax
|
|
|
|
|
2007-08-27 10:56:47 +04:00
|
|
|
file ..\*\\.d$ D\sProgram
|
|
|
|
include d.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:f)$ Fortran\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include fortran.syntax
|
|
|
|
|
2015-12-20 21:57:50 +03:00
|
|
|
file ..\*\\.go$ GoLang\sProgram
|
|
|
|
include go.syntax
|
|
|
|
|
2017-12-06 23:38:28 +03:00
|
|
|
file ..\*\\.rs$ Rust\sProgram
|
|
|
|
include rust.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:f)9[05]$ Freeform\sFortran\sProgram
|
2009-04-18 00:27:23 +04:00
|
|
|
include f90.syntax
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file ..\*\\.i$ SWIG\sSource
|
|
|
|
include swig.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:php)[0-9]?$ PHP\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include php.syntax
|
|
|
|
|
2009-08-07 15:06:43 +04:00
|
|
|
file ..\*\\.ij[xs]$ J\sFile
|
|
|
|
include j.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:java?|groovy)$ Java\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include java.syntax
|
|
|
|
|
2013-10-09 14:04:11 +04:00
|
|
|
file ..\*\\.(properties|config)$ Java\sFile
|
2009-10-27 18:30:34 +03:00
|
|
|
include properties.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:cs)$ C\#\sProgram
|
2003-02-28 00:15:44 +03:00
|
|
|
include cs.syntax
|
|
|
|
|
2017-12-23 22:09:17 +03:00
|
|
|
file ..\*\\.(?i:m?js)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b
|
2002-09-16 20:57:18 +04:00
|
|
|
include js.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:ts)$ TypeScript\sProgram
|
2017-03-17 17:14:37 +03:00
|
|
|
include ts.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:as)$ ActionScript\sProgram
|
2011-12-28 18:17:07 +04:00
|
|
|
include as.syntax
|
|
|
|
|
2017-06-20 09:40:02 +03:00
|
|
|
file ..\*\\.(as[achmp]x)$ ASPX\sFile
|
2004-10-27 17:29:51 +04:00
|
|
|
include aspx.syntax
|
|
|
|
|
2002-09-16 20:57:18 +04:00
|
|
|
file ..\*\\.st$ SmallTalk\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include smalltalk.syntax
|
|
|
|
|
2016-09-21 12:27:49 +03:00
|
|
|
file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
|
2002-08-06 16:57:39 +04:00
|
|
|
include lisp.syntax
|
|
|
|
|
2017-06-20 09:40:02 +03:00
|
|
|
file ..\*\\.(ml[ilpy]?)$ ML\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include ml.syntax
|
|
|
|
|
|
|
|
file ..\*\\.m$ Matlab\sor\sOctave\sFile
|
|
|
|
include octave.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:sql)$ SQL\sProgram
|
2002-07-18 20:13:28 +04:00
|
|
|
include sql.syntax
|
|
|
|
|
2017-06-21 10:42:06 +03:00
|
|
|
file ..\*\\.(?i:hql)$ HiveQL\sProgram
|
2017-06-14 19:50:31 +03:00
|
|
|
include hive.syntax
|
|
|
|
|
2012-04-29 17:34:04 +04:00
|
|
|
file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
|
2002-08-26 08:38:43 +04:00
|
|
|
include spec.syntax
|
|
|
|
|
2010-02-07 14:12:23 +03:00
|
|
|
file ..\*\\.repo$ YUM\sRepo\sFile
|
2009-10-27 18:45:45 +03:00
|
|
|
include yum-repo.syntax
|
2009-08-30 18:14:54 +04:00
|
|
|
|
2016-12-04 18:06:33 +03:00
|
|
|
file ..\*\\.awk$ AWK\sFile
|
2009-01-10 23:50:54 +03:00
|
|
|
include awk.syntax
|
|
|
|
|
2017-06-20 09:40:02 +03:00
|
|
|
file ..\*\\.(?i:[cq]ss)$ CSS\sFile
|
2009-01-11 00:02:27 +03:00
|
|
|
include css.syntax
|
|
|
|
|
2002-07-18 23:33:27 +04:00
|
|
|
file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
|
2001-09-12 01:42:13 +04:00
|
|
|
include changelog.syntax
|
|
|
|
|
2002-09-19 19:47:49 +04:00
|
|
|
file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
|
|
|
|
include m4.syntax
|
|
|
|
|
2002-07-05 07:58:35 +04:00
|
|
|
file ..\*\\.(bat|cmd)$ DOS\sBatch
|
2002-06-25 05:04:08 +04:00
|
|
|
include dos.syntax
|
|
|
|
|
2018-10-20 19:16:04 +03:00
|
|
|
file ..\*\\.po[tx]?$ PO\sFile
|
2001-09-12 01:42:13 +04:00
|
|
|
include po.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:asm|s)$ ASM\sProgram
|
2005-03-18 13:26:35 +03:00
|
|
|
include assembler.syntax
|
2012-10-08 17:19:42 +04:00
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:pov)$ POV\sScript
|
2005-03-18 13:26:35 +03:00
|
|
|
include povray.syntax
|
|
|
|
|
2009-01-10 19:55:35 +03:00
|
|
|
file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
|
|
|
|
include ebuild.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:lua)$ Lua\sProgram ^#!.\*[\s/]lua
|
2005-03-19 20:41:32 +03:00
|
|
|
include lua.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:idl)$ CORBA\sIDL
|
2005-03-19 20:41:32 +03:00
|
|
|
include idl.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:ini)$ INI\sFile
|
2010-04-19 12:46:11 +04:00
|
|
|
include ini.syntax
|
|
|
|
|
2009-08-06 15:50:44 +04:00
|
|
|
file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
|
2001-09-12 01:42:13 +04:00
|
|
|
include mail.syntax
|
|
|
|
|
2012-04-29 17:34:04 +04:00
|
|
|
file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
|
2009-01-06 22:32:44 +03:00
|
|
|
include procmail.syntax
|
|
|
|
|
2009-01-06 22:24:30 +03:00
|
|
|
file sources.list$ sources\slist
|
|
|
|
include debian-sources-list.syntax
|
|
|
|
|
|
|
|
file control$ Debian\scontrol\sfile
|
|
|
|
include debian-control.syntax
|
|
|
|
|
|
|
|
file (rules|rocks)$ Debian\srules
|
|
|
|
include makefile.syntax
|
|
|
|
|
|
|
|
file .\*changelog$ Debian\schangelog\sfile
|
|
|
|
include debian-changelog.syntax
|
|
|
|
|
|
|
|
file changelog.Debian$ Debian\schangelog\sfile
|
|
|
|
include debian-changelog.syntax
|
|
|
|
|
2016-12-04 18:06:33 +03:00
|
|
|
file ..\*\\.dsc$ Debian\sdescriptiom\sfile
|
2009-01-06 22:24:30 +03:00
|
|
|
include debian-description.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:hsc?)$ Haskell\sprogram
|
2009-01-10 16:35:31 +03:00
|
|
|
include haskell.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:cabal)$ Cabal\sconfig\sfile
|
2009-12-25 15:46:35 +03:00
|
|
|
include cabal.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:n)$ Nemerle\sProgram
|
2009-01-10 23:43:05 +03:00
|
|
|
include nemerle.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:v)$ Verilog\sDevice\sDescription
|
2009-09-06 21:21:45 +04:00
|
|
|
include verilog.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:hdl|vhdl?)$ VHDL\sDevice\sDescription
|
2009-01-30 20:28:26 +03:00
|
|
|
include vhdl.syntax
|
|
|
|
|
2009-08-02 18:49:56 +04:00
|
|
|
file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
|
2009-07-15 21:09:44 +04:00
|
|
|
include erlang.syntax
|
|
|
|
|
2009-08-02 18:49:56 +04:00
|
|
|
file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
|
2009-07-15 21:09:44 +04:00
|
|
|
include erlang.syntax
|
|
|
|
|
2009-08-06 16:41:45 +04:00
|
|
|
file .\*named.conf$ Bind9\sconfiguration
|
|
|
|
include named.syntax
|
|
|
|
|
2016-12-04 18:06:33 +03:00
|
|
|
file ..\*\\.strace$ Strace\sdebug\soutput
|
2009-08-06 20:21:42 +04:00
|
|
|
include strace.syntax
|
|
|
|
|
2009-10-30 11:01:29 +03:00
|
|
|
file PKGBUILD$ Arch\spackage\sbuild\sscript
|
2009-09-22 12:11:37 +04:00
|
|
|
include PKGBUILD.syntax
|
|
|
|
|
2009-10-30 11:01:29 +03:00
|
|
|
file \\.install$ Arch\spackage\sinstall\sscript
|
2009-09-22 12:11:37 +04:00
|
|
|
include sh.syntax
|
|
|
|
|
2010-08-10 01:39:43 +04:00
|
|
|
file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
|
2009-09-26 22:40:12 +04:00
|
|
|
include yxx.syntax
|
|
|
|
|
2012-07-27 10:17:11 +04:00
|
|
|
file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands
|
|
|
|
include dlink.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:jalt?)$ Jal\ssource
|
2013-03-09 11:10:40 +04:00
|
|
|
include jal.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:lkr)$ PIC\slinker\sscript\sfile
|
2013-03-09 11:10:40 +04:00
|
|
|
include lkr.syntax
|
|
|
|
|
2016-12-04 18:06:33 +03:00
|
|
|
file ..\*\\.pp$ Puppet\smanifest\sfile
|
Ticket 3266: Add puppet manifest syntax support - use .pp extension (was used for Pascal highlighting)
Support for puppet manifest highlighting was kindly
provided by Sergey Zhuga, original is here:
https://github.com/scrill/puppet-syntax-mcedit
Mr. Zhuga agreed with inclusion in mainstream MC:
https://github.com/scrill/puppet-syntax-mcedit/issues/2
Reasons to favor puppet syntax over pascal for .pp files:
---------------------------------------------------------
I will not argue whether in 2014 pascal is still being used or not,
and to what extent. I would like to point out that whoever is using
any variation of pascal for any serious development, is probably not
using 'mcedit' as an IDE. Instead, this development activity is
probably situated in nice, fully-featured graphical IDE.
Platform wise, judging by the weekly download statistics of FreePascal
at SourceForge, at this moment more than 80% of all downloads are for
Windows environents. On the other hand Midnight Commander is Linux
based. Considering this in combination with speculation from the
previous paragraph, there seems to be only a small chance that 'mcedit'
is being used as an editor of choice for pascal development.
On the contrary, puppet currently certainly does have wider audience
amongst sysadmins, who regularly use Linux. Puppet master requires a
server (usually) and quite a few sysadmins edit files directly on
servers that act as puppet masters for puppet development
environments.
When accessing these servers remotely, mcedit comes very handy for
quick edits here and there. Also keep in mind that puppet files are
normally not very large. Therefore actual IDE would be an overkill and
'mcedit' does the job quite ok, but syntax highlighting would be
much appreciated.
To sum it up:
If we speculate about the *actual* usage of 'mcedit', I do believe that
a wider audience would benefit by having .pp files highlighted by
default with puppet syntax definition instead of pascal syntax
definition.
2014-09-04 06:44:19 +04:00
|
|
|
include puppet.syntax
|
|
|
|
|
2016-12-04 18:06:33 +03:00
|
|
|
file ..\*\\.(glsl|vert|frag|geom)$ GLSL\sProgram
|
2016-08-29 21:01:09 +03:00
|
|
|
include glsl.syntax
|
|
|
|
|
2018-10-20 19:16:04 +03:00
|
|
|
file ..\*\\.cuh?$ CUDA\sProgram
|
2016-09-08 14:00:29 +03:00
|
|
|
include cuda.syntax
|
|
|
|
|
2016-12-04 18:06:33 +03:00
|
|
|
file ..\*\\.cl$ OpenCL\sProgram
|
2016-09-20 11:20:30 +03:00
|
|
|
include opencl.syntax
|
|
|
|
|
2017-06-19 10:43:23 +03:00
|
|
|
file ..\*\\.(?i:ya?ml)$ YAML\sFile
|
2016-12-04 17:55:54 +03:00
|
|
|
include yaml.syntax
|
|
|
|
|
2017-01-25 12:14:23 +03:00
|
|
|
file .\*\\.osl$ OSL\sProgram
|
|
|
|
include osl.syntax
|
|
|
|
|
2017-01-29 09:51:34 +03:00
|
|
|
file .\*\\.([rR]|Rd|Rscript)$ R\sProgram
|
|
|
|
include r.syntax
|
|
|
|
|
2017-10-29 20:32:46 +03:00
|
|
|
file ..\*\\.(?i:md)$ Markdown
|
|
|
|
include markdown.syntax
|
|
|
|
|
2017-10-10 12:45:14 +03:00
|
|
|
file ..\*\\.proto$ Protobuf\sFile
|
|
|
|
include protobuf.syntax
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file .\* unknown
|
|
|
|
include unknown.syntax
|