about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:50:38 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:50:38 +0000
commit458b87f3327ab8260d05ba31c0206ae74d3a4512 (patch)
tree8e8666c7513650c4ee4e461f53136eb6bc364c67 /Completion/Unix/Command
parenta50248d82624b8d05f7d10abc3c515b5dd55f275 (diff)
downloadzsh-458b87f3327ab8260d05ba31c0206ae74d3a4512.tar.gz
zsh-458b87f3327ab8260d05ba31c0206ae74d3a4512.tar.xz
zsh-458b87f3327ab8260d05ba31c0206ae74d3a4512.zip
moved from Completion/User/_flex
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_flex44
1 files changed, 44 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_flex b/Completion/Unix/Command/_flex
new file mode 100644
index 000000000..82e219758
--- /dev/null
+++ b/Completion/Unix/Command/_flex
@@ -0,0 +1,44 @@
+#compdef 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]' \
+  '-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
+
+if [[ -n "$state" ]]; then
+  _values -s '' 'table compression' \
+    'a[align tables]' \
+    'e[construct equivalence classes]' \
+    '(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
+fi
+
+return ret