From 1f88b54eaad97fdeaccf5362a8f67b08cc6e2a33 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 23 Aug 2022 22:25:21 -0400 Subject: [PATCH] Face sections are actually ToString'd now --- parser/tree-tostring.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parser/tree-tostring.go b/parser/tree-tostring.go index 6d96aac..832c3a0 100644 --- a/parser/tree-tostring.go +++ b/parser/tree-tostring.go @@ -61,6 +61,11 @@ func (tree *SyntaxTree) ToString (indent int) (output string) { output += tree.enumSections[name].ToString(indent) } + faceSectionKeys := sortMapKeysAlphabetically(tree.faceSections) + for _, name := range faceSectionKeys { + output += tree.faceSections[name].ToString(indent) + } + dataSectionKeys := sortMapKeysAlphabetically(tree.dataSections) for _, name := range dataSectionKeys { output += tree.dataSections[name].ToString(indent)