Dont delete jjtSetLastToken

JJT grammars should mention TRACK_TOKENS=false;
On the java-grammar branch some tokens are adjusted
manually with calls to jjtSetLastToken and deleting
these calls messes that up
This commit is contained in:
Clément Fournier 2020-03-20 05:37:23 +01:00
parent fa39505f5a
commit 9aeefdb817

View File

@ -217,14 +217,6 @@
<file name="${parser-file}" />
</replaceregexp>
<!-- This is handled by jjtClose -->
<replaceregexp flags="g">
<regexp pattern='\w+.jjtSetLastToken\(getToken\(0\)\);\R' />
<substitution expression='' />
<file name="${parser-file}" />
</replaceregexp>
<!-- The tree builder is generic now -->
<replaceregexp flags="g">
<regexp pattern="\bJJT${parser-name}State\b" />