Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364096 - Automatically Close Braces Busted At Bottom of Class
Summary: Automatically Close Braces Busted At Bottom of Class
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 minor (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-17 19:54 EST by Dan CLA
Modified: 2020-05-14 11:08 EDT (History)
3 users (show)

See Also:


Attachments

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