[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: not addressed by a symbolic name
From:       Dominik Haumann <dhaumann () kde ! org>
Date:       2020-11-03 20:59:19
Message-ID: CALi_srD9ziTL7tB4tuyaHU6f7g+BwOE8e4LG-GG2cW8cKJahZQ () mail ! gmail ! com
[Download RAW message or body]

Hi Terry,

in case you still have an issue:

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

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 <tscheingeld32@gmail.com> 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:
>
>     <DetectChar char="#"   context="General Comment" attribute="Comment" />
>
> Later in the file is this context:
>
>     <context name="General Comment" attribute="Comment"
> lineEndContext="#pop">
>         <IncludeRules context="##Alerts" />-->
>     </context>
>
> In the <ItemDatas> section is this line:
>
>     <itemData name="Comment" defStyleNum="dsComment"/>
>
> 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?
>

[Attachment #3 (text/html)]

<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">      &lt;context name=&quot;General \
Comment&quot; attribute=&quot;Comment&quot; \
lineEndContext=&quot;#pop&quot;&gt;</span><br \
style="font-family:monospace;font-size:10.4px"><span \
style="font-family:monospace;font-size:10.4px">            &lt;IncludeRules \
context=&quot;##Alerts&quot; /&gt;--&gt;</span><br><br>At the end you have a trailing \
--&gt; 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 &lt;<a \
href="mailto:tscheingeld32@gmail.com">tscheingeld32@gmail.com</a>&gt; 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&#39;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&#39;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">      &lt;DetectChar char=&quot;#&quot;    context=&quot;General \
Comment&quot; attribute=&quot;Comment&quot; /&gt;</font><div><br></div><div>Later in \
the file is this context:</div><div><br></div><div><font face="monospace">      \
&lt;context name=&quot;General Comment&quot; attribute=&quot;Comment&quot; \
lineEndContext=&quot;#pop&quot;&gt;<br>            &lt;IncludeRules \
context=&quot;##Alerts&quot; /&gt;--&gt;<br>      \
&lt;/context&gt;</font><br></div><div><br></div><div>In the &lt;ItemDatas&gt; section \
is this line:</div><div><br></div><div><font face="monospace">      &lt;itemData \
name=&quot;Comment&quot; \
defStyleNum=&quot;dsComment&quot;/&gt;</font><br></div><div><br></div><div>When I \
open a file with that syntax, I get a window that says &quot;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&#39;m using Kate Version \
17.12.3</div><div><br></div><div>Any idea what&#39;s wrong with my syntax \
file?</div></div> </blockquote></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic