VIP Syntax

Started by Anonymous, April 06, 2011, 09:26:28 AM

Previous topic - Next topic

Anonymous

There is such a definition in vip_spec.xml (Hippo 1.49.804):
      <Style id="comment" name="Comments" text="1" bold="0" italic="1" underline="0" clr="Comments" bkclr="#FFFFFFFF">
        <Containers>
          <Open id="normal"/>
          <Close id="normal"/>
          <Close id="todo"/>
        </Containers>
        <Blocks>
          <Block open="/*" close="*/"/>
          <Block open="//" close="\n"/>
          <Block open="!" start_pos="0" close="\n"/>
        </Blocks>
      </Style>


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?

alex

Hi,

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.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Anonymous

Fixed in 1.49.805. Excellent! Thanks again, Alex!