equal
deleted
inserted
replaced
685 // ******************** *********** * ********* |
685 // ******************** *********** * ********* |
686 // |
686 // |
687 func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { |
687 func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { |
688 if first { |
688 if first { |
689 token := peek_token(parser) |
689 token := peek_token(parser) |
|
690 if token == nil { |
|
691 return false |
|
692 } |
690 parser.marks = append(parser.marks, token.start_mark) |
693 parser.marks = append(parser.marks, token.start_mark) |
691 skip_token(parser) |
694 skip_token(parser) |
692 } |
695 } |
693 |
696 |
694 token := peek_token(parser) |
697 token := peek_token(parser) |
784 if stem_len == 0 { |
787 if stem_len == 0 { |
785 return |
788 return |
786 } |
789 } |
787 |
790 |
788 token := peek_token(parser) |
791 token := peek_token(parser) |
789 if token.typ != yaml_BLOCK_SEQUENCE_START_TOKEN && token.typ != yaml_BLOCK_MAPPING_START_TOKEN { |
792 if token == nil || token.typ != yaml_BLOCK_SEQUENCE_START_TOKEN && token.typ != yaml_BLOCK_MAPPING_START_TOKEN { |
790 return |
793 return |
791 } |
794 } |
792 |
795 |
793 parser.stem_comment = parser.head_comment[:stem_len] |
796 parser.stem_comment = parser.head_comment[:stem_len] |
794 if len(parser.head_comment) == stem_len { |
797 if len(parser.head_comment) == stem_len { |
811 // ********* |
814 // ********* |
812 // |
815 // |
813 func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { |
816 func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { |
814 if first { |
817 if first { |
815 token := peek_token(parser) |
818 token := peek_token(parser) |
|
819 if token == nil { |
|
820 return false |
|
821 } |
816 parser.marks = append(parser.marks, token.start_mark) |
822 parser.marks = append(parser.marks, token.start_mark) |
817 skip_token(parser) |
823 skip_token(parser) |
818 } |
824 } |
819 |
825 |
820 token := peek_token(parser) |
826 token := peek_token(parser) |
920 // * |
926 // * |
921 // |
927 // |
922 func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { |
928 func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { |
923 if first { |
929 if first { |
924 token := peek_token(parser) |
930 token := peek_token(parser) |
|
931 if token == nil { |
|
932 return false |
|
933 } |
925 parser.marks = append(parser.marks, token.start_mark) |
934 parser.marks = append(parser.marks, token.start_mark) |
926 skip_token(parser) |
935 skip_token(parser) |
927 } |
936 } |
928 token := peek_token(parser) |
937 token := peek_token(parser) |
929 if token == nil { |
938 if token == nil { |