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 271504

Summary: Incorrect brace matching in Netbeans 8.2
Product: ide Reporter: lfsaestrella
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal Keywords: SIMPLEFIX
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10   
Issue Type: DEFECT Exception Reporter:

Description lfsaestrella 2017-09-20 01:25:00 UTC
Reproducibility: Happens every time

I'm trying to use Netbeans 8.2 to develop a laravel application. I noticed that there are some inconsistencies on brace/parenthesis matching on certain situations.

It's easy to reproduce: Just type an opening parenthesis "(|", and netbeans will close it and put the cursor right in the middle "(|)". Then, type an opening brace "({|)" and hit "enter". The closing brace will never appear and the indentation will be affected, just like in 

({
    )

Then, to reproduce the second scenario: type an opening parenthesis "(|", and netbeans will close it and put the cursor right in the middle. Then type a "space" and go back with the cursor. The result will be "(| )". Then, type an opening brace "({| )" and hit enter. The result will be:
({
    )
}