[Solved] Syntax highlighting bug

Started by iZzz32, January 22, 2010, 09:41:38 PM

Previous topic - Next topic

iZzz32

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.


sapero

#1
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.

iZzz32

#2
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):