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 175109 - [syntax error highlighting] - wrong part of code is underline
Summary: [syntax error highlighting] - wrong part of code is underline
Status: RESOLVED DUPLICATE of bug 211165
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 13:34 UTC by Filip Zamboj
Modified: 2012-04-13 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 Filip Zamboj 2009-10-21 13:34:44 UTC
Product Version: NetBeans IDE 6.8 Beta (Build 200910020947)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

consider this code with a mistake in declaring class global variable: 
abstract class Person { 
    $this->age; //a mistake 
    abstract function customizedFunction() {}
    function getAge() {
        return $this->age; 
    }
    function setAge($age) {
        $this->age = $age; 
    } // THIS BRACKET IS UNDERLINED 
}

I was writing the code and first time I realized that something is wrong was when I was declaring a setAge function.
This line was underlined while I was typing but I though that because of still not finished line. I end up with a
function and last bracket underlined but the mistake was on variable declaration.
Comment 1 Petr Pisl 2011-09-23 13:45:40 UTC
Needs to improve error handling.
Comment 2 Ondrej Brejla 2012-04-13 14:24:06 UTC

*** This bug has been marked as a duplicate of bug 211165 ***