Changes to handling of missing end patterns
This commit is contained in:
parent
3e07ac45af
commit
8370b9368c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue