mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-29 10:38:09 +01:00
Match pointer before buffering the token
This commit is contained in:
parent
e2a28ba93d
commit
e1450733d1
@ -145,12 +145,12 @@ class State
|
||||
$treeChanged = true;
|
||||
}
|
||||
|
||||
$this->bufferToken($token);
|
||||
|
||||
if ($treeChanged && $this->pointers->count() > 1) {
|
||||
$this->pointer = $this->pointers->matchTree($this->tree);
|
||||
}
|
||||
|
||||
$this->bufferToken($token);
|
||||
|
||||
$token->mutateState($this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user