e.g. KTextEditor stores one State per line, this avoids useless heap allocation for unhighlighted files