https://bugs.kde.org/show_bug.cgi?id=459825
Bug ID: 459825 Summary: syntax-highlighting 5.98.0 breaks kate/ktexteditor from 2018 Classification: Frameworks and Libraries Product: frameworks-syntax-highlighting Version: 5.98.0 Platform: Debian unstable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: framework Assignee: kwrite-bugs-n...@kde.org Reporter: nfx...@gmail.com Target Milestone: --- SUMMARY I'm using kate/ktexteditor from 2018 (ktexteditor f06e83281268701 / kate 2641fc835e5fecb5, version 18.03.70). When upgrading from syntax-highlighting framework release 5.97.0 to 5.98.0, highlighting of C source files broke in a stranger way: after the first number token (like 123), the rest of the line is rendered in red, and braces matching stops working for that line. This happens with source code text that parses as number in C. (Numeric digits embedded in string literals don't cause it.) It seems to affect any and all tokens that follow the number. I've built 5.97.0 locally for kate (so only the ancient kate accesses it), and it works again. There is no such problem with kate 22.04.3. While using ancient kate may seem absurd to you, syntax-highlighting probably accidentally broke compatibility in a subtle way, that might affect other users of this framework. STEPS TO REPRODUCE 1. Build old kate/ktexteditor (git hashes see above) with syntax-highlighting 5.98.0. I can't find the instructions how to do this properly, though. 2. Open any .c source file, using the standard C syntax highlighter. (I have no local syntax .xml files from what I can tell, in fact I wonder where these files are located at all.) OBSERVED RESULT Renders like with 5.97.0, nothing strange visible. EXPECTED RESULT Text following a number token is rendered red, until the line ends. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: no KDE running (available in About System) KDE Plasma Version: KDE Frameworks Version: 5.98.0 Qt Version: 5.15.4 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.