mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
7080490c68
- Merged scalePreColonHandler and scaleAfterColonHandler into single scaleHandler - Merged modePreColonHandler and modeAfterColonHandler into single modeHandler - Cached all regex patterns as constants above their respective handler functions - Eliminated regex compilation overhead on every keystroke/navigation event - Improved code maintainability by reducing duplication between similar handlers - Preserved exact same functionality while improving performance Each handler now follows a consistent pattern of checking after-colon context first (more specific) then pre-colon context, with all regex patterns pre-compiled for better performance during intensive autocomplete sessions.
@strudel/codemirror
This package contains helpers and extensions to use codemirror6. See vite-vanilla-repl-cm6 as an example of using it.