4 ms·
If the code was valid at some point (e.g. when opening it) it could remember the old colorings of the rest of the code. Though handling opening and closing a s
by _flux 3y ago
If the code was valid at some point (e.g. when opening it) it could remember the old colorings of the rest of the code.
Though handling opening and closing a string and still ending up in an illegal state would need some more logic.. Maybe not worth it.
- morelisp 3y ago> If the code was valid at some point (e.g. when opening it) it could remember the old colorings of the rest of the code. If you continue down this line of thinking a few more steps, eventually you produce tree-sitter.