Author Topic: VIP Syntax  (Read 3622 times)

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
VIP Syntax
« on: April 06, 2011, 09:26:28 AM »
There is such a definition in vip_spec.xml (Hippo 1.49.804):
Code: [Select]
      <Style id="comment" name="Comments" text="1" bold="0" italic="1" underline="0" clr="Comments" bkclr="#FFFFFFFF">
          <Open id="normal"/>
          <Close id="normal"/>
          <Close id="todo"/>
          <Block open="/*" close="*/"/>
          <Block open="//" close="\n"/>
          <Block open="!" start_pos="0" close="\n"/>

When I'm trying to comment out single line with Edit.SelectionComment, HippoEdit always uses "!" but places it prior to the first non-space character in a line, thus breaking the rule of 'tart_pos="0"'.

By the way, is it possible to command HippoEdit which construction to choose for EOL-comments if there are more than one suitable declared?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2187
  • Karma: +37/-3
    • HippoEDIT
Re: VIP Syntax
« Reply #1 on: April 06, 2011, 04:25:58 PM »

problem with start_pos comment not in 0 position, is new bug from 804 (I have optimized commenting logic and created it) - will be fixed new beta. Sorry.

HE uses definition sequence to select which construction use for commenting, but if you have specialization with start_pos it always wins (your case). Maybe this should be changed and only sequence of definitions should be evaluated (I do not want to create special flag for this)...  I will think.

BR, Alex.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Re: VIP Syntax
« Reply #2 on: April 11, 2011, 01:27:36 PM »
Fixed in 1.49.805. Excellent! Thanks again, Alex!