https://bugs.kde.org/show_bug.cgi?id=440089

            Bug ID: 440089
           Summary: python syntax highlighting breaks with binary strings
           Product: kate
           Version: 21.04.3
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: shit...@gmail.com
  Target Milestone: ---

Created attachment 140221
  --> https://bugs.kde.org/attachment.cgi?id=140221&action=edit
screenshot of issue

SUMMARY
Binary string highlighting affects the entire file after the string ends.
So if strings are highlighted red, typing `b"test"` will cause all text after
that to appear red
note that the code runs as expected, so its not a syntax error


STEPS TO REPRODUCE
1. Open python file in kate
2. Add a line like print(b"test") to the file

OBSERVED RESULT
All text after the binary string is highlighted the same color as the string
(changing the color doesn't affect the bug)

EXPECTED RESULT
the color should revert back to normal after closing quote

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
note that I am using Qtile as a standalone WM but still have a full KDE
environment installed but not in use.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to