[antlr grammar generation] simplified 'replace' expression in 'compileParserMembers'

Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
This commit is contained in:
Christian Schneider 2015-10-21 15:59:19 +02:00
parent fde041627e
commit c4d9d79983

View file

@ -44,7 +44,7 @@ class AntlrContentAssistGrammarGenerator extends AbstractAntlrGrammarWithActions
{
«FOR kw: allKeywords.sort.sortBy[length]»
tokenNameToValue.put("«keywordHelper.getRuleName(kw)»", "'«kw.toStringInAntlrAction.replaceAll("\\\\\\$", "\\\\u0024")»'");
tokenNameToValue.put("«keywordHelper.getRuleName(kw)»", "'«kw.toStringInAntlrAction.replace('$', "\\u0024")»'");
«ENDFOR»
}
«ENDIF»