Update tokenizer code for CodeMirror v4

This fixes #14