Commit Graph

596 Commits

Author SHA1 Message Date
Andrew Borodin
e1c892a49f Ticket #4107: bind ctrl-i to the ChangePanel action.
After ef5f1fa3eb ctrl-i stopped working
on some terminals including native Linux console.

To fix this, add default binging ctrl-i shortcut to ChangePanel action.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-08-15 11:45:46 +03:00
Andrew Borodin
8b4386df83 Ticket #4120: draw shadows for dialog boxes and menus.
Thanks Aleš Janda <ales.janda@kyblsoft.cz> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-08-02 16:13:26 +03:00
Purdea Andrei
1f4b5ae396 Ticket #4098: syntax highlighting: support .ino files.
Add the .ino extension to the list of extensions recognized by the c++
syntax highlighter.

.ino is used by the Arduino IDE, and a number of other IDEs, and it's effectively
the same thing as a c++ source file, but with some added magic, such as auto-generated
function prototypes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-21 19:58:56 +03:00
Artem S. Tashkinov
9bb351508a Ticket #4045: clean up in video.sh handler.
RealPlayer is a proprietary application which can't be installed in most
distros and has long been abandoned.

gtv hasn't been developed since 2003.

xanim barely plays anything.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:45:28 +03:00
Vadim Kalinnikov
40fe047be0 Ticket #4086: improve archive support.
Support more binaries to view archive content:
  * lha: jlha, lhasa
  * arj: 7za
  * cab: 7za
  * zip; 7z
  * zipx: 7za
  * iso: 7za

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:31:45 +03:00
Andrew Borodin
9311136158 Ticket #4054: broken syntax highlighting for shell scripts.
Revert "Ticket #3981: sh.syntax: allow for indented 'function' highlighting."

This reverts commit 91d6d55baf.

The syntax highlighting of shell scripts in mcedit misbehaves around
matches of "function blabla()" inside literal quotes. It applies syntax
highlighting as if it was function definition in normal conditions (out
of literal quotes), breaking the colouring of whatever follows.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:13:37 +03:00
Andrey Brozhko
91e4d8150f Ticket #4088: mcedit: add Kotlin syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:06:04 +03:00
Purdea Andrei
f32614ae7f verilog syntax: clarify that also refers to systemverilog,
...and make sure it also takes .sv files as well.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:44:02 +03:00
Purdea Andrei
06f2c6093e verilog syntax: added some missing operators
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:42:10 +03:00
Purdea Andrei
281ba2a35e verilog syntax: reorganized and added missing compiler directives
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:42:02 +03:00
Purdea Andrei
81122ffcae verilog syntax: reorganized and added missing system tasks and system functions
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:41:50 +03:00
Purdea Andrei
32878bdd3d verilog syntax: added IEEE1800-2009 and 2012 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:41:19 +03:00
Purdea Andrei
6351c4bc49 verilog syntax: added IEEE1800-2005 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:41:12 +03:00
Purdea Andrei
0cdb39d76f verilog syntax: added IEEE1364-2005 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:40:56 +03:00
Purdea Andrei
b0927b0627 verilog syntax: added IEEE1364-2001 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:40:47 +03:00
Purdea Andrei
91fdf29635 verilog syntax: added missing ieee1364-1995 keywords
...and moved ieee1364-2001 keyword in separate section.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:40:25 +03:00
Purdea Andrei
2df64d7b9c Ticket #4087: verilog syntax: removing keyboards attribute, endattribute, strength
Keywords attribute, endattribute, strength are not a reserved keywords in any
verilog standard. I can find a few references to these saying that they
were reserved keywords in OVI LRM version 2.0 (a version of verilog
before it was standardized), but this LRM is not available. The OVI LRM
version 1.0 didn't include these keywords, and none of the IEEE standards
include these keywords. I also tried the syntax highlighter of two
commercial tools, and they don't show attribute/endattribute as keywords.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:38:46 +03:00
Andrew Borodin
5add59c8a0 Highlight *.cpio as archives.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
2532d62666 verilog.syntax: make preprocessor keywords sorted. 2020-05-17 18:48:18 +03:00
Andrew Borodin
946e8d4888 Ticket #212: implement keybindings for radiobuttons.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
e14d44c839 Ticket #3847: chattr command implementattion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-05 19:06:18 +03:00
alexbodn@gmail.com
61691ea3e8 Ticket #1987: mcedit: add Cobol syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-04 08:34:05 +03:00
Elijah Zarezky
ca7b13d658 Improvement of RPM spec syntax highlighting.
Add %dnl macro introduced in RPM-4.15.0.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-01 17:35:47 +03:00
Sergei Trofimovich
afb09f7cd7 Ticket #4070: misc/Makefile.am: install mc.lib only once.
Before the change mc.lib was installed twice due to being
in two _DATA variables:

