Bug#749175: syntax/python.vim: wrong highlight for some \N{...} sequences

Jakub Wilk jwilk at debian.org
Sat May 24 20:45:27 UTC 2014


Package: vim-runtime
Version: 2:7.4.273-2
Severity: minor
Tags: patch

Some valid \N{...} sequences in Python Unicode literals are not 
correctly highlighted:

u'''
this sequence is highlighted correctly: \N{FULL STOP}
but this one is not: \N{HYPHEN-MINUS}
'''

This happens because the relevant regexp accepts only letters and 
spaces; but Unicode characters names can contain also hyphens and 
digits. Patch attached.

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-n.diff
Type: text/x-diff
Size: 589 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20140524/2939cc28/attachment.diff>


More information about the pkg-vim-maintainers mailing list