summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_flex
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-08-05 16:22:03 +0200
committerOliver Kiddle <opk@zsh.org>2017-08-05 16:22:30 +0200
commit14ff7d39ad2c9a0d0c4549783f04cf809e5d1980 (patch)
treee7fbc64e9addbc7783341dc439ec7854235a4366 /Completion/Unix/Command/_flex
parent039a34cca5fb2ad1ae16e5a5914bdab3071b7186 (diff)
downloadzsh-14ff7d39ad2c9a0d0c4549783f04cf809e5d1980.tar.gz
zsh-14ff7d39ad2c9a0d0c4549783f04cf809e5d1980.zip
41492: update some options in completions
Diffstat (limited to 'Completion/Unix/Command/_flex')
-rw-r--r--Completion/Unix/Command/_flex73
1 files changed, 45 insertions, 28 deletions
diff --git a/Completion/Unix/Command/_flex b/Completion/Unix/Command/_flex
index 7ca5b0f83..80b0cd7fc 100644
--- a/Completion/Unix/Command/_flex
+++ b/Completion/Unix/Command/_flex
@@ -1,35 +1,52 @@
-#compdef flex
+#compdef flex flex++
local curcontext="$curcontext" state line ret=1
typeset -A opt_args
-_arguments -C -s \
- --help --version \
- '-b[generate backing-up information]' \
- '-d[make scanner running in debug mode]' \
- '-f[generate fast scanner (full table)]' \
- '-h[show help]' \
- '-i[generate case-insensitive scanner]' \
- '-l[maximum compatibility with lex]' \
- '-p[generate performance report]' \
- '-s[suppress default rule]' \
- '-t[write scanner to stdout]' \
- '-v[show summary of statistics about scanner]' \
- '-w[suppress warnings]' \
- '-B[generate batch scanner]' \
- '-F[use fast scanner table representation]' \
- '-I[generate interactive scanner]' \
- '-L[don'"'"'t generate #line directives]' \
- '-T[trace mode]' \
- '-V[show version]' \
- '-7[generate 7-bit scanner]' \
- '-8[generate 8-bit scanner]' \
- '-\+[generate C++ scanner class]' \
+_arguments -C -s -S \
'-C-[specify degree of table compression]:table compression:->tabcomp' \
- '-o-[specify output file]:output file:_files' \
- '-P-[change yy prefix]:prefix string:' \
- '-S-[override skeleton file]:skeleton file:_files' \
- '*:input files:_files -g "*.(#i)(f|)lex(-.)"' && ret=0
+ '--align[trade off larger tables for better memory alignment]' \
+ '--ecs[construct equivalence classes]' \
+ '--meta-ecs[construct meta-equivalence classes]' \
+ '--read[use read() instead of stdio for scanner input]' \
+ '(-f --full)'{-f,--full}'[generate fast scanner (full table)]' \
+ '(-F --fast)'{-F,--fast}'[use fast scanner table representation]' \
+ '(-d --debug)'{-d,--debug}'[enable debug mode in scanner]' \
+ '(-b --backup)'{-b,--backup}'[write backup information to lex.backup]' \
+ '(-p --perf-report)'{-p,--perf-report}'[generate performance report]' \
+ '(-s --nodefault)'{-s,--nodefault}'[suppress default rule to ECHO unmatched text]' \
+ '(-T --trace)'{-T,--trace}'[trace mode]' \
+ '(-w --nowarn)'{-w,--nowarn}'[suppress warnings]' \
+ '(-v --verbose)'{-v,--verbose}'[show summary of statistics about scanner]' \
+ '--hex[use hexadecimal numbers instead of octal in debug outputs]' \
+ '(-o --outfile)'{-o+,--outfile=}'[specify output file]:output file:_files' \
+ '(-S --skel)'{-S+,--skel=}'-[override skeleton file]:skeleton file:_files' \
+ '(-t --stdout)'{-t,--stdout}'[write scanner to stdout]' \
+ '--yyclass=[specify name of C++ class]:class name' \
+ '--header-file=-[create a C header file in addition to the scanner]:file:_files' \
+ '--tables-file=-[write tables to file]::tables file:_files' \
+ '(-7 -8 --7bit --8bit)'{-7,--7bit}'[generate 7-bit scanner]' \
+ '(-7 -8 --7bit --8bit)'{-8,--8bit}'[generate 8-bit scanner]' \
+ '(-B --batch -I --interactive)'{-B,--batch}'[generate batch scanner]' \
+ '(-i --case-insensitive)'{-i,--case-insensitive}'[generate case-insensitive scanner]' \
+ '(-l --lex-compat)'{-l,--lex-compat}'[maximum compatibility with original lex]' \
+ '(-X --posix-compat)'{-l,--posix-compat}'[maximum compatibility with POSIX lex]' \
+ '(-B --batch -I --interactive)'{-I,--interactive}'[generate interactive scanner]' \
+ '--yylineno[track line count in yylineno]' \
+ '-\+[generate C++ scanner class]' \
+ '-D-[define macro]:macro' \
+ '(-L --noline)'{-L,--noline}"[don't generate #line directives]" \
+ '(-P --prefix)'{-P+,--prefix=}'[change yy prefix]:prefix string' \
+ '(-R --reentrant)'{-R,--reentrant}'[generate a reentrant C scanner]' \
+ '--bison-bridge[scanner for bison pure parser]' \
+ '--bison-locations[include yylloc support]' \
+ '--stdinit[initialize yyin/yyout to stdin/stdout]' \
+ "--nounistd[don't include <unistd.h>]" \
+ "--no-[don't generate a particular function]:function" \
+ '(-c -n)'{-c,-n}'[do nothing]' \
+ '(- *)'{-h,--help}'[display help information]' \
+ '( *)'{-V,--version}'[display version information]' \
+ '*:input file:_files -g "*.(#i)(f|)lex(-.)"' && ret=0
if [[ -n "$state" ]]; then
_values -s '' 'table compression' \
@@ -38,7 +55,7 @@ if [[ -n "$state" ]]; then
'(m)f[generate full tables]' \
'(m)F[generate fast tables]' \
'(f F)m[construct meta-equivalence classes]' \
- 'r[don'"'"'t use stdio library]' && ret=0
+ "r[don't use stdio library]" && ret=0
fi
return ret