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

Bug 353783

Summary: Problems when writing regular expression during CA template editing
Product: z_Archived Reporter: Sylvia Tancheva <silviya>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: ganoro, kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sylvia Tancheva CLA 2011-08-03 11:15:04 EDT
1. Type preg_m|
2. From the CA select preg_match function
3. You get the function template ready to edit
preg_match($pattern, $subject) where $pattern is selected.
4. In place of $pattern type '//'
5. Between the 2 slashes type an opening bracket ( and then a closing bracket )

Result: Instead of being after the closing bracket which does not appear your cursor jumps to the end of the line, i.e.
instead of preg_match('/()|/', $subject)
you get preg_match('/(/', $subject)| <- cursor jumps here and the closing bracket ) is missing.

With | is shown the cursor position.

Note: It seems that this does not happen during normal typing, but only when editing the CA template.
Comment 1 Zhongwei Zhao CLA 2011-08-11 01:41:34 EDT
fixed
Comment 2 Kalin CLA 2011-10-18 09:48:34 EDT
Verified.
Closing...