dist_pkgdata_DATA = \
        mc.lib

pkgdata_DATA = \
        $(dist_pkgdata_DATA) \
        $(PKGDATA_OUT)

This causes occasional install failures when two parallel
`/usr/bin/install` calls race in installing the file:

$ make -j20 DESTDIR=/var/tmp/portage/app-misc/mc-4.8.24/image install
...
 /usr/lib/portage/python3.6/ebuild-helpers/xattr/install \
    -c -m 644 mc.lib '/var/tmp/portage/app-misc/mc-4.8.24/image/usr/share/mc'
 /usr/lib/portage/python3.6/ebuild-helpers/xattr/install \
    -c -m 644 mc.lib mc.charsets '/var/tmp/portage/app-misc/mc-4.8.24/image/usr/share/mc'
...
 /usr/bin/install: cannot create regular file
   '/var/tmp/portage/app-misc/mc-4.8.24/image/usr/share/mc/mc.lib': File exists

After the change mc.lib is present only in dist_pkgdata_DATA.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-07 09:58:55 +03:00
Andrew Borodin
f30b0d35d5 Skins: unify panel-related item names.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
dcd3a7e39e Skins: move items from [widget-common] section to [widget-panel] one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Vladislav Zavjalov
cc9b5faf08 Ticket #4062: mceditor: expand shebang regexp for tcl.syntax.
Add shebangs with wish É tclsh.

Original bugreport is https://bugzilla.altlinux.org/37545.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-15 18:24:32 +03:00
Marcel Pol
2720085877 Ticket #4061: add support for opus audio.
The following patch adds support for opus audio files.

The executable opusinfo is part of opus-tools package.
Xmms and play are able to play opus files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-11 21:12:44 +03:00
Grzegorz Szymaszek
aa2904eebc Ticket # 4060: escape backslashes in PHP single quote string.
In PHP strings delimited with single quotes, there are two characters
that can be escaped: \ and '. For example, the PHP string 'a\'b\\c\d'
could be printed as ‘a'b\c\d’.

