why oh why does intellij skip changes when i push?
This commit is contained in:
parent
99563b116e
commit
1438ab817f
|
@ -80,7 +80,7 @@ YYYY/MM/DD, github id, Full name, email
|
|||
2015/09/24, HSorensen, Henrik Sorensen, henrik.b.sorensen@gmail.com
|
||||
2015/10/06, brwml, Bryan Wilhelm, bryan.wilhelm@microsoft.com
|
||||
2015/10/08, fedotovalex, Alex Fedotov, me@alexfedotov.com
|
||||
2015/10/12, KvanTTT, Ivan Kochurkin, ivan.kochurkin@gmail.com
|
||||
2015/10/21, martin-probst, Martin Probst, martin-probst@web.de
|
||||
2015/10/21, hkff, Walid Benghabrit, walid.benghabrit@mines-nantes.fr
|
||||
2015/11/25, abego, Udo Borkowski, ub@abego.org
|
||||
2015/10/12, KvanTTT, Ivan Kochurkin, ivan.kochurkin@gmail.com
|
||||
2015/11/25, abego, Udo Borkowski, ub@abego.org
|
|
@ -40,8 +40,8 @@ import org.antlr.v4.tool.ErrorManager;
|
|||
import org.antlr.v4.tool.ErrorType;
|
||||
import org.antlr.v4.tool.Grammar;
|
||||
import org.antlr.v4.tool.LabelElementPair;
|
||||
import org.antlr.v4.tool.Rule;
|
||||
import org.antlr.v4.tool.LexerGrammar;
|
||||
import org.antlr.v4.tool.Rule;
|
||||
import org.antlr.v4.tool.ast.GrammarAST;
|
||||
|
||||
import java.util.Collection;
|
||||
|
@ -277,12 +277,12 @@ public class SymbolChecks {
|
|||
LexerGrammar lexerGrammar = (LexerGrammar)g;
|
||||
for (String modeName : lexerGrammar.modes.keySet()) {
|
||||
if (!modeName.equals("DEFAULT_MODE") && reservedNames.contains(modeName)) {
|
||||
Rule rule = ((Collection<Rule>)lexerGrammar.modes.get(modeName)).iterator().next();
|
||||
Rule rule = lexerGrammar.modes.get(modeName).iterator().next();
|
||||
g.tool.errMgr.grammarError(ErrorType.MODE_CONFLICTS_WITH_COMMON_CONSTANTS, g.fileName, rule.ast.parent.getToken(), modeName);
|
||||
}
|
||||
|
||||
if (g.getTokenType(modeName) != Token.INVALID_TYPE) {
|
||||
Rule rule = ((Collection<Rule>)lexerGrammar.modes.get(modeName)).iterator().next();
|
||||
Rule rule = lexerGrammar.modes.get(modeName).iterator().next();
|
||||
g.tool.errMgr.grammarError(ErrorType.MODE_CONFLICTS_WITH_TOKEN, g.fileName, rule.ast.parent.getToken(), modeName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue