Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to implement nested conditional formatting?
How to implement nested conditional formatting? [message #1840213] Thu, 08 April 2021 20:04
Dimo Petroff is currently offline Dimo PetroffFriend
Messages: 15
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.
Previous Topic:Customize Scoping for inheritance
Next Topic:Qualified Name according to the hierarchical level
Goto Forum:
  


Current Time: Sat May 08 23:35:01 GMT 2021

Powered by FUDForum. Page generated in 0.02156 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top