1
0
mirror of https://github.com/MidnightCommander/mc synced 2025-04-01 04:33:24 +03:00

* syntax.c (syntax_text): Remove useless ']' in the Perl and

Python rules.  Change shell script rule to use more portable
regular expression.
This commit is contained in:
Pavel Roskin 2001-09-04 05:29:55 +00:00
parent 0b245d4db4
commit f743b68a21
2 changed files with 7 additions and 3 deletions

@ -1,5 +1,9 @@
2001-09-04 Pavel Roskin <proski@gnu.org>
* syntax.c (syntax_text): Remove useless ']' in the Perl and
Python rules. Change shell script rule to use more portable
regular expression.
* editcmd.c (edit_block_process_cmd): Prepend space to the
command to avoid polluting bash history. Document arguments.
Fix crash if block is 0 - not used currently.

@ -1211,13 +1211,13 @@ static const char * const syntax_text[] = {
"file ..\\*\\\\.lsm$ LSM\\sFile",
"include lsm.syntax",
"",
"file ..\\*\\\\.sh$ Shell\\sScript ^#!\\s\\*/.\\*/(k|ba||pdk|z)sh",
"file ..\\*\\\\.sh$ Shell\\sScript ^#!\\s\\*/.\\*/([a-z]?|ba|pdk)sh",
"include sh.syntax",
"",
"file ..\\*\\\\.(pl|PL|pm|PM])$ Perl\\sProgram ^#!\\s\\*/.\\*/perl",
"file ..\\*\\\\.(pl|PL|pm|PM)$ Perl\\sProgram ^#!\\s\\*/.\\*/perl",
"include perl.syntax",
"",
"file ..\\*\\\\.(py|PY])$ Python\\sProgram ^#!\\s\\*/.\\*/python",
"file ..\\*\\\\.(py|PY)$ Python\\sProgram ^#!\\s\\*/.\\*/python",
"include python.syntax",
"",
"file ..\\*\\\\.(man|[0-9n]|[0-9]x)$ NROFF\\sSource",