Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346032

Summary: [xtext][editor] conditional auto edit for ':'
Product: [Modeling] TMF Reporter: Knut Wannheden <knut.wannheden>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan, sebastian.zarnekow, tmf.xtext-inbox
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: SR2   
Hardware: All   
OS: All   
Whiteboard:

Description Knut Wannheden CLA 2011-05-17 02:26:05 EDT
The auto edit for ':' in the Xtext editor should only append a ';' when the colon represents the "rule separator" and not when it is used as a namespace delimiter in a type reference.

When a ':' is typed in "{ecore|}" you end up with {ecore::|;;}.
Comment 1 Jan Koehnlein CLA 2011-10-14 11:25:49 EDT
Fixed in HEAD. Please try it and reopen if I missed something essential.

Startegy looks for a single colon and a "returns" in the same rule before the current offset.
Comment 2 Karsten Thoms CLA 2017-09-19 17:14:05 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:25:47 EDT
Closing all bugs that were set to RESOLVED before Neon.0