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