pub struct LiquidLanguage {
pub trim_blocks: bool,
pub lstrip_blocks: bool,
pub keep_trailing_newline: bool,
pub variable_start: String,
pub variable_end: String,
pub tag_start: String,
pub tag_end: String,
pub comment_start: String,
pub comment_end: String,
}Expand description
Language definition for Liquid templates
Fields§
§trim_blocks: boolWhether to trim whitespace around delimiters
lstrip_blocks: boolWhether to lstrip blocks
keep_trailing_newline: boolWhether to keep trailing newlines
variable_start: StringVariable start delimiter
variable_end: StringVariable end delimiter
tag_start: StringTag start delimiter
tag_end: StringTag end delimiter
comment_start: StringComment start delimiter
comment_end: StringComment end delimiter
Implementations§
Trait Implementations§
Source§impl<'a> Builder<LiquidLanguage> for LiquidBuilder<'a>
impl<'a> Builder<LiquidLanguage> for LiquidBuilder<'a>
Source§fn build<'b, S: Source + ?Sized>(
&self,
_text: &S,
_edits: &[TextEdit],
_cache: &'b mut impl BuilderCache<LiquidLanguage>,
) -> BuildOutput<LiquidLanguage>
fn build<'b, S: Source + ?Sized>( &self, _text: &S, _edits: &[TextEdit], _cache: &'b mut impl BuilderCache<LiquidLanguage>, ) -> BuildOutput<LiquidLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for LiquidLanguage
impl Clone for LiquidLanguage
Source§fn clone(&self) -> LiquidLanguage
fn clone(&self) -> LiquidLanguage
Returns a duplicate 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 LiquidLanguage
impl Debug for LiquidLanguage
Source§impl Default for LiquidLanguage
impl Default for LiquidLanguage
Source§impl Hash for LiquidLanguage
impl Hash for LiquidLanguage
Source§impl Language for LiquidLanguage
impl Language for LiquidLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Markup
const CATEGORY: LanguageCategory = LanguageCategory::Markup
The category of the language.
Source§type TokenType = LiquidTokenType
type TokenType = LiquidTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = LiquidElementType
type ElementType = LiquidElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = LiquidRoot<'static>
type TypedRoot = LiquidRoot<'static>
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<LiquidLanguage> for LiquidLexer<'config>
impl<'config> Lexer<LiquidLanguage> for LiquidLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<LiquidLanguage>,
) -> LexOutput<LiquidLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<LiquidLanguage>, ) -> LexOutput<LiquidLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<LiquidLanguage> for LiquidParser<'config>
impl<'config> Parser<LiquidLanguage> for LiquidParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<LiquidLanguage>,
) -> ParseOutput<'a, LiquidLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<LiquidLanguage>, ) -> ParseOutput<'a, LiquidLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for LiquidLanguage
impl PartialEq for LiquidLanguage
impl Eq for LiquidLanguage
impl StructuralPartialEq for LiquidLanguage
Auto Trait Implementations§
impl Freeze for LiquidLanguage
impl RefUnwindSafe for LiquidLanguage
impl Send for LiquidLanguage
impl Sync for LiquidLanguage
impl Unpin for LiquidLanguage
impl UnsafeUnpin for LiquidLanguage
impl UnwindSafe for LiquidLanguage
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