Re: Help with syntax highlighting for YAML files?
Waqar Ahmed <[email protected]> Thu, 27 Feb 2025 12:48:15 +0500
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <CAPesRH4CmQk-fwZJdOrDxbU8bhY8_mxRJyOX8-YVi_9zG8bHGQ@mail.gmail.com> |
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/sy= ntax documentation about it: https://docs.kde.org/stable5/en/kate/katepart/highlight.html Waqar On Wed, Feb 26, 2025 at 6:09=E2=80=AFPM David O'Brien <[email protected]>= 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 title= s. > > Red Hat's core values are freedom, courage, commitment, and accountabilit= y. > > I acknowledge and pay respect to the past and present Traditional Custodi= ans and Elders of this nation. >