Luce::BlockSyntax
Inherits Reference < Object
Class methods
at_block_end?(parser : BlockParser) : Bool
Return whether or not parser's current line should end the previous block
Generates a valid HTML anchor from the inner text of element.
Instance methods
can_end_block?(parser : BlockParser) : Bool
can_parse?(parser : BlockParser) : Bool
interrupted_by(parser : BlockParser) : BlockSyntax | Nil
Returns the block which interrupts current syntax parsing if there is one,
otherwise returns nil.
Make sure to check if parser#done? is false first.
parse(parser : BlockParser) : Node | Nil
pattern
Return the regex used to identify the beginning of this block, if any.