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:
parent
fa39505f5a
commit
9aeefdb817
@ -217,14 +217,6 @@
|
|||||||
<file name="${parser-file}" />
|
<file name="${parser-file}" />
|
||||||
</replaceregexp>
|
</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 -->
|
<!-- The tree builder is generic now -->
|
||||||
<replaceregexp flags="g">
|
<replaceregexp flags="g">
|
||||||
<regexp pattern="\bJJT${parser-name}State\b" />
|
<regexp pattern="\bJJT${parser-name}State\b" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user