<table><tr><td style="">nibags created this revision.<br />nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann.<br />Herald added projects: Kate, Frameworks.<br />Herald 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/D15773">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>After upgrading to KDE Frameworks 5.50.0, Kate crashes when detecting open AppArmor rules (the AppArmor rules are closed with a comma. If the user doesn't write a comma, the syntax highlighting underlines the statement of the following rule. This is defined in the <tt style="background: #ebebeb; font-size: 13px;">_end_rule_irnc</tt> context of the XML file.)</p>

<p>The problem occurs with the use of <tt style="background: #ebebeb; font-size: 13px;">#pop#pop!context</tt> in the <tt style="background: #ebebeb; font-size: 13px;">_end_rule_irnc</tt> context, only in KF5.50. However, apparently, this only happens in very large files. For example, this problem occurs to me when I open the new test file, updated in this diff. However, I do not know the exact cause of this error...</p>

<p>On line 184 of the test file, I put some examples of open AppArmor rules.</p>

<p>Also, some changes are made in the colors so that the highlighting looks better in the last update of Solarized schemes.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-apparmor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15773">https://phabricator.kde.org/D15773</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/usr.bin.apparmor-profile-test.fold<br />
autotests/html/usr.bin.apparmor-profile-test.html<br />
autotests/input/usr.bin.apparmor-profile-test<br />
autotests/reference/usr.bin.apparmor-profile-test.ref<br />
data/syntax/apparmor.xml</div></div></div><br /><div><strong>To: </strong>nibags, Framework: Syntax Highlighting, dhaumann, cullmann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>