You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new approach is needed to support #2, #3 and #12.
Currently I'm hooking change events, clearing all marks in changed area, re-parsing lines using ad-hoc regexp and re-typesetting them.
This is slow, buggy, and re-implements logic CM already has to re-run mode on changes. Ideas (largely stolen from this thread):
basic approach: parse by mode + use mode state via getToken.
make sure re-typesetting is needed iff mode state changed.
A new approach is needed to support #2, #3 and #12.
Currently I'm hooking change events, clearing all marks in changed area, re-parsing lines using ad-hoc regexp and re-typesetting them.
This is slow, buggy, and re-implements logic CM already has to re-run mode on changes. Ideas (largely stolen from this thread):
make sure re-typesetting is needed iff mode state changed.
The text was updated successfully, but these errors were encountered: