Commit Graph

117 Commits

Author SHA1 Message Date
Sergey Sharybin
834c09a283 Ticket #3683: initial support of GLSL syntax highlighting.
This is an initial support of GLSL syntax highlight for mcedit.
Keyword and and built-in function lists are based on glsl-mode.el
from emacs (which is originally written by Xavier Decoret and
Jim Hourihan).

Supports GLSL 4.5.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-08-31 11:06:28 +03:00
Mooffie
b218a28a45 mcedit: syntax: associate node executables with JavaScript syntax.
Some distros name the binary 'nodejs', some 'node'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-07-29 09:32:04 +03:00
Yury V. Zaytsev
fea323e1ad Update ebuild.syntax to include new EAPI 6 keywords
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-05-08 18:42:43 +02:00
Konrad Twardowski
4aea217d68 MidnightCommander/mc#95: update Java syntax: add missing keywords: _ assert strictfp.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-05-07 16:19:02 +03:00
serpiph
b678d3b2fd Ticket #3618: update f90 syntax. 2016-03-16 09:36:26 +03:00
Andrew Borodin
8fc0e1d76d Ticket #2673: support LZIP compression.
Thanks Matias A. Fonzo <selk at dragora.org> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-28 16:45:36 +03:00
Phil Friderici
b4c550e23e Add Puppet v4 & stdlib keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-07 09:04:35 +03:00
Eugene San (eugenesan)
549efda171 mceditor: syntax: add golang
Based on http://go-lang.cat-v.org/text-editors/mcedit/
2016-01-01 17:44:26 +04:00
Sergej Pupykin
8e72b1e13f Update PKGBUILD.syntax according to latest pacman version.
Add msg, debug, validpgpkeys, changelog, checkdepends, epoch, buildflags, upx
and remove force keyword according to current PKGBUILD man.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-06-20 20:59:48 +03:00
Sergej Pupykin
20b90cbfea Tickt #3484: update PKGBUILD.syntax according to latest pacman version.
Remove [\s]* from patterns. Assume that PKGBUILD-specific variables
must start from linestart. (Usualy they do.)

[\s]* cause conflicts on 'install' keyword for example when install
command highlighted as PKGBUILD-specific variable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-06-20 20:59:32 +03:00
Mooffie
68849625cf Ticket #3471: improve Lua syntax highlighting.
* Support for "long" strings/comments.
* Fixed Syntax.in to recognize both "#!/path/to/lua"  and "#!/usr/bin/env lua".
* Fixed langauge name (it's "Lua", not "LUA").

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-06-18 21:17:40 +03:00
Bostjan Skufca
17dddbbfda 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.
2015-01-12 17:58:01 +03:00
Veres Lajos
8d4d8d275f A few typofixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Ulya Fokanova
6951e39590 Ticket #3216: improve CMake syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-25 09:33:44 +04:00
Yves Lavoie
0eb70f58d1 Ticket #3230: PHP.syntax improvement
Current php.syntax (Utopic 3:4.8.12-1) gets confused with embedded HTML or DOCTYPE statements with strings.
Here's a suggested patch to fix it.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-07-22 16:38:43 +03:00
tiandrey
b34e1d2988 From ticket #3057: Update for Syntax.in file
This patch fixes syntax highlighting for files in .config directory
(I was wondering why my rc.lua file in ~/.config/awesome is highlighted
as 'Java File' while in /etc/xdg/awesome it was highlighted correctly).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Veres Lajos
dfbb2c9430 Typo fixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:15:24 +04:00
Andrew Borodin
45d8b20ad9 --with-edit: rename to --with-internal-edit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-02 15:29:35 +03:00
infinitum
430e1f9d35 Ticket #2855: add syntax highlighting for JAL and LKR files.
The Jal is a programming language used in PIC microcontrollers.

The lkr files determines how the gplink program works. The gplink
is part of gputils and creates PIC microcontroller program.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 11:10:40 +04:00
Sergey Y. Afonin
e80abb1ad2 Ticket #2896: support syntax highlighting for makefile with .mak extension.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 10:59:18 +04:00
Polynomial-C
a317b62848 Ticket #2950: support of ZSH config files syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 10:51:43 +04:00
Serpiph
9400cd50d4 Ticket #2962: update Fortan syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-05 17:00:30 +04:00
Sergei Trofimovich
45b129dd72 ebuild.syntax: add 'epatch_user' keyword
Thanks to Alexei Goncharevich and Pavel Gluschenko

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-11-06 12:13:01 +03:00
Andrew Borodin
d27a4f86ea Ticket #2888: cleanups in master branch.
Check perl, python and ruby programs and substitute them in various files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
c2ba41cdfc Ticket #2912: add psgi extension to Perl syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-08 16:52:04 +04:00
Leonid Krivoshein
ed51e5830f Ticket #2649: dlink.syntax: syntax highlighting for D-Link switches command set.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 10:17:11 +04:00
Ralesk
cac767fc44 Ticket #2084: cmake.syntax: preliminary syntax file for CMakeLists.txt files.
It's nowhere near complete, but it's better than nothing.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 10:06:32 +04:00
nafraf
b69d41d127 Ticket #2542: assembler.syntax: x86 AMD64 registers highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 09:55:29 +04:00
Victor Homyakov
3a055b4d7c Ticket #1869: properties.syntax colors are difficult to read.
Syntax file properties.syntax used very dark color for keys (cyan is
almost invisible on default MC background), and bright color for
delimiters (yellow), which made highlighted file difficult to read.

Change keys color to yellow.
Change delimeters color to bright cyan.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-27 09:40:50 +04:00
Andrew Borodin
e281ca2890 Fixed regular expressions in Syntax file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-29 17:34:04 +04:00
Sergei Trofimovich
ea82ca42ed ebuild.syntax: added 'pushd' and 'popd' keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-01 01:21:35 +03:00
Sergei Trofimovich
539f92cd97 misc/ebuild.syntax: added 'REQUIRED_USE', '[[' and ']]' as keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-23 19:03:31 +03:00
Sergei Trofimovich
a742521198 misc/syntax/cabal.syntax: added some cabal-1.8+ keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-09 21:16:28 +03:00
idispatch
2862589aac Ticket #2708: Added ActionScript file syntax highlighting
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-28 17:18:04 +03:00
Sergei Trofimovich
a4fbaf95ff syntax/lua: highlight '\\' escape (and similar) properly
The following example breaks highlighting to the end of file:
    local a = "\\"
    local b = 1
    ...

Added escape handling for simplest cases both for
single-quoted and double-quoted literals:
    '\\', '\n' (and similar), '\d', '\dd', '\ddd'

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2011-11-16 08:44:33 +03:00
SZABÓ Gergely
0865031bea Lex/Flex sources (extension .l) handled by yxx.syntax. Yacc/Bison syntax completed with all symbols. 2011-10-31 23:09:19 +03:00
Slava Zanko
0138645541 Ticket 1551: Update GPL version from 2 to 3
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 14:08:34 +03:00
Mikhail S. Pobolovets
2b10373e02 Ticket #2531: wrong rules precedence
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2011-07-14 12:04:07 +03:00
Mikhail S. Pobolovets
ee001dd96f Added new keyword to Ruby syntax
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2011-07-12 11:45:41 +03:00
Slava Zanko
2712ec2ca8 Changes for respect new 'HARDLINK' highlight type.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-02-18 15:20:34 +02:00
Ilia Maslakov
8def8ec662 Ticket #2427 (cython syntax highlighting)
added rules for cython syntax highlighting

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 14:58:14 +00:00
Slava Zanko
fcc98371d6 Removed unneded utility mcmfmt
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Andrew Borodin
51f28528f6 Ticket #1424: install some files into /usr/share/mc instead of /etc/mc.
RPMLint shows the following warnings:
mc.i586: W: conffile-without-noreplace-flag /etc/mc/Syntax
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.lib
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.charsets

First step: install Syntax into /usr/share/mc instead of /etc/mc.
This also fixes the impossibility of editing of system-wide Syntax file
in mcedit under root (menu Options->Syntax file->System Wide).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Mikhail S. Pobolovets
dbf74727ca Ruby syntax fix
* added highlight for ruby symbols

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-13 09:54:14 +03:00
Mikhail S. Pobolovets
d9ac6384b5 Ruby syntax update
* fixed include? keyword
    * fixed $ in the end of regexps

Valid highlighting of regexps can't be done with syntaxcolor.
Ruby uses '/' to divide numbers and for defining regexps.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-12 20:57:40 +03:00
Mikhail S. Pobolovets
9cd7a04b54 CSS syntax update
* fixed some bugs
    * removed duplicates
    * added some new keywords

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-12 20:26:43 +03:00
Sergei Trofimovich
4abeb610fd misc/syntax/ebuild.syntax: added EGIT_PROJECT to list of known words
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2010-06-26 17:44:58 +03:00
Igor Zubkov
bbe8e8d40e Ticket #1446: Added highlighting for HTTPS URLs.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-06-25 00:05:06 +02:00
Yury V. Zaytsev
4ce950c225 Ticket #2127: updated file extension for "sh"
Removed spurious bash_userstuff from the regexp.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-05-05 16:24:14 +04:00
Slava Zanko
1eba5407ab Some fixies of ini.syntax (added default color)
also, misc/syntax/Makefile.am changed for install ini.syntax into system

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 16:43:12 +02:00
Karsten Hilbert
1243fc6fd7 Ticket #2126: DOS style INI files syntax
I am attaching a proposed syntax highlighting definition for
- gasp - DOS style INI files.

I'd love to set the

    option

part in

    option = value

to some other color, too, but didn't find the proper syntax
for that.

Karsten

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-05-04 16:43:12 +02:00
Michelle Konzack
b3315acf55 Ticket #2127: updated file extension for "sh"
I find it realy annoying, if I put something in my BaSH configs and have
NO syntax hilighting so I have changed the line in Syntax which now
coloriser my BaSH configs nicely...

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-04-25 14:45:44 +02:00
Mikhail S. Pobolovets
6f6ea1bc88 Normalized formating for syntax files
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-04-04 19:24:13 +03:00
Mikhail S. Pobolovets
5112cdc727 Asm syntax: redundant rules removed and some missed registers added
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-04-04 16:36:49 +03:00
Mikhail S. Pobolovets
ae517852b0 Merge branch 'master' of ssh://styx@midnight-commander.org:22/git/mc 2010-04-04 13:46:58 +03:00
Andrew Borodin
c8dae6fd8f Added extensions_case keyword in filehighlight.syntax file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 10:18:45 +04:00
Mikhail S. Pobolovets
e8ef170590 Merge branch 'master' of ssh://styx@midnight-commander.org:22/git/mc 2010-03-14 11:17:48 +02:00
Mikhail S. Pobolovets
a99dc516e6 Small update: two new keywords for cabal syntax 2010-03-09 16:25:21 +02:00
Mikhail S. Pobolovets
8c0cfebbc1 Syntax files normalization
* tabs are replaced with spaces
    * trailing spaces are removed
2010-03-05 20:37:48 +02:00
Mikhail S. Pobolovets
33b7a382ea Syntax files for case insensitive languages has been updated
* 'caseinsensitive' option is on
    * redunt rules are removed

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-03-05 18:07:07 +02:00
Mikhail S. Pobolovets
c330f876cf Ticket #2060: Cabal syntax update
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-03-04 19:27:22 +02:00
Mikhail S. Pobolovets
9537ff6fe0 Ticket #1770: added switch 'caseinsensitive' for syntax highlighting
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-03-04 18:42:58 +02:00
Benny Pedersen
110977b161 Ticket #2010: Missing \s in Syntax file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-07 14:12:23 +03:00
Andrew Borodin
8a97f22f30 Revert "Ticket #1987: added Cobol syntax highlighting."
This reverts commit a8d75fce1e.

The Cobol syntax description in misc/syntax/Syntax file
breaks highlighting of other syntaxes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-05 12:05:27 +00:00
Franz Wuerl
a8d75fce1e Ticket #1987: added Cobol syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 14:35:55 +00:00
Andrew Borodin
e53f22a4c0 Syntax highlighting: added .HPP extension to the list of C/C++ sources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-26 16:39:30 +00:00
Slava Zanko
630efbd59a Moved dir $(srcdir)/syntax into $(srcdir)/misc/syntax
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00