Author Topic: VIP Syntax  (Read 2959 times)

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
VIP Syntax
« on: April 06, 2011, 08: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">
        <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?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: VIP Syntax
« Reply #1 on: April 06, 2011, 03:25:58 pm »
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.

Offline Anonymous

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

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
11118 Views
Last post May 04, 2010, 05:19:52 pm
by alex
1 Replies
2259 Views
Last post June 12, 2011, 11:57:03 pm
by alex
1 Replies
1513 Views
Last post June 22, 2011, 02:14:50 am
by alex
3 Replies
1575 Views
Last post July 26, 2011, 02:30:09 am
by alex
2 Replies
1614 Views
Last post September 23, 2011, 05:18:36 am
by false007