Check for line-wide class changes in highlightWorker

Issue #2624