diff --git a/lib/hafriedlander/Peg/Compiler/Rule.php b/lib/hafriedlander/Peg/Compiler/Rule.php index b7adbad..58aab1f 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' ; + )*/\S*(?=\s|$)@xu' ; function tokenize( $str, &$tokens, $o = 0 ) { $length = strlen($str);