Bug#761064: vim: Syntax highligting for shell/bash in when using complex eval construction

Marek Simon marek.simon at nangu.tv
Wed Sep 10 11:34:08 UTC 2014


Package: vim
Version: 2:7.4.430-1
Severity: normal

Dear Maintainer,
while programing in bash, I used this construction inside a shell function:
eval [ \"\$$1\" = \'\' ]

vim thinks the line ends with an open single quote.
using this:
eval [ \"\$"$1"\" = \'\' ]
does not help.

Both is correctly interpreted by the shell as a valid command.

Workaround is to add:
#'
which closes quote for vim and add a comment for the shell.
I am not offering any patch suggestion because I do not know vim highligt
control file syntax much.

With Regards Marek Simon



-- Package-specific info:

--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.basic
/usr/bin/vim is /usr/bin/vim.basic

-- System Information:
Debian Release: 7.6
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1      2.2.51-8
ii  libc6        2.19-10
ii  libgpm2      1.20.4-6
ii  libselinux1  2.1.9-5
ii  libtinfo5    5.9-10
ii  vim-common   2:7.4.430-1
ii  vim-runtime  2:7.4.430-1

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags        <none>
pn  vim-doc      <none>
pn  vim-scripts  <none>

-- no debconf information



More information about the pkg-vim-maintainers mailing list