https://bugs.kde.org/show_bug.cgi?id=386685
Dominik Haumann <dhaum...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Latest Commit| |https://commits.kde.org/syn | |tax-highlighting/2627d3e421 | |f6e5973258688c50a1391988500 | |cac Status|CONFIRMED |RESOLVED --- Comment #2 from Dominik Haumann <dhaum...@kde.org> --- Git commit 2627d3e421f6e5973258688c50a1391988500cac by Dominik Haumann, on behalf of Nibaldo González. Committed on 14/07/2018 at 11:11. Pushed by dhaumann into branch 'master'. Python: fix escapes in quoted-comments Summary: Escape characters are not detected in triple-quote comments. Comments in quotes are literal strings that do not have assignment or operations, so the interpreter ignores them. These are also used to associate documentation with objects, using the `__doc__` attribute (Docstrings [1][2]). Comments in quotes support the same escapes as normal string. Also, since these can be used as documentation strings, I believe that the correct way is to use the same string escape highlight. * [1] Python. PEP 257 -- Docstring Conventions: https://www.python.org/dev/peps/pep-0257/ * [2] Python docstrings: http://www.pythonforbeginners.com/basics/python-docstrings Reviewers: #framework_syntax_highlighting, #kate, dhaumann, cullmann Reviewed By: #framework_syntax_highlighting, #kate, dhaumann Subscribers: ngraham, kwrite-devel, kde-frameworks-devel Tags: #kate, #frameworks Differential Revision: https://phabricator.kde.org/D14062 M +5 -0 autotests/folding/test.py.fold M +5 -0 autotests/html/test.py.html M +5 -0 autotests/input/test.py M +5 -0 autotests/reference/test.py.ref M +5 -4 data/syntax/python.xml https://commits.kde.org/syntax-highlighting/2627d3e421f6e5973258688c50a1391988500cac -- You are receiving this mail because: You are watching all bug changes.