<div dir="auto"><div>Hi Terry,</div><div dir="auto"><br></div><div dir="auto">in case you still have an issue:</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:monospace;font-size:10.4px">    <context name="General Comment" attribute="Comment" lineEndContext="#pop"></span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px">        <IncludeRules context="##Alerts" />--></span><br><br>At the end you have a trailing --> in this snippet. Not sure whether you have that also in your xml file, since my smartphone does not let me view the xml file.</div><div dir="auto"><br></div><div dir="auto">Best regards</div><div dir="auto">Dominik<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Terry Scheingeld <<a href="mailto:tscheingeld32@gmail.com">tscheingeld32@gmail.com</a>> schrieb am Mo., 2. Nov. 2020, 23:10:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm writing a syntax file for a JSON-like language. I started with a JSON syntax file and have been modifying it a little bit at a time. The syntax file is attached.<br><br>I'm trying to add line-based comments to the syntax. That is, a # character starts a comment, and the comment ends at the end of the line. I copied some of the code from a Ruby syntax file. The problem is triggered by the following line:<br><br><font face="monospace">    <DetectChar char="#"   context="General Comment" attribute="Comment" /></font><div><br></div><div>Later in the file is this context:</div><div><br></div><div><font face="monospace">    <context name="General Comment" attribute="Comment" lineEndContext="#pop"><br>        <IncludeRules context="##Alerts" />--><br>    </context></font><br></div><div><br></div><div>In the <ItemDatas> section is this line:</div><div><br></div><div><font face="monospace">    <itemData name="Comment" defStyleNum="dsComment"/></font><br></div><div><br></div><div>When I open a file with that syntax, I get a window that says "There were warning(s) and/or error(s) while parsing the syntax highlighting configuration. Clicking the details button gives this detail:</div><div><br></div><div>    /home/terry/.local/share/org.kde.syntax-highlighting/syntax/axf.xml:Deprecated syntax. Context General Comment not addressed by a symbolic name<br></div><div><br></div><div>An image of that window is attached.</div><div><br></div><div>I'm using Kate Version 17.12.3</div><div><br></div><div>Any idea what's wrong with my syntax file?</div></div>
</blockquote></div></div></div>