vdf-parser 0.1.8

A parser for Valve Data Format (VDF) files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use nom::{character::complete::multispace0, multi::many0, IResult};

use crate::combinators::attribute;
use crate::VdfAttribute;

pub fn block_content(input: &str) -> IResult<&str, Vec<VdfAttribute>> {
    let (input, _) = multispace0(input)?;
    let (input, content) = many0(attribute)(input)?;
    let (input, _) = multispace0(input)?;
    Ok((input, content))
}