https://bugs.kde.org/show_bug.cgi?id=500809
Bug ID: 500809
Summary: Apostrophe in text breaks highlighting of YAML markup
Classification: Applications
Product: kate
Version: 24.12.2
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: encoding
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
The use of an apostrophe in a string inside an array causes the syntax
highlighting to fail from the apostrophe to the end of the file. If I double
quote the string the problem doesn't occur. Problem does not occur if I use a
backtick.
STEPS TO REPRODUCE
1. Create a simple YAML file and ensure the file type is set to "markup:yaml".
2. Create a key in a YAML file that takes its values from an array.
3. Enter a string that contains an apostrophe in the array.
OBSERVED RESULT
>From the apostrophe to the end of the file syntax highlighting no longer works.
EXPECTED RESULT
Syntax highlighting should not fail.
SOFTWARE/OS VERSIONS
Fedora 41
GNOME Shell 47.4
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
ADDITIONAL INFORMATION
Example entry that fails:
editors: [David O'Brien]
Example entry that does not fail:
editors: ["David O'Brien"]
--
You are receiving this mail because:
You are watching all bug changes.