KirillOsenkov / XmlParser

A Roslyn-inspired full-fidelity XML parser with no dependencies and a simple Visual Studio XML language service
Apache License 2.0
328 stars 49 forks source link

XmlDeclarationSyntax doesn't pickup parsing errors? #27

Open michael-hawker opened 4 years ago

michael-hawker commented 4 years ago

If you modify the first line of the example template to be missing the closing '>' character:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?
<X xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template></xsl:template>
  <X/>
  <A.B></A.B>
  <A B="value"></A>
  <A>&#x03C0;</A>
  <A>a &lt;</A>
  <A><![CDATA[bar]]></A>
  <!-- comment -->
</X>

It doesn't get flagged as an error:

image

Was expecting it to flag it like this:

image