Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1102791 > unrolled thread

Bug#1010839: debcontrol.vim: bad syntax highlighting for sections containing "/"

Started byJakub Wilk <jwilk@jwilk.net>
First post2022-05-11 11:40 +0200
Last post2022-05-12 02:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1010839: debcontrol.vim: bad syntax highlighting for sections containing "/" Jakub Wilk <jwilk@jwilk.net> - 2022-05-11 11:40 +0200
    Bug#1010839: debcontrol.vim: bad syntax highlighting for sections containing "/" James McCoy <jamessan@debian.org> - 2022-05-12 02:30 +0200

#1102791 — Bug#1010839: debcontrol.vim: bad syntax highlighting for sections containing "/"

FromJakub Wilk <jwilk@jwilk.net>
Date2022-05-11 11:40 +0200
SubjectBug#1010839: debcontrol.vim: bad syntax highlighting for sections containing "/"
Message-ID<ElQZ3-eJti-17@gated-at.bofh.it>
Package: vim-runtime
Version: 2:8.2.4793-1
Tags: patch

vim highlights this as an error:

   Section: non-free/utils

Removing "\<" from the "syn match debcontrolSection" line fixes it for 
me.

-- 
Jakub Wilk

[toc] | [next] | [standalone]


#1102854

FromJames McCoy <jamessan@debian.org>
Date2022-05-12 02:30 +0200
Message-ID<Em4Sl-eRFD-1@gated-at.bofh.it>
In reply to#1102791
On Wed, May 11, 2022 at 11:27:22AM +0200, Jakub Wilk wrote:
> vim highlights this as an error:
> 
>   Section: non-free/utils
> 
> Removing "\<" from the "syn match debcontrolSection" line fixes it for me.

The problem is actually the "syn iskeyword" line.  There's no reason to
declare / a valid word character there.  Not sure why I did that, but I
guess we'll find out if there was a reason when I remove it. :)

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web