https://bugs.kde.org/show_bug.cgi?id=487978
Bug ID: 487978 Summary: Shell syntax highlighting does not handle escaped line breaks properly Classification: Applications Product: kate Version: 23.08.1 Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: verta...@gmail.com Target Milestone: --- Created attachment 170102 --> https://bugs.kde.org/attachment.cgi?id=170102&action=edit shell file that demonstrates highlighting issue when opened in kate *** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** SUMMARY I have attached an example shell file for which syntax highlighting is broken, but the shell is valid. Note the breakage seems to occur because of an escaped line break inside a conditional statement causing a leading double quote that appears to be escaped instead of the end of line. STEPS TO REPRODUCE 1. Open the attached example in Kate or Kwrite 2. Observe the syntax highlighting OBSERVED RESULT The start of the string in the second half of the conditional appears to be escaped leading to incorrect syntax highlighting for the rest of the file. EXPECTED RESULT The escape character should be applied to the end-of-line instead of the double quote. SOFTWARE/OS VERSIONS Tested with Kate 23.08.1 on a custom distro. I can try again on Kubuntu 24.04 when I get home. ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.