mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 11:54:36 +00:00
Fixed AS3 - line numbering on pushback string on regexp
This commit is contained in:
@@ -45,9 +45,12 @@ import java.math.BigInteger;
|
||||
|
||||
public void yypushbackstr(String s, int state)
|
||||
{
|
||||
int numLines = count(s, "\n");
|
||||
int newYyline = yyline - numLines;
|
||||
sourceCode = s + sourceCode.substring(yychar + yylength());
|
||||
yyreset(new StringReader(sourceCode));
|
||||
yybegin(state);
|
||||
yyline = newYyline;
|
||||
}
|
||||
|
||||
public void yypushbackstr(String s)
|
||||
|
||||
Reference in New Issue
Block a user