This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 119378 - code folding folds only a part of the block to be folded
Summary: code folding folds only a part of the block to be folded
Status: RESOLVED WORKSFORME
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 17:07 UTC by gkrish
Modified: 2008-10-30 14:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gkrish 2007-10-18 17:07:17 UTC
Create a basic editor plugin for groovy.
Add code folding for classes like 
FOLD:ClassDeclaration 
where ClassDeclaration is the grammar for representing a class.

When you write a class say A like
class A {
   int x;
   int y;
   int z;
}

The code folding folds only the first two lines.

I found this in the latest builds (both on 7th Oct and 17th Oct builds. Have raised this as P2 as this module
is the backbone of many scripting languages!
Comment 1 Daniel Prusa 2007-11-14 14:34:35 UTC
Is the groovy nbs file containing grammar and fold definition available? I have found nsb just with tokens definition in
trunk (groovy module). Can you attach the groovy nbs you have used for reproduction?
Comment 2 Daniel Prusa 2007-11-27 09:05:01 UTC
Not reproducible, moreover, code related to code folding has been rewritten, so this might be already fixed. Reopen, if
you encounter it again and provide files for reproduction.