Removed deprecated API in highlighter.