Opened 11 years ago

Closed 11 years ago

#461 closed defect (fixed)

Syntax check hanging with perl6 infix & regex

Reported by: richardh Owned by: azawawi
Priority: major Milestone: Satisfy all the requirements of PerlMonks
Component: editor Version: 0.40
Keywords: Cc:


This code is correctly parsed:
use v6;
regex anint { <digit>+ $ };
proto infix:<add> (@left,@right) { ... };

This code hangs the syntax checker:
use v6;
proto infix:<add> (@left,@right) { ... };
regex anint { <digit>+ $ };

Not sure if this is Padre or STD.

Running under Ubuntu 9.08

This is perl, v5.10.0 built for i486-linux-gnu-thread-multi

$ perl -MWx -e'printf(qq(Wx Version=($Wx::VERSION) %s unicode=(%s)\n), Wx::wxVERSION_STRING(), Wx::wxUNICODE())'
Wx Version=(0.91) wxWidgets 2.8.9 unicode=(1)

Change History (5)

comment:1 Changed 11 years ago by richardh

just checked: it appears to be associated with STD not Padre. There is no problem with Rakudo.

comment:2 Changed 11 years ago by azawawi

Yes it is definitely an problem. Thanks for reporting it. warning/error:
Deep recursion on subroutine "Cursor::_AUTOLEXpeek" at C:/strawberry/perl/site/l
ib/ line 324.
Deep recursion on subroutine "Cursor::_AUTOLEXgen" at C:/strawberry/perl/site/li
b/ line 311.
Out of memory!

comment:3 Changed 11 years ago by azawawi

  • Owner set to azawawi
  • Status changed from new to assigned

comment:4 Changed 11 years ago by azawawi

TimToady? has fixed it in pugs r27632.

I will try to merge it soon.

comment:5 Changed 11 years ago by azawawi

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r6341
Please upgrade S:H:P6 to 0.65 from CPAN or install it directly from Padre/Syntax?-Highlight-Perl6 repository.

Note: See TracTickets for help on using tickets.