/**
* Change the theme. Once called, no previous `ruleStack` should be used anymore.
*/
But, is that actually true if I always call setTheme with the same theme right before each tokenizeLine2 call? Or do I really need to basically create a dedicated registry for each theme that I've registered if I want to support tokenizing using different themes concurrently?
Registry.prototype.setTheme
has this comment:But, is that actually true if I always call
setTheme
with the same theme right before eachtokenizeLine2
call? Or do I really need to basically create a dedicated registry for each theme that I've registered if I want to support tokenizing using different themes concurrently?