rewrite parser and highlighter wrappers