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 146591 - Missing for -- comments in DTD
Summary: Missing for -- comments in DTD
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 23:43 UTC by _ pcw
Modified: 2015-09-17 13:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example file to reproduce issue. (895 bytes, text/plain)
2008-09-08 23:44 UTC, _ pcw
Details
snapshot of this file inside IDE showing broken highlighting (88.66 KB, image/png)
2008-09-08 23:44 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2008-09-08 23:43:40 UTC
Hightling for DTD's is confused by unmatched single quotes in comments

Open attached file in editor, see snapshot.
Comment 1 _ pcw 2008-09-08 23:44:05 UTC
Created attachment 69359 [details]
example file to reproduce issue.
Comment 2 _ pcw 2008-09-08 23:44:56 UTC
Created attachment 69360 [details]
snapshot of this file inside IDE showing broken highlighting
Comment 3 Samaresh Panda 2008-10-01 15:54:54 UTC
Visible bug. I'm not an expert in highlighting, but I'll try to fix it for 6.5.
Comment 4 Svata Dedic 2013-04-08 12:11:24 UTC
The DTD highlighter does not recognize '--' comments at all.  See http://www.w3.org/TR/WD-html40-970917/intro/sgmltut.html#h-3.2.2 for a definition.

I do not want to touch the 8 years unmaintained javacc-based grammar for DTD; rather a new lexer based on lexer APIs should be provided.
Comment 5 Martin Balin 2015-09-17 13:17:06 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.