pub struct LexerOptions {
pub comments: Comments,
pub lex_jsx: bool,
pub allow_unsupported_characters_in_jsx_attribute_keys: bool,
pub allow_expressions_in_jsx: bool,
pub top_level_html: bool,
}Fields§
§comments: CommentsWhether to append tokens when lexing. If false will just ignore
lex_jsx: boolWhether to parse JSX. TypeScript’s <number> 2 breaks the lexer so this can be disabled to allow
for that syntax
allow_unsupported_characters_in_jsx_attribute_keys: boolTODO temp
allow_expressions_in_jsx: bool§top_level_html: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for LexerOptions
impl RefUnwindSafe for LexerOptions
impl Send for LexerOptions
impl Sync for LexerOptions
impl Unpin for LexerOptions
impl UnwindSafe for LexerOptions
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