Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346032 - [xtext][editor] conditional auto edit for ':'
Summary: [xtext][editor] conditional auto edit for ':'
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 02:26 EDT by Knut Wannheden CLA
Modified: 2017-09-19 17:25 EDT (History)
3 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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