This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: Simplify \N{U+...} code
authorFather Chrysostomos <sprout@cpan.org>
Mon, 2 Feb 2015 06:38:00 +0000 (22:38 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 2 Feb 2015 20:38:33 +0000 (12:38 -0800)
commitfb2eed93790ce9b6d4c7cfd4bca70e7e1769d10d
tree10df4c57d335fa6846242a2f013e26529e845907
parentc3890f9c66df165fa44ec6d4da220ab976c4d31d
toke.c: Simplify \N{U+...} code

If we are parsing a \N{U+XXX.YYY} construct in a regexp literal, we do
not need to pass it to grok_hex, because we do not need the numeric
value at this point.  The regexp engine will be calling grok_hex
again, after all.  A simple scan for hex digits should be faster, and
makes the code a little simpler, too.
toke.c