c/c++ comments parsed incorrectly

Syntax highlighting, code folding, brace matching, code indenting, and function list

c/c++ comments parsed incorrectly

Postby kkramb » Mon Jun 05, 2006 12:10 pm

I inherited some C++ code where each routine is preceeded by a block comment in the following style:

//*******************************************
/**
*
*///****************************************
main
(
int param
)
{
printf("Hello world.");
}

UltraEdit highlights all of the code following the block as a comment. Apparently UltraEdit does not parse the "*/" followed by "//" followed by "*" correctly. If I break it up like this, "*/ //*", or this, "*/// *", or even this, "*////*", it highlights OK. But this, "*///*", does not work.

I'm using UE V10.10c.

Is there any way for me to edit my wordfile so that UltraEdit parses this correctly?
User avatar
kkramb
Newbie
 
Posts: 2
Joined: Sun Jun 04, 2006 11:00 pm

Re: c/c++ comments parsed incorrectly

Postby Mofi » Tue Jun 06, 2006 6:00 am

Yes, v10.10c of UE does not highlight this code example correct. This is not a wordfile problem. This is a problem of the syntax highlighting engine of UltraEdit. With the same wordfile v11.20a and v12.10+3 of UE highlights it correct. You have to upgrade to a newer version of UE or you reformat your comments.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting