Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Strange autocompletion behaviour in the xtext editor
Strange autocompletion behaviour in the xtext editor [message #780782] Thu, 19 January 2012 11:08 Go to next message
H. Niemann is currently offline H. NiemannFriend
Messages: 5
Registered: September 2010
Junior Member
Hi!

I am editing a terminal rule in my xtext file which defines a string
in quotes which may not contain braces and some other characters.

If I write

terminal SIMPLETEXT:
'"' ( !('\\' | '"' | '$' | '[' | ']' | '{' | '}') )* '"';

and hit enter, a closing curly brace is added and immediately marked as an error.

If I swap the braces in the rule:

terminal SIMPLETEXT:
'" ' (!('\\' | '"' | '$' | '[' | ']' | '}' | '{'))* '"';

this does not happen.

Digging deeper:
terminal st1:
'"' ( !('\\'|'"'|'$'|'['|']'| '{' |'}') )* '"';
adds a brace,

terminal st1:
'"' ( !('\\'|'"'|'$'|'['|']' | '{' |'}') )* '"';

does not. Do '|' bars have to be surrounded by whitespace?
Bug or feature?

With best regards
Hartmut Niemann
... doing his first steps with xtext.
Re: Strange autocompletion behaviour in the xtext editor [message #780815 is a reply to message #780782] Thu, 19 January 2012 13:52 Go to previous messageGo to next message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
I noticed this as well and I think it's a bug: it would be appreciated (at least by me! Wink) if you'd file a bug.

Re: Strange autocompletion behaviour in the xtext editor [message #780833 is a reply to message #780815] Thu, 19 January 2012 14:50 Go to previous message
H. Niemann is currently offline H. NiemannFriend
Messages: 5
Registered: September 2010
Junior Member
https: //bugs.eclipse.org/bugs/show_bug.cgi?id=369087
Previous Topic:IResourceSetProvider
Next Topic:Serializer fails with InvalidConcreteSyntaxException
Goto Forum:
  


Current Time: Thu Mar 28 21:30:46 GMT 2024

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

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

Back to the top