Properly parse region ends, closes #337
Bracket order fix
Don't require region ends
Merge pull request #343 from Gama11/OutlineRegionFix

Properly parse region ends, closes #337