Escaping quotes was already possible with the PHP syntax file. This
commit adds support for escaping backslashes. It fixes mcedit’s syntax
highlighting on PHP strings that end with \\ (like 'aaa\\').

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-08 19:45:59 +03:00
Mikhail Fursov
1639542801 julia256: a new dark skin with calm colors and good contrast.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-12-23 18:14:01 +03:00
Andrew Borodin
65bbf9f8e6 Ticket #4030: misc/ext.d/web.sh.in: view html: fallback to cat...
if none of browsers are installed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-12-15 12:53:20 +03:00
Andrew Borodin
c4264c58ae misc: install mc.charsets into $pkgdatadir again.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-12-15 12:53:20 +03:00
Grzegorz Szymaszek
abb7df9f26 Ticket #4041: mcedit: update Debian sources.list syntax highlighting.
Add support for many URI specifications (like tor+https) and options
(like arch).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-12-08 10:12:26 +03:00
Stanislav Brabec
96cf569e96 Ticket #4037: add new scriptlets to spec.syntax.
Add scriptlets %pretrans, %posttrans and %verifyscript to the RPM spec file syntax.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-11-30 18:19:04 +03:00
Vadim Illarionov
37fcb210f2 Ticket #4022: misc/syntax/Syntax.in: add .desktop file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-11-04 11:42:47 +03:00
Andrew Borodin
37f8927bfc misc/syntax/Syntax.in: join ini-base files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-11-04 11:36:55 +03:00
Grzegorz Szymaszek
36bcaef0cf Ticket #4018: add "https://" to Debian sources.list syntax.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-09-21 19:38:55 +03:00
Andrew Borodin
3c95e6d64c Ticket #4015: add new extensions for file highliht.
[temp]: part (partial files, e.g. used by many download managers)
[archive]: apk (android packages), deb (debian packages)
[media]: ts (MPEG-TS streams)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-09-14 11:34:08 +03:00
Enrico Weigelt, metux IT consult
d2f86e698e Fix .gitignore
autogen.sh generates a bunch of files aren't .gitignore'd yet.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-09-01 20:13:27 +03:00
jetpilot
19cc61cf04 Ticket #4010: inprove YAML syntax highlighting.
Add inlined data block highlighting.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-08-31 19:34:39 +03:00
Werner Lemberg
077947008d Ticket #4009: mc.menu: handle symbolic links to compressed archives.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-08-25 18:57:21 +03:00
Marc Ihm
e79391a0f8 Ticket #4005: add yabasic syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-08-17 10:14:44 +03:00
Andrew Borodin
2ed7abc3fe mceditor: support file history.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-08-10 09:45:27 +03:00
Andrew Borodin
f0c9e50f80 mcviewer: support file history. 2019-08-10 09:45:27 +03:00
Andrew Borodin
a4e36d079d WListbox: add Edit, View and Enter keynindings.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-08-10 09:45:27 +03:00
Ilia Maslakov
3e7b2c49dc Ticket #2733 (a simple list of recently edited files)
Based on patch by Filip Sefrna <fsefrna@gmail.com>
    added action 'EditorHistory' for call history dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2019-08-10 09:45:27 +03:00
Andrew Borodin
76a5f70f5b Ticket #3992: improve support of Windows 1251 encoding on Solaris.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-07-13 08:58:27 +03:00
cheese
4135eb6460 Ticket #3991: update RPM spec syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-10 21:18:21 +03:00
Ilia Maslakov
f5f78ea658 Ticket #212: implement keybinding for menu.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-09 12:06:10 +03:00
Lars Wendler
ee08fa9f56 Ticket #3988: mcedit: syntax: add many missing ebuild syntax variables and commands.
- Group commands coming from eclasses
- Add common Makefile variables

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-05-18 17:26:20 +03:00
Andrew Borodin
7ddd4e9bb4 Ticket #3452: mcviewer: implement temporary change of search direction.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 20:47:51 +03:00
TerraTech
91d6d55baf Ticket #3981: sh.syntax: allow for indented 'function' highlighting.
This will allow for the following:

  if want_foo; then
      function foobar() {
          echo "foo"
      }
  else
      function foobar() {
          echo "bar"
      }
  fi
  foobar

Signed-off-by: TerraTech <1118433+TerraTech@users.noreply.github.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:17:54 +03:00
Vadim Illarionov
61e390dfc7 Use ini.syntax for systemd cofiguration files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-11 11:40:53 +03:00
Vadim Illarionov
359129b524 Ticket #3975: expand syntax highlighting rules.
Expand file name regexp for sh.syntax.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-11 11:37:41 +03:00
simwin
7c5d4d337f Ticket #3973: add featured-plus skin.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-08 17:05:20 +03:00
Sergii Pylypenko
deceefab74 mcedit: fixed syntax highlighting bug in .c and .cxx syntax scripts
To reproduce, open this .c file in mcedit (remove backslashes):

/* this preprocessor macro is not colorized,
   when there is whitespace before '#' and the next line is not empty */
\  #if not_colorized
int code;

/* this preprocessor macro is colorized properly, the next line is empty */
\  #if colorized

