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> <code>
<postamble; separator="\n"> <postamble; separator="\n">
<namedActions.after> <namedActions.after>
<if(exceptions)> }<if(exceptions)>
<exceptions; separator="\n"> <exceptions; separator="\n">
<else> <else> catch (re) {
} catch (re) {
if(re instanceof antlr4.error.RecognitionException) { if(re instanceof antlr4.error.RecognitionException) {
localctx.exception = re; localctx.exception = re;
this._errHandler.reportError(this, re); this._errHandler.reportError(this, re);