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>
|
<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);
|
||||||
|
|
Loading…
Reference in New Issue