mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-01 10:25:42 +08:00

\s and \S are not supported BSD sed. Fixes #10163 (cherry picked from commit 81c8cd1b6150c974b05d73f6a31beb7344f93984)
9 lines
679 B
Fish
9 lines
679 B
Fish
|
|
complete -c highlight -s O -l out-format -d 'Output file in given format' -xa 'xterm256 latex tex rtf html xhtml ansi bbcode svg'
|
|
complete -c highlight -s t -l tab -d 'Specify tab length' -x
|
|
complete -c highlight -s i -l input -d 'Name of the input file' -r
|
|
complete -c highlight -s o -l output -d 'Name of the output file' -r
|
|
complete -c highlight -s d -l outdir -d 'Output directory' -r
|
|
complete -c highlight -s S -l syntax -d 'Set type of the source code' -xa "(highlight -p | sed -r 's/^(.*[^[:space:]])[[:space:]]+:[[:space:]]*([^[:space:]]+).*\$/\2\t\1/; /^\$/d')"
|
|
complete -c highlight -s s -l style -d 'Highlight style' -xa "(highlight --list-themes | sed '/^\$\| /d')"
|