Help with syntax highlighting for YAML files?
Waqar Ahmed
waqar.17a at gmail.com
Thu Feb 27 07:48:15 GMT 2025
Hi,
This seems like a bug. I urge to report it on the bugzilla
https://bugs.kde.org/ and provide minimal code that can trigger this
issue.
In the meantime, you can fix it locally or perhaps even send a patch?
Our syntax files are here:
https://invent.kde.org/frameworks/syntax-highlighting/-/tree/master/data/syntax
documentation about it:
https://docs.kde.org/stable5/en/kate/katepart/highlight.html
Waqar
On Wed, Feb 26, 2025 at 6:09 PM David O'Brien <daobrien at redhat.com> wrote:
>
> I work as an editor, working primarily in .adoc and .yml files and Kate
> does a great job. I have recently come across a curious behaviour where
> Kate takes the apostrophe in my surname to mean the end of the current
> string or block (I don't know the correct terminology, sorry). This
> means that all syntax highlighting after the apostrophe is lost. I can
> use two apostrophes to "fix" it, but the output is then two apostrophes.
>
> Is there a way I can edit the way Kate sees apostrophes so that it just
> treats them as standard characters?
>
> OBrien <-- No issues.
>
> O'Brien <-- Syntax highlighting is "broken" after the apostrophe.
>
> O`Brien <-- No issues if I use a backtick.
>
> Please CC me on any replies.
>
> Thanks very much.
>
> --
> David
> Introvert/Unclubbable/Cool
>
> An open culture doesn't play politics or care about hierarchies and titles.
>
> Red Hat's core values are freedom, courage, commitment, and accountability.
>
> I acknowledge and pay respect to the past and present Traditional Custodians and Elders of this nation.
>
More information about the KWrite-Devel
mailing list