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 249311 - XML Editor highlight wrong tag
Summary: XML Editor highlight wrong tag
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-12 08:15 UTC by akobberup
Modified: 2015-05-17 05:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of how the error manifests (8.64 KB, image/png)
2014-12-12 08:15 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2014-12-12 08:15:45 UTC
Created attachment 151063 [details]
Screenshot of how the error manifests

I often see the xml editor highlighting the wrong start-tag when the cursor is in a close-tag. 
When the cursor is in the start tag, the correct close tag is highlighted.

Product Version: NetBeans IDE Dev (Build 201412090001)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 8 version 6.2 running on amd64; Cp1252; da_DK (nb)
Comment 1 Svata Dedic 2015-05-14 10:51:26 UTC
Reproduced, the culprit is the self-closing tag.
Comment 2 Svata Dedic 2015-05-14 13:55:16 UTC
Fixed in jet-main#29add30ce521
Comment 3 Quality Engineering 2015-05-17 05:24:53 UTC
Integrated into 'main-silver', will be available in build *201505170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/29add30ce521
User: Svata Dedic <sdedic@netbeans.org>
Log: #249311: reimplemented backward tag search