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 209432

Summary: Local variable isn't highlighted if caret location is at the end of variable name
Product: groovy Reporter: Martin Janicek <mjanicek>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Martin Janicek 2012-03-11 13:26:13 UTC
package groovy

class B {

    private void something() {
        int i| = 0;
    }
}

=> 
   Expected: Variable 'i' is highlighted
   Actual:   Nothing is highlighted
Comment 1 Martin Janicek 2012-08-15 10:24:43 UTC
The problem occurs only if there is direct variable declaration.

This is highlighted correctly:
"int whatever^"

But this is not:
"int whatever^ = 123"