I want to make disambiguation rules that immunize XML code. This rule immunizes an XML declaration:
<rule id="IMMUNIZE_XML_DECLARATION" name="Immunize XML declaration">
<pattern>
<marker>
<token regexp="yes"><</token>
<token>?</token>
<token>xml</token>
<token min="0" max="20"/>
<token>?</token>
<token regexp="yes">></token>
</marker>
</pattern>
<disambig action="immunize"/>
</rule>
But, if the lines of XML code are not separated by an empty line, I see this:
I don’t understand why the rule does not work if there is no blank line. Do you have ideas/suggestions?