<table><tr><td style="">cullmann created this revision.<br />cullmann added reviewers: vkrause, dhaumann.<br />Restricted Application added projects: Kate, Frameworks.<br />Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel.<br />cullmann 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/D14762">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Rational: e.g. KTextEditor uses the repository to manage all syntax definitions.<br />
But to allow the user to use "None" as highlighting, we special case that everywhere and use there Definition().<br />
I think it would be much cleaner if the "None" definition is just part of the repository.<br />
An other approach would be to be able to add it later ourself.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>With this patch applied, I can just use definitions() everywhere in KTextEditor KateSyntaxManager without any special casing.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14762">https://phabricator.kde.org/D14762</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/definition_p.h<br />
src/lib/repository.cpp</div></div></div><br /><div><strong>To: </strong>cullmann, vkrause, dhaumann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>