Skip to content

Commit

Permalink
ENHANCEMENT: Make php-peg regexs be "x" modified by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamish Friedlander committed Feb 14, 2011
1 parent 53c58a4 commit ea20559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function match( $var ) {
class ParserRegexp {
function __construct( $parser, $rx ) {
$this->parser = $parser ;
$this->rx = $rx . 'S' ;
$this->rx = $rx . 'Sx' ;

$this->matches = NULL ;
$this->match_pos = NULL ; // NULL is no-match-to-end-of-string, unless check_pos also == NULL, in which case means undefined
Expand Down

0 comments on commit ea20559

Please sign in to comment.