Forked from zoffixznet/gist:b0c00840ea52a15fdbefda892fc2b1ee
Last active
July 19, 2016 17:06
-
-
Save peschwa/41db187968dba5841e6ba7c9acf06bac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use nqp; | |
use QRegex:from<NQP>; | |
BEGIN { | |
nqp::bindkey( | |
%*LANG, "MAIN", %*LANG<MAIN>.HOW.mixin(%*LANG<MAIN>, role { | |
token quote:sym<emote> { | |
"✌" ~ "✌" | |
{ | |
my $shared := nqp::getattr(nqp::decont($/.CURSOR), Cursor, '$!shared'); | |
nqp::bindattr($shared, ParseShared, '$!orig', nqp::unbox_s($/.CURSOR.orig)) | |
} | |
<nibble(self.quote_lang(%*LANG<Quote>, "✌", "✌", nqp::list('q')))> | |
} | |
}) | |
); | |
} | |
say ✌lulz✌ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment