https://bugs.kde.org/show_bug.cgi?id=386685
Bug ID: 386685 Summary: Python syntax highlighter thinks escaped quote at end of triple quote comment string is part of string delimiter Product: kate Version: 17.04.2 Platform: openSUSE RPMs OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: syntax Assignee: kwrite-bugs-n...@kde.org Reporter: linus.kardell+kdeb...@gmail.com Target Milestone: --- Created attachment 108764 --> https://bugs.kde.org/attachment.cgi?id=108764&action=edit Example of incorrect highlighting If you type a triple quote string in a Python document, and put an escaped quote character at the end of the string, Kate will think the quote character is part of the end delimiter of the string. This only happens for ineffectual strings, which are treated as comments. I you do something with the string, e.g. assign it to a variable. For example, if you type the below code, "print('test')" will be treated as part of the string: print """test\"""" print('test') And if you type the below, the string will be treated as terminated, even though it's not: """test\""" Both programs in the screenshot are valid programs printing test, though though the highlighter would have you think they're not. -- You are receiving this mail because: You are watching all bug changes.