Commits

Ross Light  committed 8a57542

Emit block mapping start and end in compact mapping

  • Participants
  • Parent commits 624d8ed

Comments (0)

Files changed (1)

 }
 
 func (s *scanner) parseCompactMapping(indent int) {
+	s.emit(TokenBlockMappingStart)
+
 	s.parseBlockMappingEntry(indent)
 	for {
 		if s.peek() == eof {
 		// TODO: Better stop condition
 		s.parseBlockMappingEntry(indent)
 	}
+
+	s.emit(TokenBlockEnd)
 }
 
 func (s *scanner) parseFlowNode(indent, context int) {