* porting improved delimit state from PEGKit