Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » parenthesis highlight with escape characters between and wrong comments highlighting [BUGS][FIXED]
parenthesis highlight with escape characters between and wrong comments highlighting [BUGS][FIXED] [message #81] |
Wed, 23 November 2005 15:20 |
mr_ped
Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
void foo(void)
{
printf("\n");
}
When I go with cursor to ), the { is highligted as a pair, instead of (, and when I go to (, the } is highlighted.
When I change "\n" to "XX", highlight will work ok. Also \t and maybe others are breaking pairing.
Besides that, when I go to either { or }, I get no highlight at all. (Is it intentional behaviour, or bug?)
And (my favourite) absolute evergreen:
printf("};\n"); //comment over two lines\
foo();
comment text "foo();" is not highlighted as comment, but as regular C source.
Whenever I make some ASCII art in comments ending with backslash, I'm asking for trouble when I'm using IDE which can not parse this case correctly.
And there are more problems with /* */ handling:
/**/
source();
/*/
commented_out_source();
/**/
is not highlighted as comment, only when the /*/ is changed to /* / ... etc. Make sure your parser produces same results as C/C++ compiler in any possible case.
... try "/*/*" at the end of the code snippet for bonus behaviour... (second asterisk is colored as source code, but next source is treated like "comment")
[Updated on: Tue, 02 May 2006 10:36] by Moderator Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Mon May 06 03:55:14 CEST 2024
Total time taken to generate the page: 0.03168 seconds
|