pub enum TokenType {
Comment,
Number,
Str,
Keyword,
Function,
Parameter,
Series,
Operator,
Punctuation,
}Expand description
A syntax-highlight classification for a run of source. This is the single
source of truth for lemon highlighting: every editor surface (the in-browser
CodeMirror playground, citrus-fund, an LSP semantic-tokens provider) colours
from tokens, so highlighting can never drift from the lexer.
Variants§
Implementations§
Trait Implementations§
impl Copy for TokenType
impl Eq for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Freeze for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnsafeUnpin for TokenType
impl UnwindSafe for TokenType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more