Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Return to the line
Return to the line [message #1765888] Wed, 14 June 2017 09:58
Pascal Lacabanne is currently offline Pascal LacabanneFriend
Messages: 17
Registered: November 2016
Junior Member
Hello,

I would like to force the user to return to the line.
For example,

My grammar :
Objet:
	'OBJ_TYPE' name=Id
	'Title'
         Title=STRING


And when I create this object, I would like an error if I write this
OBJ_TYPE Test
Title "My title"


I want this
OBJ_TYPE Test
Title 
"My title"


Is it possible? I try adding "\n" in my grammar but it does not work

Thank you
Previous Topic:Installation of Xtext Complete SDK 2.11 or 2.12 into Eclipse Kepler SR2
Next Topic:Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.npsm#|
Goto Forum:
  


Current Time: Tue Sep 28 10:28:00 GMT 2021

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

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

Back to the top