A couple schemedef questions (re: preprocessor, comments)

Discussion Forums discussion A couple schemedef questions (re: preprocessor, comments)

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
January 21, 2012 at 8:37 pm #7545

Roody
Member

Hi, I use a somewhat obscure text adventure language called Hugo that has some funny syntax, and now I’m trying to make a PN schemedef file to suit it.

First off, is there any way to terminate the preprocessor coloring before the end of line? I’ve played around with some methods but nothing has worked.

Secondly, is there a way to use regular expression for comment definitions? Hugo uses “!” for single line comments, and “!” to begin blocks and “!” to end blocks. Right now, they aren’t coexisting happily.

Thanks for any help!

January 30, 2012 at 5:03 pm #18441

simon
Key Master

There’s no way to terminate preprocessor coloring, but you could try using something else like a string type for this. However I don’t know if you could easily get it so that it was terminated either by line end or a closing character. You’d need to experiment.

The comment thing is unfortunate, there’s no support for regular expressions for matching at the moment, although there may be something like this in the future.

January 30, 2012 at 7:29 pm #18442

Roody
Member

Thanks for the response!

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

You must be logged in to reply to this topic.