@@ -28,26 +28,26 @@ pub type FrontMatterEvents<'a> = SmallVec<[Event<'a>; 8]>;
28
28
///
29
29
/// For concrete examples, some notable differences are:
30
30
/// - `git-config` sections permit subsections via either a quoted string
31
- /// (`[some-section "subsection"]`) or via the deprecated dot notation
32
- /// (`[some-section.subsection]`). Successful parsing these section names is not
33
- /// well defined in typical `.ini` parsers. This parser will handle these cases
34
- /// perfectly.
31
+ /// (`[some-section "subsection"]`) or via the deprecated dot notation
32
+ /// (`[some-section.subsection]`). Successful parsing these section names is not
33
+ /// well defined in typical `.ini` parsers. This parser will handle these cases
34
+ /// perfectly.
35
35
/// - Comment markers are not strictly defined either. This parser will always
36
- /// and only handle a semicolon or octothorpe (also known as a hash or number
37
- /// sign).
36
+ /// and only handle a semicolon or octothorpe (also known as a hash or number
37
+ /// sign).
38
38
/// - Global properties may be allowed in `.ini` parsers, but is strictly
39
- /// disallowed by this parser.
39
+ /// disallowed by this parser.
40
40
/// - Only `\t`, `\n`, `\b` `\\` are valid escape characters.
41
41
/// - Quoted and semi-quoted values will be parsed (but quotes will be included
42
- /// in event outputs). An example of a semi-quoted value is `5"hello world"`,
43
- /// which should be interpreted as `5hello world` after
44
- /// [normalization][crate::value::normalize()].
42
+ /// in event outputs). An example of a semi-quoted value is `5"hello world"`,
43
+ /// which should be interpreted as `5hello world` after
44
+ /// [normalization][crate::value::normalize()].
45
45
/// - Line continuations via a `\` character is supported (inside or outside of quotes)
46
46
/// - Whitespace handling similarly follows the `git-config` specification as
47
- /// closely as possible, where excess whitespace after a non-quoted value are
48
- /// trimmed, and line continuations onto a new line with excess spaces are kept.
47
+ /// closely as possible, where excess whitespace after a non-quoted value are
48
+ /// trimmed, and line continuations onto a new line with excess spaces are kept.
49
49
/// - Only equal signs (optionally padded by spaces) are valid name/value
50
- /// delimiters.
50
+ /// delimiters.
51
51
///
52
52
/// Note that things such as case-sensitivity or duplicate sections are
53
53
/// _not_ handled. This parser is a low level _syntactic_ interpreter
@@ -62,8 +62,8 @@ pub type FrontMatterEvents<'a> = SmallVec<[Event<'a>; 8]>;
62
62
/// # Trait Implementations
63
63
///
64
64
/// - This struct does _not_ implement [`FromStr`] due to lifetime
65
- /// constraints implied on the required `from_str` method. Instead, it provides
66
- /// [`From<&'_ str>`].
65
+ /// constraints implied on the required `from_str` method. Instead, it provides
66
+ /// [`From<&'_ str>`].
67
67
///
68
68
/// # Idioms
69
69
///
0 commit comments