Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » multiple line string terminal in xtext(multiple line string terminal in xtext)
multiple line string terminal in xtext [message #1135925] Sun, 13 October 2013 14:15 Go to next message
Dana Klein is currently offline Dana KleinFriend
Messages: 63
Registered: October 2012
Member
Hi,

I want to create a terminal which support on multiple line string.
for example:
"I love xtext
and java"

thanks in advance,
Dana
Re: multiple line string terminal in xtext [message #1135971 is a reply to message #1135925] Sun, 13 October 2013 14:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
Hi i thought this works out of the box

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: multiple line string terminal in xtext [message #1137074 is a reply to message #1135971] Mon, 14 October 2013 08:41 Go to previous messageGo to next message
Dana Klein is currently offline Dana KleinFriend
Messages: 63
Registered: October 2012
Member
Hi,

I meant that in my dsl i configured in mydsl.txext:
MyString: string=STRING;


but in the plugin when i insert
"I love xtext
and java"

I got the following error:
Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value

thanks,
Dana
Re: multiple line string terminal in xtext [message #1137076 is a reply to message #1137074] Mon, 14 October 2013 08:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
Strange: On my Machines it works ...
are you sure you dont have any special configs in your grammars


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: multiple line string terminal in xtext [message #1137461 is a reply to message #1137076] Mon, 14 October 2013 14:07 Go to previous messageGo to next message
Dana Klein is currently offline Dana KleinFriend
Messages: 63
Registered: October 2012
Member
Thank you.
Is it configured in Terminals.xtext?
Re: multiple line string terminal in xtext [message #1137531 is a reply to message #1137461] Mon, 14 October 2013 15:04 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
Yes

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:ClassCastException & JobReconcilier
Next Topic:Strip comments during serialization?
Goto Forum:
  


Current Time: Fri Dec 04 08:16:19 GMT 2020

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

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

Back to the top