mirror of https://github.com/MidnightCommander/mc
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>
This commit is contained in:
parent
91e4d8150f
commit
9311136158
|
@ -40,8 +40,8 @@ context default
|
|||
|
||||
keyword $ brightgreen
|
||||
|
||||
keyword wholeleft linestart \[\s\]*function*() brightmagenta
|
||||
keyword wholeleft linestart \[\s\]*function\[\s\]+ brightmagenta
|
||||
keyword wholeleft linestart function*() brightmagenta
|
||||
keyword wholeleft linestart function\[\s\]+ brightmagenta
|
||||
keyword wholeright +() brightmagenta
|
||||
|
||||
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
|
||||
|
|
Loading…
Reference in New Issue