schemedef comment

Discussion Forums discussion schemedef comment

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
May 31, 2009 at 11:09 am #608


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:


<line start="--" />

<block start="--" end="" />


Can anyone advise what I can do to get both comment style working? I’m using v2.0.9.970-devel.

June 1, 2009 at 9:04 am #16499


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


So my guess is you should write your own lexer or find one that gives precedence to block comments.

June 4, 2009 at 12:44 pm #16500

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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.