precompute attribute format for context & rules
Summary:
avoid costly lookup, e.g. 3% of runtime of highlighting
simplifies the highlightLine stuff, as we only need to keep track of format changes,
not lookup contexts in addition
fixes that we don't see that formats change if name is equal in different
definitions
accessors are inline, the classes are internal anyways
Test Plan:
make && make test
updated references, now we properly applyFormat if we walk from one into a other
definition with same name formats
Reviewers: vkrause, dhaumann
Reviewed By: vkrause
Subscribers: kwrite-devel, kde-frameworks-devel
Tags: Kate, Frameworks
Differential Revision: https://phabricator.kde.org/D15207