class Luce::AutolinkSyntax

Overview

Matches autolinks like <http://foo.com>.

Defined in:

luce/inline_syntaxes/autolink_syntax.cr

Constructors

Instance Method Summary

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, case_sensitive : Bool = true) new

Constructor Detail

def self.new #

Instance Method Detail

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.