<table><tr><td style="">nibags created this revision.<br />Restricted Application added projects: Kate, Frameworks.<br />Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel.<br />nibags requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14062">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Bug #386685: <a href="https://bugs.kde.org/show_bug.cgi?id=386685" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=386685</a></p>
<p>Escape characters are not detected in triple-quote comments. <br />
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 <tt style="background: #ebebeb; font-size: 13px;">__doc__</tt> attribute (Docstrings [1][2]).</p>
<p>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.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">[1] Python. PEP 257 -- Docstring Conventions: <a href="https://www.python.org/dev/peps/pep-0257/" class="remarkup-link" target="_blank" rel="noreferrer">https://www.python.org/dev/peps/pep-0257/</a></li>
<li class="remarkup-list-item">[2] Python docstrings: <a href="http://www.pythonforbeginners.com/basics/python-docstrings" class="remarkup-link" target="_blank" rel="noreferrer">http://www.pythonforbeginners.com/basics/python-docstrings</a></li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-python</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14062">https://phabricator.kde.org/D14062</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/syntax/python.xml</div></div></div><br /><div><strong>To: </strong>nibags<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>