'main': Highlight named fd redirections.

Fixes #238
This commit is contained in:
Daniel Shahaf
2018-10-22 04:30:43 +00:00
parent de23e75946
commit 38c794a978
3 changed files with 12 additions and 4 deletions

View File

@@ -58,6 +58,7 @@ This highlighter defines the following styles:
* `assign` - parameter assignments (`x=foo` and `x=( )`)
* `redirection` - redirection operators (`<`, `>`, etc)
* `comment` - comments, when `setopt INTERACTIVE_COMMENTS` is in effect (`echo # foo`)
* `named-fd` - named file descriptor (`echo foo {fd}>&2`)
* `arg0` - a command word other than one of those enumerated above (other than a command, precommand, alias, function, or shell builtin command).
* `default` - everything else