Fix typos in comments.

This commit is contained in:
Daniel Shahaf 2020-03-27 01:27:37 +00:00
parent d1802e388e
commit 5d139fcd94
2 changed files with 3 additions and 3 deletions

View File

@ -318,7 +318,7 @@ _zsh_highlight_highlighter_main_paint()
# that wouldn't be followed by a colon in a getopts specification. # that wouldn't be followed by a colon in a getopts specification.
local flags_sans_argument local flags_sans_argument
# $flags_solo is a set of letters, corresponding to option letters that, if # $flags_solo is a set of letters, corresponding to option letters that, if
# present, mean the precommand will now be acting as a precommand, i.e., will # present, mean the precommand will not be acting as a precommand, i.e., will
# not be followed by a :start: word. # not be followed by a :start: word.
local flags_solo local flags_solo
# $precommand_options maps precommand name to values of $flags_with_argument, # $precommand_options maps precommand name to values of $flags_with_argument,

View File

@ -29,8 +29,8 @@
# First of all, ensure predictable parsing. # First of all, ensure predictable parsing.
typeset zsh_highlight__aliases="$(builtin alias -Lm '[^+]*')" typeset zsh_highlight__aliases="$(builtin alias -Lm '[^+]*')"
# In zsh <= 5.2, `alias -L` emits aliases that begin with a plus sign ('alias -- +foo=42') # In zsh <= 5.2, aliases that begin with a plus sign ('alias -- +foo=42')
# them without a '--' guard, so they don't round trip. # are emitted by `alias -L` without a '--' guard, so they don't round trip.
# #
# Hence, we exclude them from unaliasing: # Hence, we exclude them from unaliasing:
builtin unalias -m '[^+]*' builtin unalias -m '[^+]*'