@Override
public void registerParserFactory(IParserFactory parser) {
if (parser instanceof KeywordParserFactory) {
KeywordParserFactory kp = (KeywordParserFactory) parser;
IKeyword kw = kp.keyword();
if (kw.isRegexp()) keywords2.put(kw.toString(), kp);
else keywords.put(kw.toString(), kp);
} else {
if (!freeParsers.contains(parser)) freeParsers.add(parser);
}