Fixed exception clauses in JS template.

The generated exception clause block was missing a leading '}' to terminate the try block.
This commit is contained in:
Tabari Alexander 2020-12-05 20:20:01 -05:00
parent 340b95bded
commit 3bf3867054
1 changed files with 2 additions and 3 deletions

View File

@ -266,10 +266,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);