Fixed failure on test bad_indentation.py

This commit is contained in:
bill
2021-02-21 17:55:07 +08:00
parent b2536564bc
commit ca13d4c461
+4 -1
View File
@@ -149,7 +149,10 @@ if True:
*/
push(currIndent);
return symbol(ChocoPyTokens.INDENT, currIndent);
return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.INDENT], ChocoPyTokens.INDENT,
new ComplexSymbolFactory.Location(yyline + 1, yycolumn - 1),
new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()),
currIndent);
}
}
}