Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #16944 Bug in regexp lookahead
Submitted: 2009-12-26 06:37 UTC
From: thue Assigned:
Status: Open Package: PHP_LexerGenerator (version 0.3.4)
PHP Version: 5.3.1 OS: All
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 15 + 48 = ?

 
 [2009-12-26 06:37 UTC] thue (Thue Kristensen)
Description: ------------ (?=...) positive lookahead in lexer regexps doesn't work. The error is because of the following code in LexerGenerator/Regex/Parser.php : #line 1599 "Parser.php" #line 428 "Parser.y" function yy_r82(){ $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?=' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( 'pattern '=> '(?=' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); } Where 'pattern ' should be 'pattern' (without the space).

Comments