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:
Andrew Borodin 2020-06-06 20:11:29 +03:00
parent 91e4d8150f
commit 9311136158
1 changed files with 2 additions and 2 deletions

View File

@ -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-._