Closed samhh closed 2 years ago
Just to check, what happens when we have multiple nested select
/boolean
s? (Not sure if this is a valid example, I'm getting lost in the braces—we need an ICU formatter!)
{myVar, select,
a {before {myBoolean, boolean,
true {{myVar2, select,
a {a2}
b {b2}
}
}
false {false}} a after
}
b {before {myBoolean, boolean, true {true} false {false}} b after}
}
With the number in the identifier removed:
{myVar, select, a {{myBoolean, boolean, true {{myVar, select, a {before a2 a after} b {before b2 a after}}} false {before false a after}}} b {{myBoolean, boolean, true {before true b after} false {before false b after}}}}
Fixes #104.
Another reason I don't love how flattening is implemented is that this was missed without warning.
Test case:
Before:
After: