simvx.core.ui.syntax_highlighter¶
Syntax highlighting tokenizer for Python source code.
Provides line-by-line tokenization with multi-line string state tracking, token caching, and incremental cache invalidation.
Module Contents¶
Classes¶
Mixin providing Python syntax tokenization and caching. |
API¶
- class simvx.core.ui.syntax_highlighter.SyntaxHighlighterMixin[source]¶
Mixin providing Python syntax tokenization and caching.
The host class (
CodeTextEdit) supplies the line buffer, cursor position, and the syntax-highlighting toggle; those members are declared below underTYPE_CHECKINGso the type checker sees the contract without creating runtime attributes.