[BUG] Haskell

Started by Kodt, August 07, 2009, 11:37:03 AM

Previous topic - Next topic

Kodt

The highlighter always treats apostrophes as 'char brackets', even if it's a suffix of an identifier.

alex

Hi Kodt,

welcome to forum.

Would be good to have a sample code, but I think I know what you meant... I noticed similar problem when preparing matlab scheme.

Haskell schema has defined ' ' to be used as start end of char style:
      <Style id="char" name="Char" text="1" bold="0" italic="0" underline="0" clr="Strings" bkclr="#FFFFFFFF">
        <Blocks>
          <Block open="'" close="'"/>
        </Blocks>
      </Style>

independently where start or end tag found. And there are no special style for suffix using ' or something like this.

And unfortunately, because highlighter in HippoEDIT is not hardcoded but based on rules defined in xml, it is not possible to model such situation (I do not use regexp inside, but some rather limited set of possible rules).

Of course I can add one more rule that can describe such cases (for example as additional condition for Block), but this would be more more partial solution. So, I have decided to add fully functional regular expressions as block definitions: it would be much slower but in same much more powerful, and maybe OK for not very big files.

So. Conclusion:
this is a bug. Would be fixed in 1.50 with regular expression extension for syntax schema and updated schema for Haskell. Or maybe I would add new condition for block (this is possible also in 1.4x branch).

Thanks a lot for a bug report.
All the best to RSDN ;)

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