class Luce::AutolinkExtensionSyntax
- Luce::AutolinkExtensionSyntax
- Luce::InlineSyntax
- Reference
- Object
Overview
Matches autolinks like http://foo.com
Defined in:
luce/inline_parser.crConstructors
Instance Method Summary
-
#matches?(parser : InlineParser, start_match_pos : Int32 | Nil = nil) : Bool
Tries to match at the parser's current position.
-
#on_match(parser : InlineParser, match : Regex::MatchData) : Bool
Processes match, adding nodes to parser and possibly advancing parser.
Instance methods inherited from class Luce::InlineSyntax
matches?(parser : InlineParser, start_match_pos : Int32 | Nil = nil) : Bool
matches?,
on_match(parser : InlineParser, match : Regex::MatchData) : Bool
on_match,
pattern : Regex
pattern
Constructor methods inherited from class Luce::InlineSyntax
new(pattern : String, start_character : Int32 | Nil = nil)
new
Constructor Detail
Instance Method Detail
Description copied from class Luce::InlineSyntax
Tries to match at the parser's current position.
The parser's position can be overriden with start_match_pos. Return whether or not the pattern successfully matched.
def on_match(parser : InlineParser, match : Regex::MatchData) : Bool
#
Description copied from class Luce::InlineSyntax
Processes match, adding nodes to parser and possibly advancing parser.
Will return whether the caller should advance parser by
match[0].size
.