Bug#863910: haskell highlighting colors lines starting with # operator in red

Joey Hess id at joeyh.name
Thu Jun 1 20:37:26 UTC 2017


Package: vim
Version: 2:8.0.0197-4
Severity: normal

This in foo.hs will show the problem when loaded in vim with
no local ~/.vimrc or ~/.vim:

main = print (munge "world hello,")

munge = words
        # reverse
        # unwords

(#) = flip (.)

Both of the lines starting with "#" are displayed with a red background,
as if vim thinks this is some kind of syntax error. However, 
# is a perfectly legal haskell function name, and this file is a
legal haskell hello world.

The haskell package threepenny-gui uses the definition of # given above,
and so idionmatic code written with that library is full of ugly red lines
in vim.

I'll bet that the intention was something like, perl refugees 
might try to write "# comment" and so highlight the mistake. But with #
in actual use as a function, that does not seem wise. Also, note that
vim does not use the red background on "foo # comment"

-- 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: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vim depends on:
ii  libacl1      2.2.52-3+b1
ii  libc6        2.24-11
ii  libgpm2      1.20.4-6.2+b1
ii  libselinux1  2.6-3+b1
ii  libtinfo5    6.0+20161126-1
ii  vim-common   2:8.0.0197-4
ii  vim-runtime  2:8.0.0197-4

vim recommends no packages.

Versions of packages vim suggests:
ii  exuberant-ctags [ctags]  1:5.9~svn20110310-11
pn  vim-doc                  <none>
pn  vim-scripts              <none>

-- no debconf information

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20170601/7aa589c8/attachment.sig>


More information about the pkg-vim-maintainers mailing list