NO

Author Topic: [Solved] Syntax highlighting bug  (Read 2887 times)

iZzz32

  • Guest
[Solved] Syntax highlighting bug
« 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:
Code: [Select]
/*


int foo;
now copy to a clipboard the following:
Code: [Select]
/*
*/
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.

« Last Edit: October 31, 2010, 07:33:04 PM by iZzz32 »

sapero

  • Guest
Re: Syntax highlighting bug
« Reply #1 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.
« Last Edit: January 23, 2010, 01:19:14 AM by sapero »

iZzz32

  • Guest
Re: Syntax highlighting bug
« Reply #2 on: January 23, 2010, 01:19:27 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):
« Last Edit: January 23, 2010, 01:27:22 AM by iZzz32 »