 arendedwinter
Member
|
I’m having some trouble with a schemedef I’m creating. The language uses — for comment lines, and –text for comment blocks. However the block comment is not being styled (I believe it is because they both start with –. I tried the "contains" tag but that seemed to only crash pn). The code I’m using for the comments is:
<comments>
<line start="--" />
<block start="--" end="" />
</comments>
Can anyone advise what I can do to get both comment style working? I’m using v2.0.9.970-devel.
|
 Nux
Member
|
Strange language you have there… I think all languages I kno give precedence to inline comments example for C:
if (something) // blah /* still in commment
not_in_comment();
So my guess is you should write your own lexer or find one that gives precedence to block comments.
|
 simon
Key Master
|
Currently this isn’t supported, as we check for line comments before block comments. You’d need a bit more logic to try to greedily match the block comment first. The code for the lexer is available, if you want to try and make this work.
|