diff --git a/lib/hafriedlander/Peg/Compiler/Rule.php b/lib/hafriedlander/Peg/Compiler/Rule.php index 9d4b3e5..eb609a4 100644 --- a/lib/hafriedlander/Peg/Compiler/Rule.php +++ b/lib/hafriedlander/Peg/Compiler/Rule.php @@ -135,7 +135,7 @@ function parse_rule() { ((\\\\\\\\)*\\\\/) # Escaped \/, making sure to catch all the \\ first, so that we dont think \\/ is an escaped / | [^/] # Anything except / - )*/@xu' ; + )*/[imsxADSUXJu]*@xu' ; function tokenize( $str, &$tokens, $o = 0 ) { $length = strlen($str); @@ -316,4 +316,4 @@ function compile($indent) { // print_r( $match ) ; return '' ; return $match->render(NULL, $indent) . PHP_EOL . PHP_EOL . implode( PHP_EOL, $functions ) ; } -} \ No newline at end of file +}