Pelles C forum

Pelles C => Bug reports => Topic started by: iZzz32 on January 22, 2010, 09:41:38 PM

Title: [Solved] Syntax highlighting bug
Post by: iZzz32 on January 22, 2010, 09:41:38 PM
Pelles C IDE v6.00.4 (and older versions), Windows 2000 (OS-independent, actually).

File->New->Source code, type the following:
/*


int foo;

now copy to a clipboard the following:
/*
*/

and insert it in the second line of source code. "int foo" doesn't get highlighted. It doesn't even get highlighted when you remove the "/" from the second line.

Title: Re: Syntax highlighting bug
Post by: sapero on January 23, 2010, 01:11:57 AM
Take a closer look at your image: there is one-pixel character (0xB7 : ALT+0183) after int. Only a small set of characters is recognized as separator tokens, so I can say "int·foo" with this extra character is treated as a single keyword.
Title: Re: Syntax highlighting bug
Post by: iZzz32 on January 23, 2010, 01:19:27 AM
Quote from: sapero on January 23, 2010, 01:11:57 AM
Take a closer look at your image: there is a point character after int.

No. It is just Source->View whitespace turned on. But it does not matter – whatever I would write there it would get highlighted like a comment, though comment was already closed above.

Here is another image (after I deleted second "/*" so noone could say to me that C or just Pelles C supports nested comments ;D):