Metadata macro reference in comment counts as actual metadata macro call
It's possible this issue extends beyond just the (metadata:)
macro; that's just how I found it, so you might want to extend the scope of any issue testing or resolution.
If a passage has a (metadata:)
macro call, and also includes a comment that includes a (metadata:)
macro call, then Harlowe (tested 3.3.8
) will incorrectly return the error There is more than one (metadata:) macro.
.
Here's a minimal code sample that reproduces the issue:
:: StoryTitle
Metadata Comment Problem Test
:: StoryData
{
"ifid": "E01A6C32-1CD6-4642-A418-43224ED5C6E3",
"format": "Harlowe",
"format-version": "3.3.8",
"start": "Startup",
"zoom": 1
}
:: Startup
{
(metadata: "key", "value")
<!-- This is a comment that has the text (metadata: "key", "value") -->
}\
This is the passage text.
Text in comments shouldn't be interpreted as actual running code, I guess?