4 ms·
Yeah, I don't think there's a good way of highlighting part of a code file, what you're looking at depends on everything before and (to some extent) after it. Y
by serve_yay 11y ago
Yeah, I don't think there's a good way of highlighting part of a code file, what you're looking at depends on everything before and (to some extent) after it. You have to do the whole thing.
- mpu 11y agoThe 'extent' you talk about is exactly the lexer (parser) state, you just have to properly serialize it for the beginning of the buffer to get cheap redisplays. It's not rocket science but almost no editor got it right.
- porges 11y agoYi is one editor that does incremental parsing correctly: https://github.com/yi-editor/yi https://github.com/yi-editor/yi
- deleted 11y ago[deleted]