Added comment.

This commit is contained in:
Ivan Kochurkin 2016-12-04 15:11:25 +03:00
parent bf3bff16e4
commit e4c765aa27
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ public class LexerATNFactory extends ParserATNFactory {
}
private void checkCommands(String command, Token commandToken) {
// Command combinations list: https://github.com/antlr/antlr4/issues/1388#issuecomment-263344701
if (!command.equals("pushMode") && !command.equals("popMode")) {
if (ruleCommands.contains(command)) {
g.tool.errMgr.grammarError(ErrorType.DUPLICATED_COMMAND, g.fileName, commandToken, command);