Hi Dominique!
On Do, 17 Nov 2016, Dominique Pellé wrote:
> Hi
>
> I notice an incorrect syntax highlighting of literal float values with
> cpp syntax. Bug happens with vim-8.0.86 and older, but does not
> happen with vim-7.4.1689 that comes with ubuntu-16.04. So
> somewhere in between, a regression was introduced.
>
> Steps to reproduce:
>
> $ cat >foo.cpp <<EOF
> void foo()
> {
> float f = 1.f;
> float g = 0.f;
> }
> EOF
>
> $ vim -u NONE -c 'syntax on' foo.cpp
>
> Compare screenshots between vim-8.0.86 (bad)
> and vim-7.4.1689 (good):
>
> http://dominique.pelle.free.fr/pic/bad-syntax-highlight-float-vim-8.0.86.png
> http://dominique.pelle.free.fr/pic/good-syntax-highlight-float-vim-7.4.1689.png
>
> Bug happens with cpp files, but not with c files.
>
> I don't have time now to do a bisection to narrow
> down when bug was introduced.
Probably changed with one of the latest runtime updates. syntax/cpp.vim
was last changed here:
https://github.com/vim/vim/commit/b4ada79aa7d0d1e5da3a659b1a203d7cae9f7f59
and this looks suspicious, since it changes how cppNumber matches.
Best,
Christian
--
Ein Schmeichler ist ein Freund, der dir unterlegen ist oder vorgibt,
es zu sein.
-- Aristoteles, 384-322 v. Chr.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.