Strange autocompletion behaviour in the xtext editor [message #780782] |
Thu, 19 January 2012 06:08  |
Eclipse User |
|
|
|
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.43265 seconds