Skip to content

Commit 9e036e0

Browse files
committed
'main': Document the second meaning of the 'comment' style.
1 parent 74c7ffc commit 9e036e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/highlighters/main.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ This highlighter defines the following styles:
5858
* `assign` - parameter assignments (`x=foo` and `x=( )`)
5959
* `redirection` - redirection operators (`<`, `>`, etc)
6060
* `comment` - comments, when `setopt INTERACTIVE_COMMENTS` is in effect (`echo # foo`)
61+
* `comment` - elided parameters in command position (`$x ls` when `$x` is unset or empty)
6162
* `named-fd` - named file descriptor (`echo foo {fd}>&2`)
6263
* `arg0` - a command word other than one of those enumerated above (other than a command, precommand, alias, function, or shell builtin command).
6364
* `default` - everything else

0 commit comments

Comments
 (0)