mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-02-16 11:24:37 +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;
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user