Ticket #461 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

comment:1 Changed 5 years ago by richardh

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

comment:2 Changed 5 years ago by azawawi

Yes it is definitely an STD.pm problem. Thanks for reporting it.

STD.pm warning/error:
Deep recursion on subroutine "Cursor::_AUTOLEXpeek" at C:/strawberry/perl/site/l
ib/Cursor.pm line 324.
Deep recursion on subroutine "Cursor::_AUTOLEXgen" at C:/strawberry/perl/site/li
b/Cursor.pm line 311.
Out of memory!

comment:3 Changed 5 years ago by azawawi

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

comment:4 Changed 5 years ago by azawawi

TimToady? has fixed it in pugs r27632.


I will try to merge it soon.

comment:5 Changed 5 years ago by azawawi

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

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.