Bug#468366: vim: Wrong highlighting for sh arithmetic expressions

Edward Allcutt emallcut at gleim.com
Thu Feb 28 15:31:15 UTC 2008


Package: vim
Version: 1:7.1-241+1
Severity: minor

The following is highlighted badly:

==== start file ========
#!/bin/bash

echo $(( ( 2 << 5 ) + 1 ))

echo foo bar
==== end file ==========

The 5 is the wrong colour and everything following until the end of file
is highlighted as if it were quoted text. Removing the parentheses around
the sub-expression corrects the highlighting but changes the meaning of the
expression.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vim depends on:
ii  libc6                     2.7-6          GNU C Library: Shared libraries
ii  libgpmg1                  1.19.6-25      General Purpose Mouse - shared lib
ii  libncurses5               5.6+20080119-1 Shared libraries for terminal hand
ii  vim-common                1:7.1-241+1    Vi IMproved - Common files
ii  vim-runtime               1:7.1-241+1    Vi IMproved - Runtime files

vim recommends no packages.

-- no debconf information





More information about the pkg-vim-maintainers mailing list