Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: flex -<TAB>



>>> "Tanaka" == Tanaka Akira <akr@xxxxxxxxxxx> writes:

 Tanaka> Z(2):akr@is27e1u11% Src/zsh -f
 Tanaka> is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
 Tanaka> is27e1u11% flex -<TAB>
 Tanaka> -  -- generate C++ scanner class
 Tanaka> -7 -- generate 7-bit scanner
 Tanaka> ...

 Tanaka> The option `+' isn't displayed.

I think this is since 9216. The character just after `-' in an argument
definition was not checked before, but now it is.  And since `+' has a
special meaning for _arguments, perhaps the cleaner way to correct this is
to escape it.

Index: Completion/User/_flex
--- Completion/User/_flex Fri, 31 Dec 1999 13:32:44 +0100 Alexandre
+++ Completion/User/_flex Fri, 04 Feb 2000 10:04:17 +0100 Alexandre
@@ -24,7 +24,7 @@
   '-V[show version]' \
   '-7[generate 7-bit scanner]' \
   '-8[generate 8-bit scanner]' \
-  '-+[generate C++ scanner class]' \
+  '-\+[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:' \


-- 
Alexandre Duret-Lutz



Messages sorted by: Reverse Date, Date, Thread, Author