Skip to main content



      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 06:08 Go to next message
Eclipse UserFriend
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 08:52 Go to previous messageGo to next message
Eclipse UserFriend
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 09:50 Go to previous message
Eclipse UserFriend
https: //bugs.eclipse.org/bugs/show_bug.cgi?id=369087
Previous Topic:IResourceSetProvider
Next Topic:Serializer fails with InvalidConcreteSyntaxException
Goto Forum:
  


Current Time: Mon Jul 14 13:35:39 EDT 2025

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

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

Back to the top