comments: Fix issue #163 and #167: Highlight comments.

This commit is contained in:
Daniel Shahaf
2015-10-27 19:29:06 +02:00
parent e76f208cf8
commit 693de99a90
4 changed files with 18 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ This highlighter defines the following styles:
* `back-dollar-quoted-argument` - back dollar quoted arguments (\x inside $'')
* `assign` - variable assignments
* `redirection` - redirection operators (`<`, `>`, etc)
* `comment` - interactive comments, when `setopt INTERACTIVE_COMMENTS` is in effect (`echo # foo`)
* `default` - parts of the buffer that do not match anything
To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`: