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 197709 - Brace highlighting
Summary: Brace highlighting
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-13 14:58 UTC by ranyardm
Modified: 2011-05-05 06:21 UTC (History)
1 user (show)

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 ranyardm 2011-04-13 14:58:32 UTC
The following code confuses the syntax highlighter in php (nb7 rc2, and beta2 tested).

if (true) {
  echo "Some string with braced ${variables['inanarray']} in it.";
}

if you place your cursor on the first opening bracket, the syntax highlighter highlights the first closing bracket instead of the last.  Conversely, if you place it on the first closing bracket, it highlights the first opening bracket not the second.  It doesn't do anything with the last.
Comment 1 OndrejBrejla 2011-04-14 08:15:07 UTC
It's reproducible.
Comment 2 ranyardm 2011-05-03 08:52:46 UTC
Still present in 7.0 full release.

Would really have been nice for someone to check the "New" bug list before pushing out a release and at least milestone this kind of target.

*sigh*
Comment 3 Petr Pisl 2011-05-03 09:43:55 UTC
I'm sorry, it's just about the time and priority of the bug. I will try to fix it.
Comment 4 Petr Pisl 2011-05-03 13:09:53 UTC
Fixed in web main. You can try it in the next development build. Will be part of NB 7.0.1.
Comment 5 Quality Engineering 2011-05-05 06:21:42 UTC
Integrated into 'main-golden', will be available in build *201105050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/225974b0a858
User: Petr Pisl <ppisl@netbeans.org>
Log: #197709 - Brace highlighting