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
|
|
|
|
|
2009-09-17 11:20:28 +04:00
|
|
|
file filehighlight.ini$ File\sHighlighting\sdefinitions ^#\sfile\shighlight\srules\sversion\s
|
|
|
|
include filehighlight.syntax
|
|
|
|
|
2004-10-16 16:59:26 +04:00
|
|
|
file ..\*\\.(e)$ Eiffel\sSource\sFile
|
|
|
|
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
|
|
|
|
|
2012-10-08 16:52:04 +04:00
|
|
|
file ..\*\\.(pl|PL|pm|PM|psgi|PSGI)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
|
2001-09-12 01:42:13 +04:00
|
|
|
include perl.syntax
|
|
|
|
|
2005-05-25 03:00:36 +04:00
|
|
|
file ..\*\\.(py|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
|
|
|
|
|
2005-05-25 03:00:36 +04:00
|
|
|
file ..\*\\.(rb|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
|
|
|
|
|
|
|
|
file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile
|
|
|
|
include html.syntax
|
|
|
|
|
2004-11-03 23:16:48 +03:00
|
|
|
file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
|
2002-01-11 08:51:32 +03:00
|
|
|
include xml.syntax
|
|
|
|
|
2009-11-03 20:50:37 +03:00
|
|
|
file ..\*\\.(tt|TT)$ Template::Toolkit\sFile
|
|
|
|
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
|
|
|
|
|
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
|
|
|
file ..\*\\.(pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
|
2001-09-12 01:42:13 +04:00
|
|
|
include pascal.syntax
|
|
|
|
|
|
|
|
file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
|
|
|
|
include ada95.syntax
|
|
|
|
|
2002-07-16 08:24:35 +04:00
|
|
|
file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
|
2002-07-10 23:56:11 +04:00
|
|
|
include tcl.syntax
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file ..\*\\.(sl|SL)$ S-Lang\sProgram
|
|
|
|
include slang.syntax
|
|
|
|
|
|
|
|
file ..\*\\.tex$ LaTeX\s2.09\sDocument
|
|
|
|
include latex.syntax
|
|
|
|
|
2012-04-29 17:34:04 +04:00
|
|
|
file ..\*\\.(texi|texinfo|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
|
|
|
|
|
2012-04-29 17:34:04 +04:00
|
|
|
file ..\*\\.([hC]|CC|cxx|cc|cpp|CPP|CXX|hxx|hh|hpp|HPP|h\\.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
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file ..\*\\.[fF]$ Fortran\sProgram
|
|
|
|
include fortran.syntax
|
|
|
|
|
2015-12-20 21:57:50 +03:00
|
|
|
file ..\*\\.go$ GoLang\sProgram
|
|
|
|
include go.syntax
|
|
|
|
|
2009-04-18 00:27:23 +04:00
|
|
|
file ..\*\\.[fF]9[05]$ Freeform\sFortran\sProgram
|
|
|
|
include f90.syntax
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file ..\*\\.i$ SWIG\sSource
|
|
|
|
include swig.syntax
|
|
|
|
|
|
|
|
file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
|
|
|
|
include php.syntax
|
|
|
|
|
2009-08-07 15:06:43 +04:00
|
|
|
file ..\*\\.ij[xs]$ J\sFile
|
|
|
|
include j.syntax
|
|
|
|
|
2009-03-23 14:03:44 +03:00
|
|
|
file ..\*\\.(java|JAVA|Java|jav|groovy|GROOVY|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
|
|
|
|
|
2003-02-28 00:15:44 +03:00
|
|
|
file ..\*\\.(cs|CS)$ C\#\sProgram
|
|
|
|
include cs.syntax
|
|
|
|
|
2016-07-14 06:35:59 +03:00
|
|
|
file ..\*\\.(js|JS)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b
|
2002-09-16 20:57:18 +04:00
|
|
|
include js.syntax
|
|
|
|
|
2011-12-28 18:17:07 +04:00
|
|
|
file ..\*\\.(as|AS)$ ActionScript\sProgram
|
|
|
|
include as.syntax
|
|
|
|
|
2004-10-27 17:29:51 +04:00
|
|
|
file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
|
|
|
|
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
|
|
|
|
|
2009-01-11 00:50:00 +03:00
|
|
|
file ..\*\\.(lisp|lsp|el|cl)$ Lisp\sProgram
|
2002-08-06 16:57:39 +04:00
|
|
|
include lisp.syntax
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
|
|
|
|
include ml.syntax
|
|
|
|
|
|
|
|
file ..\*\\.m$ Matlab\sor\sOctave\sFile
|
|
|
|
include octave.syntax
|
|
|
|
|
2002-07-18 20:13:28 +04:00
|
|
|
file ..\*\\.(sql|SQL)$ SQL\sProgram
|
|
|
|
include sql.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
|
|
|
|
2009-01-10 23:50:54 +03:00
|
|
|
file ..\*\\.(awk)$ AWK\sFile
|
|
|
|
include awk.syntax
|
|
|
|
|
2009-01-11 00:02:27 +03:00
|
|
|
file ..\*\\.(css|qss|CSS|QSS)$ CSS\sFile
|
|
|
|
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
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file ..\*\\.(po|pot|pox)$ PO\sFile
|
|
|
|
include po.syntax
|
|
|
|
|
2005-03-18 13:26:35 +03:00
|
|
|
file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
|
|
|
|
include assembler.syntax
|
2012-10-08 17:19:42 +04:00
|
|
|
|
2005-03-18 13:26:35 +03:00
|
|
|
file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
|
|
|
|
include povray.syntax
|
|
|
|
|
2009-01-10 19:55:35 +03:00
|
|
|
file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
|
|
|
|
include ebuild.syntax
|
|
|
|
|
2015-05-25 17:51:23 +03:00
|
|
|
file ..\*\\.([lL][uU][aA])$ Lua\sProgram ^#!.\*[\s/]lua
|
2005-03-19 20:41:32 +03:00
|
|
|
include lua.syntax
|
|
|
|
|
|
|
|
file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
|
|
|
|
include idl.syntax
|
|
|
|
|
2010-04-19 12:46:11 +04:00
|
|
|
file ..\*\\.([iI][nN][iI])$ INI\sFile
|
|
|
|
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
|
|
|
|
|
|
|
|
file .\*\\.dsc$ Debian\sdescriptiom\sfile
|
|
|
|
include debian-description.syntax
|
|
|
|
|
2009-01-10 16:35:31 +03:00
|
|
|
file ..\*\\.([hH][sS][cC]?)$ Haskell\sprogram
|
|
|
|
include haskell.syntax
|
|
|
|
|
2009-12-25 15:46:35 +03:00
|
|
|
file ..\*\\.([cC][aA][bB][aA][lL])$ Cabal\sconfig\sfile
|
|
|
|
include cabal.syntax
|
|
|
|
|
2009-01-10 23:43:05 +03:00
|
|
|
file ..\*\\.(n|N)$ Nemerle\sProgram
|
|
|
|
include nemerle.syntax
|
|
|
|
|
2009-09-06 21:21:45 +04:00
|
|
|
file ..\*\\.(v|V)$ Verilog\sDevice\sDescription
|
|
|
|
include verilog.syntax
|
|
|
|
|
2009-08-06 15:48:45 +04:00
|
|
|
file ..\*\\.(hdl|vhd|vdhl|HDL|VHD|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
|
|
|
|
|
2009-08-06 20:21:42 +04:00
|
|
|
file .\*\\.strace$ Strace\sdebug\soutput
|
|
|
|
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
|
|
|
|
|
2013-03-09 11:10:40 +04:00
|
|
|
file ..\*\\.([jJ][aA][lL][tT]?)$ Jal\ssource
|
|
|
|
include jal.syntax
|
|
|
|
|
|
|
|
file ..\*\\.([lL][kK][rR])$ PIC\slinker\sscript\sfile
|
|
|
|
include lkr.syntax
|
|
|
|
|
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
|
|
|
file .\*\\.pp$ Puppet\smanifest\sfile
|
|
|
|
include puppet.syntax
|
|
|
|
|
2016-08-29 21:01:09 +03:00
|
|
|
file .\*\\.(glsl|vert|frag|geom)$ GLSL\sProgram
|
|
|
|
include glsl.syntax
|
|
|
|
|
2016-09-08 14:00:29 +03:00
|
|
|
file .\*\\.(cu|cuh)$ CUDA\sProgram
|
|
|
|
include cuda.syntax
|
|
|
|
|
2001-09-12 01:42:13 +04:00
|
|
|
file .\* unknown
|
|
|
|
include unknown.syntax
|