0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 14:02:40 +00:00

Alter varCallInline content to alig with preceeding varDefBlock in inline definitions.

This was failing due to both labels having the extraneous spaces cleaned up but the variable label portion of the varCallInline did not, preventing them from being matched during variable resolution.
This commit is contained in:
David Bolack
2025-01-28 21:31:43 -06:00
parent 03e7699b8b
commit f1eb6e1ce4

View File

@@ -735,7 +735,7 @@ function MarkedVariables() {
varsQueue.push(
{ type : 'varCallInline',
varName : label,
content : match[9]
content : match[9].replace(/\s+/g, ' ').replace(/\[\s+/, '[').replace(/\s+\]/, ']')
});
}
if(match[12]) { // Inline Call