Skip to content

Commit

Permalink
Fix for #559
Browse files Browse the repository at this point in the history
During timtoady's cleanup of the Braid API a copy paste error made
it through. This was discovered by cognomial++ some time ago.
This commit fixes the error where the Braid grammar class attribute
should have been initialized with a grammar instance.
  • Loading branch information
Jan-Olof Hendig committed Jan 26, 2020
1 parent 4c96df5 commit 9f3f0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QRegex/Cursor.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ my class Braid is export {

method !braid_init(:$grammar, :$actions, :$package, *%ignore) {
my $new := nqp::create(self);
nqp::bindattr($new, Braid, '$!actions', $grammar);
nqp::bindattr($new, Braid, '$!grammar', $grammar);
nqp::bindattr($new, Braid, '$!actions', $actions);
nqp::bindattr($new, Braid, '$!package', $package);
nqp::bindattr($new, Braid, '$!slangs', nqp::hash());
Expand Down

0 comments on commit 9f3f0a5

Please sign in to comment.