Bug#879986: Typo in debsources.vim produces error when editing sources.list

Josh Triplett josh at joshtriplett.org
Sat Oct 28 03:34:42 UTC 2017


Package: vim-runtime
Version: 2:8.0.1226-1
Severity: important
File: /usr/share/vim/vim80/syntax/debsources.vim

(important because it breaks this mode, but only this mode.)

After upgrading to vim 2:8.0.1226-1, I get the following when starting vim on
/etc/apt/sources.list:

Error detected while processing /usr/share/vim/vim80/syntax/debsources.vim:
line   38:
E696: Missing comma in List: 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty', 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic',
 'lucid', 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy', 'utopic', 'vivid', 'wily', 'yakkety' ]
E15: Invalid expression: [ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', 'woody', 'sarge', 'etch', 'lenny', 'squeeze' 'warty', 'hoar
y', 'breezy', 'dapper', 'edgy', 'feisty', 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid', 'maverick', 'natty', 'oneiric', '
precise', 'quantal', 'raring', 'saucy', 'utopic', 'vivid', 'wily', 'yakkety' ]
line   44:
E121: Undefined variable: s:unsupported
E116: Invalid arguments for function join(s:unsupported, '\|') .'\)\>\([-[:alnum:]_./]*\)+'
E15: Invalid expression: 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:unsupported, '\|') .'\)\>\([-[
:alnum:]_./]*\)+'

To fix this, add a comma at the end of line 32, after 'squeeze'.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim  2:8.0.1226-1

vim-runtime suggests no packages.

-- no debconf information



More information about the pkg-vim-maintainers mailing list