mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 00:08:55 +00:00
changed terminal token condition to use LA syntax
This commit is contained in:
parent
8d34bc2a23
commit
621f37874f
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ public class HoistingProcessorTest extends AbstractXtextTests {
|
|||
return "!\"" + keyword + "\".equals(input.LT(" + offset + ").getText())";
|
||||
}
|
||||
private String getSyntaxForTerminalToken(String terminal, int offset) {
|
||||
return "input.LT(" + offset + ").getType() != " + terminal;
|
||||
return "input.LA(" + offset + ") != " + terminal;
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -24,7 +24,7 @@ public class TerminalRuleToken implements Token {
|
|||
|
||||
@Override
|
||||
public String negatedCondition() {
|
||||
return "input.LT(" + position + ").getType() != " + rule.getName();
|
||||
return "input.LA(" + position + ") != " + rule.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue