markdown2 :: MdThematicBreakParser :: pattern=
Thematic break patternmarkdown2 $ MdThematicBreakParser :: BLOCK
Kind of block under constructionmarkdown2 $ MdThematicBreakParser :: SELF
Type of this instance, automatically specialized in every classmarkdown2 $ MdThematicBreakParser :: finalize
Finalize the currentblock
markdown2 $ MdThematicBreakParser :: try_continue
Canself
continue from the current index
in parser
?
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdBlockParser :: column_start=
Column startmarkdown2 :: MdBlockParser :: content_offset
Column where the content startsmarkdown2 :: MdBlockParser :: content_offset=
Column where the content startscore :: Object :: defaultinit
markdown2 :: MdBlockParser :: initialize
Initialize the currentblock
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
markdown2 :: MdBlockParser :: location=
Location at startcore :: Object :: output_class_name
Display class name on stdout (debug only).markdown2 :: MdBlockParser :: parse_inlines
Parseblock
lines
markdown2 :: MdThematicBreakParser :: pattern=
Thematic break patternmarkdown2 :: MdBlockParser :: try_continue
Canself
continue from the current index
in parser
?
# Thematic breaks parser
class MdThematicBreakParser
super MdBlockParser
redef type BLOCK: MdThematicBreak
redef var block = new MdThematicBreak(location, pattern) is lazy
# Thematic break pattern
var pattern: String
redef fun try_continue(state) do return null
redef fun finalize(parser) do
super
location.line_end = line_start
location.column_end = column_start + pattern.length - 1
end
end
lib/markdown2/markdown_block_parsing.nit:1177,1--1195,3