Bug#486114: syntax/sh.vim: highlighting of "for", "if" before/after dashes
Stephan Beyer
s-beyer at gmx.net
Fri Jun 13 13:14:38 UTC 2008
Package: vim-runtime
Version: 1:7.1.293-3
Severity: normal
Hi,
"for" and "if" (and others) highlight as bash keywords
even if in such a case:
git-for-each-ref
or
git for-each-ref
The \<for\> matching seems to be not sufficient here.
Because of this mismatch, vim wants to see a "do" and "done"
after git for-each-ref, which is non-sense.
If you do not put "do"/"done" thereafter, all other bash
control structures will be highlighted as errors.
For example:
if ...
then
git for-each-ref ....
...
fi
"fi" will be highlighted as error then.
(Also: closing parenthesis, and the like.)
Regards,
Stephan
PS: Btw, it seems that "while" does not highlight at all.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
vim-runtime depends on no packages.
Versions of packages vim-runtime recommends:
ii vim-gnome [vim] 1:7.1.293-3 Vi IMproved - enhanced vi editor -
-- no debconf information
More information about the pkg-vim-maintainers
mailing list