about summary refs log tree commit diff
path: root/Completion/User/_flex
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-13 09:47:42 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-13 09:47:42 +0000
commit30466ac38aa67aef0bb1f2454a5ad26ea5e83914 (patch)
tree43cdc35ebc3a7178b68aa979b8b07c2e1ed3dba5 /Completion/User/_flex
parenta057b093680b2430ddb440e319435d67a1b9f7f9 (diff)
downloadzsh-30466ac38aa67aef0bb1f2454a5ad26ea5e83914.tar.gz
zsh-30466ac38aa67aef0bb1f2454a5ad26ea5e83914.tar.xz
zsh-30466ac38aa67aef0bb1f2454a5ad26ea5e83914.zip
zsh-workers/7792
Diffstat (limited to 'Completion/User/_flex')
-rw-r--r--Completion/User/_flex44
1 files changed, 44 insertions, 0 deletions
diff --git a/Completion/User/_flex b/Completion/User/_flex
new file mode 100644
index 000000000..c63d0d2da
--- /dev/null
+++ b/Completion/User/_flex
@@ -0,0 +1,44 @@
+#compdef flex
+
+local state line ret=1
+typeset -A options
+
+_arguments -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