|
Re: formating with Xtend [message #1059389 is a reply to message #1059387] |
Fri, 17 May 2013 21:15 |
|
Hi,
what is your problem?
class MyDslFormatter extends AbstractDeclarativeFormatter {
@Inject extension MyDslGrammarAccess
override protected void configureFormatting(FormattingConfig c) {
findKeywordPairs("{","}").forEach[
c.setIndentation(first, second)
]
}
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Re: formating with Xtend [message #1059391 is a reply to message #1059389] |
Fri, 17 May 2013 21:31 |
junior developer Messages: 354 Registered: January 2013 |
Senior Member |
|
|
Hi Christian,
I do not define List<Pair<Keyword,Keyword>> pairs = f.findKeywordPairs("{", "}");
I write
val List<Pair<Keyword,Keyword>> = f.findKeywordPairs("{", "}"); in the Xtend.
it will solve my problem:
findKeywordPairs("{","}").forEach[
c.setIndentation(first, second)
]
[Updated on: Fri, 17 May 2013 21:34] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds