Comment out unreachable states

This commit is contained in:
Yuheng Chen 2016-11-14 11:22:32 +08:00
parent 510b8f0a0c
commit f23be5e1cb

View file

@ -10,8 +10,8 @@ enum State {
DocumentContent, DocumentContent,
DocumentEnd, DocumentEnd,
BlockNode, BlockNode,
BlockNodeOrIndentlessSequence, // BlockNodeOrIndentlessSequence,
FlowNode, // FlowNode,
BlockSequenceFirstEntry, BlockSequenceFirstEntry,
BlockSequenceEntry, BlockSequenceEntry,
IndentlessSequenceEntry, IndentlessSequenceEntry,
@ -247,8 +247,8 @@ impl<T: Iterator<Item=char>> Parser<T> {
State::DocumentEnd => self.document_end(), State::DocumentEnd => self.document_end(),
State::BlockNode => self.parse_node(true, false), State::BlockNode => self.parse_node(true, false),
State::BlockNodeOrIndentlessSequence => self.parse_node(true, true), // State::BlockNodeOrIndentlessSequence => self.parse_node(true, true),
State::FlowNode => self.parse_node(false, false), // State::FlowNode => self.parse_node(false, false),
State::BlockMappingFirstKey => self.block_mapping_key(true), State::BlockMappingFirstKey => self.block_mapping_key(true),
State::BlockMappingKey => self.block_mapping_key(false), State::BlockMappingKey => self.block_mapping_key(false),