add a way to store the closing token for e.g. chord, << >> and { }