int code2;

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-09 10:40:43 +03:00
legends2k
2181cabe6b mc.ext: add Markdown binding.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-01 20:19:33 +03:00
Andrew Borodin
6f562116cc Ticket 3965: mc.ext: fix include/ sections order.
include/ sections should be placed at the end of bindings.
Thanks legends2k for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-01 20:19:27 +03:00
Andrew Borodin
3ac46bf2b1 Ticket #3966: file highlighting updates.
.go, .s: highlight as source;
.m4v: highlighting as media.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-01 19:55:40 +03:00
Andreas Mohr
01f1206186 Ticket #3962: support Geeqie image viewer.
Use Geeqie (a fork of GQview) as main image viewer, fallback to GQview.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-26 16:31:38 +03:00
Andrew Borodin
5a2730ae8c misc/syntax/Syntax.in: simplify regex for PO and CUDA syntaxes. 2018-11-24 14:40:42 +03:00
Andrew Borodin
5ca9943cf3 misc/syntax/Syntax.in: fix regex for Meson syntax.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-11-24 14:40:42 +03:00
Anatoly Kitaykin
1182dbdd93 misc/ext.d/doc.sh.in: fix program name.
Reported: https://bugzilla.altlinux.org/show_bug.cgi?id=35506.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-11-24 14:40:42 +03:00
Vitold S
49945f40c8 Ticket #3940: add Meson syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-10-15 14:33:20 +03:00
Andrew Borodin
5f04962685 mcext/doc: improve open of documents in MS Office formats.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-08-19 17:20:28 +03:00
Andrew Borodin
feab399109 Ticket #3929: mc.ext: improve recognition of MS Office formats.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-08-19 17:00:55 +03:00
Andrew Borodin
1d19729690 Ticket #3926: clarify hadling of MS Word and Excel documents view.
Don't show error message for each not-installed program when view
documents in MS Word and Excel formats.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-07-21 18:06:38 +03:00
Artem S. Tashkinov
0075f36b69 Ticket #3919: use MPV as a fallback for mplayer -identify
mplayer is not currently actively developed and some people have long
switched to MPV - use it as a fallback for "mplayer -identify" command.

Also, give the user a hint about mplayer/mpv in case none of them is
installed.

