Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Formatter indentation Increment/Decrement
Formatter indentation Increment/Decrement [message #902528] Sat, 18 August 2012 07:53
Charalampos Alexopoulos is currently offline Charalampos AlexopoulosFriend
Messages: 11
Registered: July 2012
Junior Member
Hi
I want to have a code formatted like this:

rotate([90,0,0])
   translate([20,0,0])
       cube(size=30);
cube(size=50);


I have a 'Modeling' rule which include 'rotate' and translate' and ends with ')' or optional curled brackets, and i have a few rules wich ends with semicolon.The grammar becomes very complicated to present a simplified version.
I use a command like:

c.setIndentationIncrement().after(f.getModelingRule());


This line does the increments correctly, what i can't do is the decrements after semicolon. Is that possible?

Thank you
Charalampos Alexopoulos
Previous Topic:Sharing experience of writing grammar in Xtext
Next Topic:How can I setup xtend-maven-plugin encode for Xtend2 generation?
Goto Forum:
  


Current Time: Thu Feb 20 11:49:23 GMT 2020

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

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

Back to the top