command word: Avoid unknown-token highlighting whilst inputting the command word.

Adds the 'command-being-input' highlight.

Builds on top of the 'command-word-separator-v1' branch from PR #243.
This commit is contained in:
Daniel Shahaf 2015-11-27 08:51:49 +00:00
commit e13c86dfc2
3 changed files with 7 additions and 1 deletions

View file

@ -26,6 +26,7 @@ This highlighter defines the following styles:
* `precommand` - precommand modifiers (e.g., `noglob`, `builtin`)
* `commandseparator` - command separation tokens (`;`, `&&`)
* `hashed-command` - hashed commands
* `command-being-typed` - prefix of a command/function/alias that isn't one itself (e.g., `sourc`, `ifconfi`)
* `path` - existing filenames
* `path_prefix` - prefixes of existing filenames
* `globbing` - globbing expressions (`*.txt`)