vim-jp / vim-cpp

c or cpp syntax files
147 stars 44 forks source link

Wrong coloring in `hi Float` #46

Closed originalsouth closed 7 years ago

originalsouth commented 7 years ago

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.

originalsouth commented 7 years ago

So is #48 going to be merged in?