mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
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>
This commit is contained in:
parent
8196833781
commit
91d6d55baf
@ -40,8 +40,8 @@ context default
|
|||||||
|
|
||||||
keyword $ brightgreen
|
keyword $ brightgreen
|
||||||
|
|
||||||
keyword wholeleft linestart function*() brightmagenta
|
keyword wholeleft linestart \[\s\]*function*() brightmagenta
|
||||||
keyword wholeleft linestart function\[\s\]+ brightmagenta
|
keyword wholeleft linestart \[\s\]*function\[\s\]+ brightmagenta
|
||||||
keyword wholeright +() brightmagenta
|
keyword wholeright +() brightmagenta
|
||||||
|
|
||||||
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
|
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
|
||||||
|
Loading…
Reference in New Issue
Block a user