fanicy / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

C macro definition containing 0 highlighted incorrectly #281

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a foo.c file containing:

#define A0 B1
#define A1 B0

2. View the file in Vim with syntax highlighting turned on for C syntax

What is the expected output? What do you see instead?

Everything from the 0 to the end of the line is highlighted incorrectly.  The 
incorrect part matches the region "cCppOut2".

What version of the product are you using? On what operating system?

Vim 7.4.488-1 on Debian GNU/Linux

Please provide any additional information below.

c.vim 2014 Sep 23 (bd18da914be9) induces the incorrect highlighting.
c.vim 2014 May 26 (92751673cc37) does not have the problem.

Original issue reported on code.google.com by ijabbot...@gmail.com on 13 Nov 2014 at 1:47

GoogleCodeExporter commented 9 years ago
I see the problem.  Looks like the line that defines cCppOut2 is a leftover 
from the past.  Deleting it should fix it.  This is in 
$VIMRUNTIME/syntax/c.vim, around line 64.

Original comment by brammool...@gmail.com on 13 Nov 2014 at 6:17

GoogleCodeExporter commented 9 years ago
This should be fixed with the last runtime update 
https://code.google.com/p/vim/source/detail?r=f654ad95fd4e25e014dda71963b9745a4b
f5f83b

Therefore closing

Original comment by chrisbr...@googlemail.com on 23 Nov 2014 at 2:15