diff --git a/lib/Grammar.php b/lib/Grammar.php index eacb0e1..2b6ecbf 100644 --- a/lib/Grammar.php +++ b/lib/Grammar.php @@ -135,7 +135,7 @@ class Grammar { // which is used to exit matching. if (isset($pattern['begin'])) { if (!isset($pattern['end'])) { - throw new Exception(Exception::JSON_MISSING_PROPERTY, $filename, 'end'); + $pattern['end'] = '\z'; } $modified = true;