Fix includedDefinitions, handle definition change in context switch
ClosedPublic

Authored by cullmann on Aug 20 2018, 3:52 PM.

Details

Summary

Fix includedDefinitions, handle definition change in context switch.
They were missing, see PHP/HTML.
I cleaned up the code a bit to just use QVector, no need for a queue, the order is anyways arbitrary (but stable).

BUG: 397659

Test Plan

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
cullmann created this revision.Aug 20 2018, 3:52 PM
Restricted Application added a project: Kate. · View Herald TranscriptAug 20 2018, 3:52 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
cullmann requested review of this revision.Aug 20 2018, 3:52 PM

kate *.* in the autotests/input folder works now without any crash, too.

vkrause accepted this revision.Aug 20 2018, 4:40 PM
This revision is now accepted and ready to land.Aug 20 2018, 4:40 PM
ngraham edited the summary of this revision. (Show Details)Aug 20 2018, 4:55 PM
This revision was automatically updated to reflect the committed changes.

Looks ok to me. Only thing is: with takeLast() you now changed the order of the IncludedDefinitions compared to the previous version. This is of course ok, but in the color config dialog the order is now different than before. Whatever this means... I liked that Modelines and Alert were rather late in the list - on the other hand that was not guaranteed before either... ;)

If we want a nice order, we should sort them at the end like the repo does.

cullmann reopened this revision.Aug 21 2018, 10:42 AM

I got told that I missed some more ContextSwitch variants.

This revision is now accepted and ready to land.Aug 21 2018, 10:42 AM
This revision was automatically updated to reflect the committed changes.