Skip to content

Commit

Permalink
Merge pull request #2995 from tehbone/master
Browse files Browse the repository at this point in the history
Fixed exception clauses in JS template.
  • Loading branch information
ericvergnaud committed Dec 6, 2020
2 parents c278c1d + 3bf3867 commit 19c6470
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@ RuleFunction(currentRule,args,code,locals,ruleCtx,altLabelCtxs,namedActions,fina
<code>
<postamble; separator="\n">
<namedActions.after>
<if(exceptions)>
}<if(exceptions)>
<exceptions; separator="\n">
<else>
} catch (re) {
<else> catch (re) {
if(re instanceof antlr4.error.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
Expand Down

0 comments on commit 19c6470

Please sign in to comment.