Skip to content

Commit caa749d

Browse files
committed
main: Housekeep $precommand_options. Add -v to tabbed(1).
1 parent c5ce001 commit caa749d

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

highlighters/main/main-highlighter.zsh

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ _zsh_highlight_highlighter_main_paint()
349349
'noglob' ''
350350
# 'time' and 'nocorrect' shouldn't be added here; they're reserved words, not precommands.
351351

352+
# miscellaneous commands
352353
'doas' aCu:Lns # as of OpenBSD's doas(1) dated September 4, 2016
353354
'nice' n: # as of current POSIX spec
354355
'pkexec' '' # doesn't take short options; immune to #121 because it's usually not passed --option flags
@@ -363,24 +364,16 @@ _zsh_highlight_highlighter_main_paint()
363364
'ionice' cn:t:pPu # util-linux 2.33.1-0.1
364365
'strace' IbeaosXPpEuOS:ACdfhikqrtTvVxyDc # strace 4.26-0.2
365366
'proxychains' q:f # proxychains 4.4.0
366-
367-
# As of OpenSSH 8.1p1
368-
'ssh-agent' aEPt:csDd:k
369-
# suckless-tools v44
370-
# Argumentless flags that can't be followed by a command: -v
371-
'tabbed' gnprtTuU:cdfhs
372-
373-
# moreutils 0.62-1
374-
'chronic' :ev
375-
'ifne' :n
376-
377-
# grc - a "generic colouriser" (that's their spelling, not mine)
378-
'grc' :se
379-
367+
'ssh-agent' aEPt:csDd:k # As of OpenSSH 8.1p1
368+
'tabbed' gnprtTuU:cdfhs:v # suckless-tools v44
369+
'chronic' :ev # moreutils 0.62-1
370+
'ifne' :n # moreutils 0.62-1
371+
'grc' :se # grc - a "generic colouriser" (that's their spelling, not mine)
380372
)
381373
# Commands that would need to skip one positional argument:
382374
# flock
383375
# ssh
376+
# _wanted (skip two)
384377

385378
if [[ $zsyh_user_options[ignorebraces] == on || ${zsyh_user_options[ignoreclosebraces]:-off} == on ]]; then
386379
local right_brace_is_recognised_everywhere=false

0 commit comments

Comments
 (0)