class Luce::EmojiSyntax
- Luce::EmojiSyntax
- Luce::InlineSyntax
- Reference
- Object
Overview
Matches GitHub Markdown emoji syntax like :smile:
.
There is no formal specification of GitHub's support for this colon-based emoji support, so this syntax is based on the results of Markdown-enabled text fields at github.com
Defined in:
luce/inline_syntaxes/emoji_syntax.crConstructors
-
.new
Emoji "aliases" are mostly limited to lower-case letters, numbers, and underscores, but GitHub also supports
:+1:
and:-1:
.
Instance Method Summary
-
#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, case_sensitive : Bool = true)
new
Constructor Detail
def self.new
#
Emoji "aliases" are mostly limited to lower-case letters, numbers, and
underscores, but GitHub also supports :+1:
and :-1:
.
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
.