Syntax higlighting of the Julia try statement in Kate
christoph at cullmann.io
christoph at cullmann.io
Mon Aug 26 08:45:28 BST 2024
On 2024-08-17 12:22, Raič wrote:
> Dear KDE developers,
>
> I have been a user of the Kate text editor for about twenty years and
> I really appreciate its numerous features. Recenly, I started to learn
> Julia. However, it seems to me that the syntax highlighting for the
> try statement does not work properly. Consider the following
> screenshots attached:
>
> *
> try1.png: try is not recognized at all.
> *
> try21.png: try is recognized (printed in red), but begin is not
> matched to any end.
> *
> try22.png: try is recognized, but not highlighted.
> *
> try23.png: the inner end is matched to catch, but not to try.
> *
> try24.png: the outer end is not highligted, as if did not match any
> beginning of a block.
> *
> try3.png: let is matched to the inner rather that to the outer end.
>
> Looking at the syntax highlighting file:
>
> kate-editor.org/syntax/data/syntax/julia.xml [1]
>
> it seems to me that the try keyword should be in the cflow_begin
> rather in the cflow_eb group. Correct?
>
> I am using version 24.02.1 installed from the Microsoft Store.
> However, the behaviour looks the same on Mac.
>
> I should be extremely grateful if you would fix the issue or give me
> some instructions how to fix it on my own. If you are a wrong address,
> I would appreciate if you would tell me whom to contact.
>
> Finally, as I am not subscribed to the forum, could you please put me
> in CC?
Hi,
you could alter the syntax file and increase it's version in the
language tag
and then add it to the right local directory to try it out.
See here a list of the right paths to add it:
https://invent.kde.org/frameworks/syntax-highlighting#syntax-definition-files
Greetings
Christoph
>
> With many thanks in advance!
>
> Martin Raič
>
> Faculty of Mathematics and Physics
> University of Ljubljana
> Slovenia
>
>
>
> Links:
> ------
> [1] https://kate-editor.org/syntax/data/syntax/julia.xml
More information about the KWrite-Devel
mailing list