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