mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18: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())";
|
return "!\"" + keyword + "\".equals(input.LT(" + offset + ").getText())";
|
||||||
}
|
}
|
||||||
private String getSyntaxForTerminalToken(String terminal, int offset) {
|
private String getSyntaxForTerminalToken(String terminal, int offset) {
|
||||||
return "input.LT(" + offset + ").getType() != " + terminal;
|
return "input.LA(" + offset + ") != " + terminal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class TerminalRuleToken implements Token {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String negatedCondition() {
|
public String negatedCondition() {
|
||||||
return "input.LT(" + position + ").getType() != " + rule.getName();
|
return "input.LA(" + position + ") != " + rule.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue