use v6;
use lib 'lib';
use Test;

use Terminal::ANSI::OO :t;

use Syntax::Highlighters;

my Str:D $matched = t.color(255,0,0) ~ '$' ~ t.color(0,255,255) ~ '<' ~ 'name' ~ '>' ~ t.text-reset;
my Str:D $twigil  = t.color(255,0,0) ~ '$' ~ '*' ~ t.color(0,255,255) ~ 'name' ~ t.text-reset;

is(highlight-var('$<name>') ~ t.text-reset, $matched);
is(highlight-var('$*name') ~ t.text-reset, $twigil);

done-testing;
