Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C macro definition containing 0 highlighted incorrectly #281

Closed
GoogleCodeExporter opened this issue Aug 18, 2015 · 2 comments
Closed

C macro definition containing 0 highlighted incorrectly #281

GoogleCodeExporter opened this issue Aug 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant