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

Bug 335634

Summary: [Auto Edit] ML comment in SL comment produces bad result in xtext editor
Product: [Modeling] TMF Reporter: Henrik Lindberg <henrik.lindberg>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: M7   
Hardware: All   
OS: All   
Whiteboard:

Description Henrik Lindberg CLA 2011-01-27 18:04:21 EST
Reproducible in Xtext 2.0 editor (i.e. edit MyDSL.xtext).

Type :
// xxx /*

(with caret after the *) when hitting return the result is:

// xxx /*
               *
               */
Comment 1 Henrik Lindberg CLA 2011-01-27 18:08:24 EST
I guess this is just another variant on "regions" not being skipped.

Other bad auto edits happen
Example:

With this text
// ML_COMMENT PATTERN: '/ *' '/'* ( !('*' | '/') | !'*' '/' | '*' !'/')* '*'+ '/'
//

Hitting return to create a new empty line, the editor inserts ';' to complete the commented out rule.
Comment 2 Sebastian Zarnekow CLA 2011-04-11 08:22:07 EDT
Pushed to master.
Comment 3 Karsten Thoms CLA 2017-09-19 17:33:09 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:44:21 EDT
Closing all bugs that were set to RESOLVED before Neon.0