Enum cmark_syntax::languages::JavaScript
source · pub enum JavaScript {
Error,
Identifier,
Literal,
Glyph,
GlyphCtx,
Keyword,
KeywordCtx,
Special,
Comment,
}Variants§
Trait Implementations§
source§impl Clone for JavaScript
impl Clone for JavaScript
source§fn clone(&self) -> JavaScript
fn clone(&self) -> JavaScript
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for JavaScript
impl Debug for JavaScript
source§impl Highlight for JavaScript
impl Highlight for JavaScript
source§impl<'s> Logos<'s> for JavaScript
impl<'s> Logos<'s> for JavaScript
§type Extras = ()
type Extras = ()
Associated type
Extras for the particular lexer. This can be set using
#[logos(extras = MyExtras)] and accessed inside callbacks. Read more§type Source = str
type Source = str
Source type this token can be lexed from. This will default to
str,
unless one of the defined patterns explicitly uses non-unicode byte values
or byte slices, in which case that implementation will use [u8]. Read more