mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-24 03:04:21 +03:00
Ticket #4054: broken syntax highlighting for shell scripts.
Revert "Ticket #3981: sh.syntax: allow for indented 'function' highlighting." This reverts commit 91d6d55bafbccdc13bf1d27cfb3a8ce42293622f. 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…
x
Reference in New Issue
Block a user