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

Bug 364096

Summary: Automatically Close Braces Busted At Bottom of Class
Product: z_Archived Reporter: Dan <dwilks>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P2 CC: silviya, zhaozhongwei, zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Dan CLA 2011-11-17 19:54:13 EST
Build Identifier: Eclipse 3.7.1 M20110909-1335   PHP Development Tools (PDT) SDK Feature 3.0.0.v20110516-1100-77--84_23JBVgSVXO7XGJz0VLa9O

If you try to add a new function to an existing class automatic brace closing doesn't work.  It appears to get confused by the closing brace of the class.





Reproducible: Always

Steps to Reproduce:
0. Be sure that "Automatically Close" Braces is enabled in Prefs>Editor/PHP/Typing.
1. Open an existing class file
2. Go to the bottom of the file, just before the closing brace
3. Begin adding a new function, hit the opening brace then press enter.

Result: Closing brace for the function isn't inserted.

Note: As soon as you add the opening brace the closing brace of the class is highlighted as a brace match.
Comment 1 Dawid Pakula CLA 2014-08-02 09:06:19 EDT
Works correctly with latest snapshot.
Comment 2 Sylvia Tancheva CLA 2015-05-27 10:41:39 EDT
Verified on latest - looks OK. Closing