Bug#846264: vim: yacc/bison highlighting interprets semicolon in quotes as end of rule

Simon Richter sjr at debian.org
Tue Nov 29 17:37:57 UTC 2016


Package: vim
Version: 2:8.0.0049-1
Severity: minor

Hi,

with the Bison input

%token SEMICOLON ";"

iteration_statement:
	"do" statement "while" "(" expression_in ")" ";" |
	"while" "(" expression_in ")" statement |
	...

the semicolon terminal referenced by the rule through its alternate
representation is treated as terminating the rule, and syntax
highlighting shows the rest of the rule in grey. Similar concerns apply
to "{", "}" and "|" -- these should be ignored when quoted.

   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: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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
ii  libc6        2.24-5
ii  libgpm2      1.20.4-6.2
ii  libselinux1  2.6-3
ii  libtinfo5    6.0+20160917-1
ii  vim-common   2:8.0.0049-1
ii  vim-runtime  2:8.0.0049-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