Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peschwa/41db187968dba5841e6ba7c9acf06bac to your computer and use it in GitHub Desktop.
Save peschwa/41db187968dba5841e6ba7c9acf06bac to your computer and use it in GitHub Desktop.
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