<div dir="ltr">Sadly, removing those characters doesn't fix the problem. But you're right that I accidentally left those comment characters in my example.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 3, 2020 at 3:59 PM Dominik Haumann <<a href="mailto:dhaumann@kde.org">dhaumann@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">tscheingeld32@gmail.com</a>> schrieb am Mo., 2. Nov. 2020, 23:10:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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>
</blockquote></div>