class Luce::DummyBlockSyntax
- Luce::DummyBlockSyntax
- Luce::BlockSyntax
- Reference
- Object
Overview
Walks the parser forward through the lines does not match any BlockSyntax
.
Returns an UnparsedContent
with the unmatched lines as text_content
.
Defined in:
luce/block_parser.crInstance Method Summary
- #can_end_block?(parser : BlockParser) : Bool
- #can_parse?(parser : BlockParser) : Bool
- #parse(parser : BlockParser) : Node
-
#pattern : Regex
Return the regex used to identify the beginning of this block, if any.
Instance methods inherited from class Luce::BlockSyntax
can_end_block?(parser : BlockParser)
can_end_block?,
can_parse?(parser : BlockParser)
can_parse?,
parse(parser : BlockParser) : Node | Nil
parse,
parse_child_lines(parser : BlockParser) : Array(String | Nil)
parse_child_lines,
pattern : Regex
pattern
Class methods inherited from class Luce::BlockSyntax
at_block_end?(parser : BlockParser) : Bool
at_block_end?,
generate_anchor_hash(element : Element) : String
generate_anchor_hash
Instance Method Detail
def pattern : Regex
#
Description copied from class Luce::BlockSyntax
Return the regex used to identify the beginning of this block, if any.