Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360439 - [editor] Wrong folding with function inside an object
Summary: [editor] Wrong folding with function inside an object
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 09:53 EDT by Shedokan CLA
Modified: 2015-01-21 05:40 EST (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 Shedokan CLA 2011-10-10 09:53:19 EDT
Build Identifier: 

With this code:
function someFunction(){
	// Some comment
	bla = '';
}

var a = {
	someMethod: function(){
	}
};

The editor tells me I can fold "bla = '';" and when I do it folds up until the end of the "a" object.

But when I remove "someMethod" or remove the comment or move the comment to the same line as "bla" the problem disappears.
It also bugs with any type of comment(Multiline and JSDoc)

Reproducible: Always

Steps to Reproduce:
1. Open a new javascript file
2. paste the code I gave