Community
Participate
Working Groups
Build Identifier: Version: Indigo Service Release 1 If I edit the last rule of the attached grammar, and hit Return after the last semikolon, a '}' is added and marked as syntactically wrong. Placing spaces before or after the | cures the problem, but I have not found out what the system is. Editing the file and undoing the change made the problem vanish as well. See http://www.eclipse.org/forums/index.php/mv/msg/277439/780782/#msg_780782 Reproducible: Sometimes Steps to Reproduce: 1.Enter the grammar. I was able to reproduce the problem a few times with: grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl/MyDsl" Model: x=st1; terminal st1: '"' ( !('\\'|'"'|'$'|'['|']'|'{'|'}') )* '"'; and then at some point it started working as expected :-( 2. go to the end of the file, hit enter 3. get a closing curly brace two lines lower with a red wavy underline.
*** Bug 373081 has been marked as a duplicate of this bug. ***
I think I found the problem: In the DocumentPartitioner we don't update the token after determining the actualReparseStart. My curretn fix looks good but I have to investigate and test a bit further.
Pushed some tests to MASTER.
Closing all bugs that were set to RESOLVED before Neon.0