Display error when using else macro before elseif macro #87
Labels
enhancement
New feature or request
good first issue
Good for newcomers
sugarcube-2
Relating to the SugarCube-2 Story Format
IT would be useful to provide an error when putting the else macro before the elseif macro in an if statement.
While we could add a complex feature to the children's tags to allow specifying complex patterns, I think this can be resolved in a good enough manner by just adding a field to a children called
after
which specifies the names of other children that it must appear after.And so if it sees an
else
beforeelseif
(which isn't too complex of a modification of the existing counting code), then it produces an error.The text was updated successfully, but these errors were encountered: