Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353783 - Problems when writing regular expression during CA template editing
Summary: Problems when writing regular expression during CA template editing
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 11:15 EDT by Sylvia Tancheva CLA
Modified: 2020-05-14 11:09 EDT (History)
2 users (show)

See Also:


Attachments

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