From faf19b2729171edcea33569d6149ea02269bc100 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 22 Sep 2017 00:03:32 -0700 Subject: Being extra cautious and putting the indent stack back. --- nomsu.moon | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nomsu.moon') diff --git a/nomsu.moon b/nomsu.moon index babccee..8683d4c 100755 --- a/nomsu.moon +++ b/nomsu.moon @@ -256,10 +256,11 @@ class NomsuCompiler if @debug @writeln("PARSING:\n#{str}") - export indent_stack - indent_stack = {0} str = str\gsub("\r","").."\n" + export indent_stack + old_indent_stack, indent_stack = indent_stack, {0} tree = nomsu\match(str) + indent_stack = old_indent_stack -- Put it back, just in case. if @debug @writeln("\nPARSE TREE:") @print_tree(tree) -- cgit v1.2.3