<table><tr><td style="">sraizada updated this revision to Diff 34333.<br />sraizada added a comment.<br />Restricted Application edited subscribers, added: kde-frameworks-devel, kwrite-devel; removed: Frameworks.
</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/D12295">View Revision</a></tr></table><br /><div><div><p>Improved patch, closing brackets get eaten properly in all cases I tested.</p>
<p>The only issue I found is that matching bracket highlighting can be off when entering 'incorrect' sequences of braces. Such as in this example, where the ) in the middle causes the second-to-last parenthesis to be matched with the first one.<br />
<a href="https://phabricator.kde.org/F5852484" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F5852484: highlighting.png</a></p>
<p>The bracket-eating behaviour with such incorrect sequences is to simple ignore the incorrect ) in the middle - all four of the }})) at the end will get eaten. Out of the three other text editors I tested (IntelliJ, Sublime Text, and 'micro'), Sublime and micro also behave this way.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D12295?vs=32417&id=34333">https://phabricator.kde.org/D12295?vs=32417&id=34333</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12295">https://phabricator.kde.org/D12295</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/document/katedocument.cpp<br />
src/document/katedocument.h</div></div></div><br /><div><strong>To: </strong>sraizada, KTextEditor<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, KTextEditor, michaelh, kevinapavew, ngraham, bruns, demsking, head7, cullmann, kfunk, sars, dhaumann, Frameworks<br /></div>