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 - Incorrect brace matching in Netbeans 8.2
Summary: Incorrect brace matching in Netbeans 8.2
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2017-09-20 01:25 UTC by lfsaestrella
Modified: 2017-09-20 01:25 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 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:
({
    )
}