Bug 16241 – std.xml mistakenly disallows "==" in comments but allows "--"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-07-06T14:29:00Z
Last change time
2016-10-01T11:46:12Z
Keywords
pull
Assigned to
ag0aep6g
Creator
ag0aep6g
Comments
Comment #0 by ag0aep6g — 2016-07-06T14:29:07Z
----
void main()
{
import std.xml;
auto doc1 = new Document("<r><!-- -- --></r>"); /* accepted */
auto doc2 = new Document("<r><!-- == --></r>"); /* rejected */
}
----
Should be the other way around. Seems like a simple typo in the code. Going to make a PR.