Based this off of multiline.go thanks to a tip from @thejustinwalsh.
I added explicit fold markers as they may be useful by other tools/editors that want to consume this syntax. The indentationRules gives the nice "dedent" to close a { or [ brace.
Finally, I cleaned up a few of the patterns and made things a bit more consistent. I'm going to raise another PR that brings the syntax a closer to the structure of UnmarshalText.
The "heredocs":
Based this off of multiline.go thanks to a tip from @thejustinwalsh.
I added explicit fold markers as they may be useful by other tools/editors that want to consume this syntax. The
indentationRules
gives the nice "dedent" to close a{
or[
brace.Finally, I cleaned up a few of the patterns and made things a bit more consistent. I'm going to raise another PR that brings the syntax a closer to the structure of
UnmarshalText
.