throw new ParserException("while parsing a block mapping", marks.pop(),
"expected <block end>, but found " + token.getTokenId(),
token.getStartMark());
}
Token token = scanner.getToken();
Event event = new MappingEndEvent(token.getStartMark(), token.getEndMark());
state = states.pop();
marks.pop();
return event;
}