How to implement nested conditional formatting? [message #1840213] |
Thu, 08 April 2021 20:04 |
Dimo Petroff Messages: 16 Registered: November 2018 |
Junior Member |
|
|
I have this exception in my formatter:
org.eclipse.xtext.formatting2.internal.ConflictingRegionsException: Conflicting Regions.
{{{}}}: ConditionalReplacer at offset=3063 length=33
[[[]]]: ConditionalReplacer at offset=3050 length=47
------------------------------- document snippet -------------------------------
call
[
thing|something or another . chained] - too .
long [[[[ for
| {{{the
.previous (
line= -1
)}}}]]]] < same
.
thing
[
--------------------------------------------------------------------------------
What I'm trying to achieve is an Xtend-style lambda function, which should be conditionally formatted on multiple lines if it's too long, and the expressions in the lambda might include a feature call with arguments, which are also conditionally formatted on individual lines if they do not fit on one line. I would have expected nested conditional formatting regions to be the solution, but that results in the exception above.
|
|
|
Powered by
FUDForum. Page generated in 0.05342 seconds