Syntax higlighting of the Julia try statement in Kate

Raič, Martin martin.raic at fmf.uni-lj.si
Sat Aug 17 11:22:27 BST 2024


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<https://kate-editor.org/syntax/data/syntax/julia.xml>

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?

With many thanks in advance!

Martin Raič

Faculty of Mathematics and Physics
University of Ljubljana
Slovenia



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try1.png
Type: image/png
Size: 165785 bytes
Desc: try1.png
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try3.png
Type: image/png
Size: 168436 bytes
Desc: try3.png
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try21.png
Type: image/png
Size: 168834 bytes
Desc: try21.png
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try22.png
Type: image/png
Size: 169121 bytes
Desc: try22.png
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try23.png
Type: image/png
Size: 169221 bytes
Desc: try23.png
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try24.png
Type: image/png
Size: 169131 bytes
Desc: try24.png
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Version.png
Type: image/png
Size: 291621 bytes
Desc: Version.png
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240817/72b1d46e/attachment-0013.png>


More information about the KWrite-Devel mailing list