Author Topic: C++ Syntax /* not closed by */  (Read 787 times)

Offline Miatar

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
C++ Syntax /* not closed by */
« on: June 20, 2009, 11:06:28 pm »
Found a error in the syntax of C++. It not closes with the comment field /* with */.

Sorry for bad english.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: C++ Syntax /* not closed by */
« Reply #1 on: June 20, 2009, 11:18:47 pm »
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
Code: [Select]
/*  some text  */ and do not see problem. Comments are recognized.

Best regards,
Alex.

Offline Miatar

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: C++ Syntax /* not closed by */
« Reply #2 on: June 22, 2009, 12:25:54 am »
/* TODO */

This causes problems.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: C++ Syntax /* not closed by */
« Reply #3 on: June 22, 2009, 09:29:50 am »
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):
Code: [Select]
      <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:
Code: [Select]
/*
TODO
*/

or

Code: [Select]
// TODO
Thanks for a bug report.

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
292 Views
Last post May 04, 2009, 10:23:17 pm
by alex
2 Replies
706 Views
Last post May 05, 2009, 03:08:19 pm
by Arthur
4 Replies
752 Views
Last post July 31, 2009, 06:53:03 pm
by jeremy_c
7 Replies
966 Views
Last post August 04, 2009, 01:24:53 pm
by alex
18 Replies
1002 Views
Last post March 13, 2011, 06:14:28 pm
by alex