C++ Syntax /* not closed by */

Started by Miatar, June 21, 2009, 12:06:28 AM

Previous topic - Next topic

Miatar

Found a error in the syntax of C++. It not closes with the comment field /* with */.

Sorry for bad english.

alex

Hello Miatar,

can you please tell which version you are using and
also paste here example of text where parser makes mistake (marking the error).

I would try to analyze.

I have tried
/*  some text  */ and do not see problem. Comments are recognized.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Miatar


alex

Hello Miatar,

yes. You are right. I can reproduce this - this is a bug. Happens because of the TODO style inside.
I would try to solve this in next beta 1.44.

Till then, as workaround you can remove this (Open id="comment"/>) from cbase_spec.xml (definition of TODO style):
      <Style name="TODOs" id="todo" text="1" bold="1" italic="1" underline="0" clr="TODOs" bkclr="#FFFFFFFF" overview="1">
        <Containers>
          <Open id="comment"/>
          <Open id="documentation"/>
        </Containers>
        <Blocks>
          <Block open="TODO" close="\n"/>
          <Block open="todo" close="\n"/>
        </Blocks>
      </Style>


or modify your code in such way:

/*
TODO
*/


or

// TODO

Thanks for a bug report.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]