Skip to content

Commit 54e1828

Browse files
committed
'main': Clarify documentation of the :sudo_opt: and :sudo_arg: states.
1 parent c5878ae commit 54e1828

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

highlighters/main/main-highlighter.zsh

+3
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ _zsh_highlight_main_highlighter_highlight_list()
453453
# - :sudo_arg: The argument to a precommand's leading-dash option,
454454
# when given as a separate word; i.e., "foo" in "-u foo" (two
455455
# words) but not in "-ufoo" (one word).
456+
# Note: :sudo_opt: and :sudo_arg: are used for any precommand
457+
# declared in ${precommand_options}, not just for sudo(8).
458+
# The naming is historical.
456459
# - :regular: "Not a command word", and command delimiters are permitted.
457460
# Mainly used to detect premature termination of commands.
458461
# - :always: The word 'always' in the «{ foo } always { bar }» syntax.

0 commit comments

Comments
 (0)