Commit Graph

114 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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