Permalink
Browse files

Merge pull request #38 from ethus3h/exception-handling-2017sept24n2

Fix indentation level not being reset between parses when exceptions are thrown
  • Loading branch information...
jnthn committed Sep 25, 2017
2 parents 443d539 + 513db2b commit 0375008027c8caa216bd869476ce59ae09b2a702
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/Grammar/Tracer.pm6
View
@@ -44,7 +44,13 @@ my class TracedGrammarHOW is Metamodel::GrammarHOW does Grammar::Debugger::WrapC
# Call rule.
$indent++;
my $result := $meth($c, |args);
my $result;
try {
$result := $meth($c, |args);
CATCH {
$indent--;
}
}
$indent--;
# Dump result.

0 comments on commit 0375008

Please sign in to comment.