Skip to content

Wrong coloring in hi Float #46

Closed
@originalsouth

Description

@originalsouth

Both in VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 26 2017 07:49:10) and NVIM 0.2.0 --which both rely on the 2016 Oct 28 version of this project for syntax highlighting of cpp files -- seem to color floats wrong.

Example:
In my color scheme I'm using:
hi Float guifg=#eb2121 guibg=NONE guisp=NONE gui=NONE
hi Number guifg=#f0ad6d guibg=NONE guisp=NONE gui=NONE
see https://github.com/originalsouth/nvimrc/blob/master/colors/inkpot.vim

This produces wrong coloring of statement like printf("%g\n",1.0+1.0); colors the 1 as defined by hi Number and the .0 as defined by hi Float both in VIM as NVIM.

See image for example: c left, cpp right (the 1 is yellowish where the .0 is reddish):
vim8 0-hi-float

nvim0 2 0-hi-float

This seems to be a regression from the 2015 Nov 10 version.
Where the coloring is still ok. See image:
nvim0 1 7-hi-float

See also this issue in the neovim repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions