mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
[antlr grammar generation] simplified 'replace' expression in 'compileParserMembers'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
This commit is contained in:
parent
fde041627e
commit
c4d9d79983
1 changed files with 1 additions and 1 deletions
|
@ -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»
|
||||
|
|
Loading…
Reference in a new issue