Add state to expect object keys

This commit is contained in:
Andrea Marco Sartori 2022-09-21 01:56:24 +02:00
parent e50c8f023e
commit 46fbfc73fb

View File

@ -29,6 +29,13 @@ class State
*/
public string $buffer = '';
/**
* Whether the token should be an object key.
*
* @var bool
*/
public bool $expectsKey = false;
/**
* Instantiate the class.
*