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

Summary: Missing for -- comments in DTD
Product: xml Reporter: _ pcw <pcw>
Component: CodeAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: example file to reproduce issue.
snapshot of this file inside IDE showing broken highlighting

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.