forked from jasder/antlr
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:
parent
340b95bded
commit
3bf3867054
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue