nom-kconfig 0.10.0

A Kconfig parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use nom::{combinator::eof, Parser};

use crate::util::{ws, wsi};

#[test]
fn test_ws() {
    assert_eq!(ws(eof::<&str, ()>).parse("# a comment\n"), Ok(("", "")))
}

#[test]
fn test_wsi_backslash() {
    let input = r"   \
          ";
    assert_eq!(wsi(eof::<&str, ()>).parse(input), Ok(("", "")))
}