Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Fix protoregex bug with classnames beginning with Q.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jul 19, 2010
1 parent 6aedfc2 commit 5725781
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Regex/Cursor-protoregex-peek.pir
Expand Up @@ -74,7 +74,7 @@ Perform a match for protoregex C<name>.
rx = shift rx_it
rxaddr = get_addr rx
$P0 = mcalled[rxaddr]
unless null $P0 goto token_next
unless null $P0 goto cand_loop
result = self.rx()
mcalled[rxaddr] = mcalled
if result goto done
Expand Down
16 changes: 15 additions & 1 deletion t/nqp/25-class.t
Expand Up @@ -2,7 +2,7 @@

# class

plan(1);
plan(2);

class XYZ {
method foo($x) {
Expand All @@ -13,3 +13,17 @@ class XYZ {
my $xyz := XYZ.new();

$xyz.foo('ok 1');


# test that a class can start with Q

class QRS {
method foo($x) {
say($x);
}
}

my $qrs := QRS.new();

$qrs.foo('ok 2');

0 comments on commit 5725781

Please sign in to comment.