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 128381

Summary: Better detection of brace mismatch
Product: javascript Reporter: _ tboudreau <tboudreau>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ tboudreau 2008-02-26 00:40:58 UTC
Say I have

function Foo (bar) {

}

Foo.prototype.bar = function (baz) {

}

and I insert a { by itself in the body of the bar function definition.  I get an error marker at the end of the file.  While this is typical of top-down parsers, it 
would be nice if we could add a little intelligence to try to put the error marker on the first mismatched brace.