Description
Is your request related to a specific problem you're having?
I'm making a new code editor, and I'd like to explore adding a Highlight.js backend to it for syntax highlighting, since I suspect it might be much faster than the current TextMate-based one.
The thing is Highlight.js doesn't seem to have tokenization APIs. Ideally I would need some API that tells me what colors things should be at what ranges, with the ability to pause and resume tokenization at any point, otherwise it would block the main thread for an indefinite amount of itme,
The solution you'd prefer / feature you'd like to see added...
I'd like to see a low-level tokenization API added.
Any alternative solutions you considered...
Not adding a Highlight.js backend to the editor.
Additional context...
N/A