incobalt / Trice

A wrapper for Tracery.js (by @galaxykate) for Twine 2.x Sugar Cube format.
24 stars 4 forks source link

Trice does not respect comments #1

Closed ryceg closed 5 years ago

ryceg commented 5 years ago

Commenting out lines of code tagged as [grammar] does not disable them from being parsed.

incobalt commented 5 years ago

That's probably correct, I'll take a look at this over the weekend and provide an update. I can certainly see why people might want to comment their grammar passages! I'll work on support for / / /% %/ and , which are what Sugar Cube allow. I should also be able to do // style comments, I think.

ryceg commented 5 years ago

That would be amazing! Thanks very much :)

incobalt commented 5 years ago

I just put in an update that should have this working now! I updated the readme with information about comments and have added some comments to the gHabitatFeature passage of TriceExample.html. As an added bonus, grammar passages now ignore blank lines, so you can space out your rules if you like. Let me know if you encounter any problems!