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

Bug 416281

Summary: Regex matches should check text before the caret in documentation block support
Product: [ECD] Orion Reporter: Gabriel Luong <gabriel.luong>
Component: EditorAssignee: Gabriel Luong <gabriel.luong>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: 4.0 M2   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Gabriel Luong CLA 2013-08-30 23:52:08 EDT

    
Comment 1 Gabriel Luong CLA 2013-08-30 23:59:29 EDT
Instead of checking the whole line for a match for a start, or intermediate comment block, we should be checking only the line text up to the caret. Otherwise, the current implementation will find it's a comment block when we press enter in a situation like /|** where | is the caret.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=d118f6d7fd01c5cd8ddfb0c2af7185411aa4ce91