Browse Source

'main': Clarify documentation of the :sudo_opt: and :sudo_arg: states.

pull/667/head
Daniel Shahaf 4 years ago
parent
commit
54e1828d5c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      highlighters/main/main-highlighter.zsh

+ 3
- 0
highlighters/main/main-highlighter.zsh View File

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

Loading…
Cancel
Save