diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2019-01-23 10:56:37 +0100 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2019-01-23 10:56:37 +0100 |
commit | e7c292e918f318eccb6b756170640517331eee7a (patch) | |
tree | c9ae882fed6ed2798047ac6fabb7a68c23a81183 /pango/emoji_presentation_scanner.rl | |
parent | 546f4c242d6f4fe312de3b7c918a848e5172e18d (diff) | |
download | pango-e7c292e918f318eccb6b756170640517331eee7a.tar.gz |
handle VS15 emoji sequences
Diffstat (limited to 'pango/emoji_presentation_scanner.rl')
-rw-r--r-- | pango/emoji_presentation_scanner.rl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pango/emoji_presentation_scanner.rl b/pango/emoji_presentation_scanner.rl index c13ae279..4736f462 100644 --- a/pango/emoji_presentation_scanner.rl +++ b/pango/emoji_presentation_scanner.rl @@ -62,14 +62,15 @@ emoji_presentation = EMOJI_EMOJI_PRESENTATION | TAG_BASE | EMOJI_MODIFIER_BASE | emoji_tag_sequence | emoji_keycap_sequence | emoji_zwj_sequence | emoji_combining_encloding_circle_backslash_sequence; -emoji_run = emoji_presentation+; +emoji_run = emoji_presentation; text_presentation_emoji = any_emoji VS15; text_run = text_presentation_emoji | any; text_and_emoji_run := |* +text_presentation_emoji => { found_text_presentation_sequence }; emoji_run => { found_emoji_presentation_sequence }; -text_run => { found_text_presentation_sequence }; +any => { found_text_presentation_sequence }; *|; }%% @@ -78,7 +79,6 @@ static gboolean scan_emoji_presentation (const unsigned char* buffer, unsigned buffer_size, unsigned cursor, - unsigned* last, unsigned* end) { const unsigned char *p = buffer + cursor; @@ -91,6 +91,7 @@ scan_emoji_presentation (const unsigned char* buffer, write init; write exec; }%% - return FALSE; + + g_assert_not_reached (); } |