Files
strudel/packages/codemirror
Matthew Pocock 7080490c68 Merge handlers and cache regexes in autocomplete
- 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.
2025-09-18 21:52:40 +01:00
..
2025-06-18 20:44:09 -04:00
2025-04-19 16:10:38 -04:00
2023-05-05 15:13:17 +02:00
2024-03-17 04:36:48 +01:00
2025-06-18 20:44:09 -04:00
2025-09-13 16:21:09 -05:00
2024-02-08 12:19:11 +01:00
2024-12-16 23:11:01 +01:00

@strudel/codemirror

This package contains helpers and extensions to use codemirror6. See vite-vanilla-repl-cm6 as an example of using it.