Implemented core for partial syntax highlighting on a document