brainkim/archieml-python

Logic behind array-closing markers ([]) is broken

Closed this issue · 1 comments

The following valid ArchieML doesn't parse correctly:

[a]
* first
[b]
* second
[]
c: No more parsing?

However this is fine:

[a]
* first
[]
[b]
* second
[]
c: This is just fine.

Presumably the logic behind closing arrays needs to work backward and close all the "open" ones. I'll have a look at the code and see if I can fix it, but maybe someone will beat me to it.

Should be fixed in latest! Forgot to close!