How about using two newlines?
I tried two newlines but it hangs when the input document doesn't have two newlines. The tab is working for me at the moment, but I'd welcome suggestions for a better idea.
Here's what I am trying to achieve:
I want the DSL to be editable by totally non-technical users, so I am avoiding explicit delimiters where ever possible.
There are a number of fields where the value will almost always be a single line of plain text but the
value can also use markdown syntax that will span multiple lines.
So it will usually be something like:
Text: What is your quest?
but it could be:
Text: If its not a *personal* question?
**Are you a virgin?**
The tab works in my demo but there is no way a real person will be able to deal with invisible white-space. The best I can come up with is to use delimiters around multi-line statements like this:
Text: [If its not a *personal* question?
**Are you a virgin?**]
But still allow single line values without delimiters which is the most common case by far.
This is a demo app to evangelize the idea of DSLs in my company, so it's too critical but I'll need to come up with a better solution eventually (if I succeed in persuading my colleagues that this is worth doing).
I'd welcome suggestions if you have any ideas.