Pure tokenizer: maps source text to colored spans. No linting, no diagnostics — color only. Subclass for custom languages. More...
#include <Malena/Graphics/Text/CodeEditor.h>
Public Member Functions | |
| virtual | ~SyntaxHighlighter ()=default |
| virtual std::vector< SyntaxToken > | tokenize (const std::string &text) const =0 |
Pure tokenizer: maps source text to colored spans. No linting, no diagnostics — color only. Subclass for custom languages.
Definition at line 37 of file CodeEditor.h.
|
virtualdefault |
|
nodiscardpure virtual |
Return colored spans for text (only the spans that need coloring; everything else is left at the editor's default text color).
Implemented in ml::BasicSyntaxHighlighter.