[Lxr-commits] CVS: lxr/lib/LXR/Lang Ruby.pm,1.5,1.6
Brought to you by:
ajlittoz
From: Andre-Littoz <ajl...@us...> - 2014-03-09 16:04:15
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13203/lib/LXR/Lang Modified Files: Ruby.pm Log Message: Lang/Ruby.pm: fix for bug #249 (freeze on Ruby require sentence) Endless loop caused by faulty operator used on pattern matching (=~ instead of !~) Index: Ruby.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Ruby.pm,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Ruby.pm 21 Sep 2013 12:54:53 -0000 1.5 +++ Ruby.pm 9 Mar 2014 16:04:12 -0000 1.6 @@ -45,7 +45,7 @@ my $link; # link to include file my $identdef = $self->langinfo('identdef'); - if ($source =~ s/^ # Parse instruction + if ($source !~ s/^ # Parse instruction ([\w]+) # reserved keyword for include construct (\s+) # space (?| (\")(.+?)(\") # double quoted string |