Signed-off-by: Yury V. Zaytsev <yury.zaytsev@moneymeets.com>
2018-06-12 21:16:27 +02:00
Terra
c9fb0c33e3 Ticket #3920: php.syntax - highlight keyword 'null'
Signed-off-by: Yury V. Zaytsev <yury.zaytsev@moneymeets.com>
2018-06-12 21:04:53 +02:00
Andrey Shcheglov
f161d19038 mc.ext: allow Java class files to be viewed even if JAD isn't on PATH
Closes MidnightCommander/mc#134:

  * `file -b` prints class file version, which `javap` doesn't by default
  * `javap`'s stderr should be suppressed as it may print `_JAVA_OPTIONS`
     if this variable is set

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:47:38 +02:00
Dan Dascalescu
2eb7ef9e04 filehighlight: add JavaScript module support (closes MidnightCommander/mc#132)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:21:01 +02:00
Maxim Akristiniy
907ac30b49 mc.ext: add Excel xlsx file format (closes MidnightCommander/mc#135)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:14:09 +02:00
Sergey Naumov
729f6eef9c Ticket #3893: fix markdown.syntax that doesn't work well for complex files
* Asterisk and underscore contexts don't play well with lists or
  words containing underscores. And given that markdown files
  could contain not only ASCII text, it is better to be conservative
  in detecting contexts.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-05-09 18:12:42 +03:00
Adam Borowski
5eb9bd605e Ticket #3906: ZSTD support.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-03-19 15:00:23 +03:00
Andrew Borodin
566992da32 Ticket #1620: change file highlighting defaults.
Now file highlighting by extension is case insensitive by
default.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-02-18 12:05:05 +03:00
Yury V. Zaytsev
a778825d0e Ticket #3890: syntax - add mjs extension to JavaScript pattern
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-12-23 20:09:17 +01:00
Andrew Borodin
4fcc19b581 Syntax.in: fix pattern for Ruby program. 2017-12-18 11:01:35 +03:00
Igor Shaula
3a5da75181 Ticket #3884: mceditor: syntax: add rust.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-12-07 13:58:07 +03:00
Andrew Borodin
e1ee3a2465 Syntax.in: simplify pattern for HiveQL.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-11-17 16:01:30 +03:00
Sergey Naumov
aff3834dc3 Ticket #3868: syntax: add Protocol Buffers and gRPC support.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-10-29 20:35:32 +03:00
Grzegorz Szymaszek
26ecb44e1d Ticket #3864: initial support of Markdown syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-10-29 20:32:46 +03:00
Izzy
1046f489f1 syntax: add missing SQL keywords (closes MidnightCommander/mc#129)
Signed-off-by: Yury V. Zaytsev <yury.zaytsev@moneymeets.com>
2017-07-30 21:20:00 +02:00
Izzy
f397f9b0de syntax: add missing PHP keywords (closes MidnightCommander/mc#129)
Signed-off-by: Yury V. Zaytsev <yury.zaytsev@moneymeets.com>
2017-07-30 21:18:17 +02:00
Yuriy M. Kaminskiy
e081d55616 Ticket #3840: (de)compression from menu broken due to bad quoting
If the file is not compressed and DECOMP is empty, it should be replaced
by *nothing*, not an empty argument. Broken in the following commit:

  becc0d01d0

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-07-13 20:02:38 +02:00
Artem S. Tashkinov
75674446e4 Ticket #3834: add ac3, aac, dts and m4a media extensions
Closes MidnightCommander/mc#128:

  * https://en.wikipedia.org/wiki/Advanced_Audio_Coding
  * https://en.wikipedia.org/wiki/M4A (used extensively by Apple)
  * https://en.wikipedia.org/wiki/Dolby_AC3
  * https://en.wikipedia.org/wiki/DTS_(sound_system)

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-07-09 10:16:17 +02:00
Andrew Borodin
f3187c8930 Syntax.in: simplify some patterns.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-06-21 10:31:32 +03:00
Andrew Borodin
c8b99bb083 Ticket #3829: Syntax.in: simplify case insensitive patterns.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-06-21 10:31:32 +03:00
Mike L
f603cd3e16 Ticket #3828: syntax: Apache Hive query language
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-06-16 13:46:52 +02:00
Andrew Borodin
ff1510de1f File panel: unification of terminology.
Use 'list(ing) format' instead of 'list(ing) type' and 'list(ing) mode'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-04-24 16:16:27 +03:00
Andrew Borodin
b56a77e02f Refactoring: handle panel listing mode switch in the panel level
...instead of top level.

Rename and move main/PanelListingSwitch keybind to panel/ListingSwitch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-04-24 16:16:27 +03:00
Sergei Epiphanov
fd3d4e2784 Ticket #3804: syntax: update Ada 95 keywords (ALT Linux #33330)
Signed-off-by: Sergey Y. Afonin <asy@altlinux.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-04-04 19:29:46 +02:00
Yury V. Zaytsev
7e57d6e776 maint: add ts.syntax to build system / tarballs
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-19 10:51:27 +01:00
Oleksandr Sidko
b1e16edd5a Ticket #3794: syntax: TypeScript support (closes MidnightCommander/mc#122)
Signed-off-by: Oleksandr Sidko <mortiy@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-19 10:40:07 +01:00
Oleksandr Sidko
834e07fd57 Ticket #3793: syntax: javascript - ES2015 support (closes MidnightCommander/mc#121)
Signed-off-by: Oleksandr Sidko <mortiy@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-16 17:09:00 +01:00
Yury V. Zaytsev
91b69d2652 Ticket #3782: highlight txz extension as archive like tgz, etc.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-06 21:44:26 +01:00
Egmont Koblinger
20a2b6081c Ticket #3724: add true color skins: "Four seasons"
Signed-off-by: Egmont Koblinger <egmont@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-16 22:09:30 +01:00
Alexey Shipunov
a4f05e5123 Initial support of R syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-29 09:54:24 +03:00
Andrew Borodin
0a28622921 misc/syntax/Makefile.am: fix sort order.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-29 09:48:37 +03:00
Sergey Sharybin
d02abd003a Ticket #3762: initial support of OpenShadingLanguage highlighting.
Based on C syntax with some extra keywords gathered from OSL's lexer rules.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-29 09:40:31 +03:00
Oleksii Tsvietnov
91c96494f2 skins: add yet another dark theme (YADT) by vorakl (MidnightCommander/mc#115)
Signed-off-by: Oleksii Tsvietnov <me@vorakl.name>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-01-24 20:49:40 +01:00
Mooffie
2e078ff774 mcedit: syntax.syntax: highlight comments preceded by spaces.
Comments don't have to start at the 1st column. We add support for this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin
079d989877 misc/syntax/Syntax.in: fix patterns.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Mooffie
54a0ccecaa Ticket #3293: YAML syntax fixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-06 11:19:16 +03:00
Roman Belda
055a8c6a4f Ticket #3293: add YAML syntax highlighting. 2016-12-04 17:56:27 +03:00
Andrew Borodin
76849655ba Revert "Ticket #3724: add true color skins: "Four seasons"."
This reverts commit 7b9d78d28c.
2016-12-04 13:02:19 +03:00
Egmont Koblinger
7b9d78d28c Ticket #3724: add true color skins: "Four seasons".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 10:41:56 +03:00
Andrew Borodin
0701bca6e3 Ticket #3710: don't parse "window-state-char" and "window-close-char" as colors.
The bug: in skin files, the "[editor]" section's "window-state-char" and
"window-close-char" (whose values, as the name implies, are single
characters) are parsed as color fg+bg+attr, and an ncurses/slang
colorpair is allocated for each.

The bug fix: move "window-state-char" and "window-close-char" keys from
"[editor]" section to "[widget-editor]" one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 10:01:57 +03:00
Sergey Sharybin
0fe1eca733 Ticket #3690: initial support of OpenCL syntax highlighting.
Based on opencl-mode from Emacs with some own tweaks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 14:30:20 +03:00
Sergey Sharybin
97430c1fa4 Ticket #3691: mcedit: disassociate .cl file extension from LISP syntax.
According to the LISP users this file extension can only be
seen in old projects and nowadays it's much more common in
the computer graphics applications for the OpenCL programs.

This is a part of work related on adding OpenCL syntax highlight
to mcedit. See tocket #3690 for the details.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 14:26:01 +03:00
Egmont Koblinger
0cceb99c2e Ticket #3711: support color aliases in skin files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 10:52:37 +03:00
Yury V. Zaytsev
f3509db2bc syntax: highlight *.t (Perl test) files as Perl scripts
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-11-13 16:22:02 +01:00
Lars Wendler
2c576fad94 mcedit: syntax: update ebuild.syntax to include new EAPI 6 keywords
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-08 10:44:37 +02:00
Raymond Jennings
6b656100ac mcedit: syntax: fix mismatched highlighting for <{o,u}l> HTML tags
Signed-off-by: Raymond Jennings <shentino@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-07 22:38:07 +02:00
Andrew Borodin
ef5f1fa3eb Ticket #3672: allow rebind TAB key to change panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-03 15:21:57 +03:00
Sergey Sharybin
9c3fe04114 Ticket #3686: initial support of CUDA syntax highlighting.
Based on existing cxx.syntax file with some extra keywords added.

Colors could be tweaked a bit still, and perhaps list of keywords
and built-in types could be extended further, but it should be a
good starting point already.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:13:51 +03:00
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
4a0f265d95 Ticket #3075: (midnight_callback): make alt-enter, ctrl-enter, ctrl-shift-enter bindable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-08-04 10:23:29 +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
Yury V. Zaytsev
f51c0f3e7c filehighlight: add more common file formats
* odp / ods / odt: ODF documents
  * xls: not a database, consistency with xlsx
  * rb: Ruby program
  * xq: XQuery program
  * svg: Scalable Vector Graphics format
  * tiff: alternative extension for Tagged Image File Format
  * xcf: GIMP format

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-05-07 16:28:47 +03: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
Pavol Rusnak
7c7673d8f0 MidnightCommander/mc#89: add webp extension to file highlight and extension files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-05-07 16:19:02 +03:00
Andreas Mohr
284003e838 Ticket #3609: install mc.keymap as a symlink to mc.default.keymap
Save space and fix rpmlint warning found by OBS Framework
(build.opensuse.org).

mc.x86_64: W: files-duplicate /etc/mc/mc.keymap /etc/mc/mc.default.keymap

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-05-01 11:20:07 +02:00
Andrew Borodin
438f1498b3 mc.ext: add View action for initrd.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-28 09:05:29 +03:00
Sergey Y. Afonin
0cb1a3c9f3 mc.ext: fix regular expression for initrd.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-28 09:05:29 +03:00
serpiph
b678d3b2fd Ticket #3618: update f90 syntax. 2016-03-16 09:36:26 +03:00
Andreas Mohr
65421dcac7 Ticket #3568: fix image view info for JPEG files
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-08 21:47:50 +01:00
Yury V. Zaytsev
fff8b4dd7a Delete outdated and unmaintained mc.menu.sr.in
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-08 20:43:05 +01:00
Andreas Mohr
becc0d01d0 Ticket #2947: mc.menu: quoting and whitespace fixes
`$*` must be quoted unless it's a command
`%*` must not quoted (already quoted)

1) quoting fixes
2) indentation fixes
3) `while` replaced by `for` loops
4) header comment (taken from source code)

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-08 20:43:05 +01:00
Andreas Mohr
7da330ce77 Ticket #3586: mcedit - fix "Lower case selection" command in User Menu
Fix bug #3586 reported by rimf (plus minor tweak remove unneeded
cat/pipe command)

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-04 09:23:36 +03:00
Andrew Borodin
88b489ee33 filehighlight.ini: externsions are alphabetically sorted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
b3f4fc2212 Ticket 3547: code cleanup bebore 4.8.16 release.
filehighlight.ini: add lzma extension.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Xander Ziiryanoff
9296f0bd6d Ticket #3574: fix XDG silent open in background.
This bug was introduced in 0516ccd325.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-14 08:45:58 +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
Yury V. Zaytsev
466a6f71bf Ticket #3115: add mc.ext patterns for initramfs / initrd (Red Hat and Debian)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-01-10 16:59:47 +01:00
Yury V. Zaytsev
c27c5cf37d Ticket #3578: fix mc.ext patterns for different makefiles
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-01-10 16:59:47 +01: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
Holger Bruenjes
d0435fcfee Ticket #3443: patchfs extfs: support xz compression.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-03 11:21:28 +03:00
Ranjan1018
7dc7eb3d14 Ticket #3509: fix not portable invocation of man.
mc called "man -l" to display man page files, which is not correct on OS X,
FreeBSD, etc, so patch out the -l to make it work.

Original patch: https://svnweb.freebsd.org/ports/head/misc/mc/files/patch-misc__ext.d__text.sh.in?annotate=382039&pathrev=382039

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-03 08:36:55 +03:00
Andreas Mohr
b5ccd12d32 Ticket #3523: support lz4 compress format.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-02 14:02:08 +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
karlovskiy
0516ccd325 xdg silent open in background
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03: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
Andrew Borodin
0add36df23 Ticket #3422: recognize .gmo files as well as .mo ones.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 18:51:50 +03:00
Egmont Koblinger
da149a0ae6 Ticket #3246: misc/mcedit.menu.in: better grammar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:17:10 +03:00
Egmont Koblinger
89d2db5ca3 Ticket #3065: support of italic text.
Italic text is supported by S-Lang since pre2.3.0-107 and NCurses since 5.9.20130831.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-17 15:22:53 +03:00
Nerijus Baliunas
56e72b4b50 Ticket #3391: support mobi e-books.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-22 09:22:46 +03:00
Andrew Borodin
564deafe72 Ticket #3287: bind poedit to Edit action for .po files.
Thanks Marcel Pol <marcel at timelord dot nl> for original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-14 10:00:38 +03:00