code: func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool {
  	// Eat whitespaces.
  	if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) {
  		return false
  	}
  	for is_blank(parser.buffer, parser.buffer_pos) {
  		skip(parser)
  		if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) {
  			return false
  		}
  	}
  
  	// Consume the major version number.
  	if !yaml_parser_scan_version_directive_number(parser, start_mark, major) {
  		return false
  	}
  
  	// Eat '.'.
  	if parser.buffer[parser.buffer_pos] != '.' {
  		return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive",
  			start_mark, "did not find expected digit or '.' character")
  	}
  
  	skip(parser)
  
  	// Consume the minor version number.
  	if !yaml_parser_scan_version_directive_number(parser, start_mark, minor) {
  		return false
  	}
  	return true
  }
docs: // Scan the value of VERSION-DIRECTIVE.
  //
  // Scope:
  //      %YAML   1.1     # a comment \n
  //           ^^^^^^