--0000000000008b1d4205b33a2345 Content-Type: text/plain; charset="UTF-8" Hi Terry, in case you still have an issue: --> 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. Best regards Dominik Terry Scheingeld schrieb am Mo., 2. Nov. 2020, 23:10: > 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. > > 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: > > > > Later in the file is this context: > > lineEndContext="#pop"> > --> > > > In the section is this line: > > > > 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: > > > /home/terry/.local/share/org.kde.syntax-highlighting/syntax/axf.xml:Deprecated > syntax. Context General Comment not addressed by a symbolic name > > An image of that window is attached. > > I'm using Kate Version 17.12.3 > > Any idea what's wrong with my syntax file? > --0000000000008b1d4205b33a2345 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Terry,

in case you still have an issue:

= =C2=A0 =C2=A0 <context name=3D"General Comment" attribute=3D&q= uot;Comment" lineEndContext=3D"#pop">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <IncludeRules context=3D= "##Alerts" />-->

At the end you have a traili= ng --> 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.

Best regards
D= ominik

Terry Scheingeld <tscheingeld32@gmail.com> schrieb am Mo., 2. Nov. 2020, 23:10:<= br>
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= .

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 trigger= ed by the following line:

=C2=A0 =C2=A0 <= ;DetectChar char=3D"#" =C2=A0 context=3D"General Comment&quo= t; attribute=3D"Comment" />

Later in= the file is this context:

=C2=A0 =C2=A0 <context name=3D"General Comment" attribute=3D= "Comment" lineEndContext=3D"#pop">
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 <IncludeRules context=3D"##Alerts" />-->=C2=A0 =C2=A0 </context>


In the= <ItemDatas> section is this line:

=C2=A0 =C2=A0 <itemData name=3D"Comment" defSt= yleNum=3D"dsComment"/>

Whe= n 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 configura= tion. Clicking the details button gives this detail:

=C2=A0 =C2=A0 /home/terry/.local/share/org.kde.syntax-highlighting/synta= x/axf.xml:Deprecated syntax. Context General Comment not addressed by a sym= bolic name

An image of that window is attached= .

I'm using Kate Version 17.12.3
Any idea what's wrong with my syntax file?
--0000000000008b1d4205b33a2345--