gecko-dev/third_party/rust/nom/tests/ini_str.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

250 строки
6.1 KiB
Rust
Исходник Обычный вид История

#[macro_use]
extern crate nom;
use nom::IResult;
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
use nom::types::CompleteStr;
use std::collections::HashMap;
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
fn is_alphabetic(chr: char) -> bool {
(chr as u8 >= 0x41 && chr as u8 <= 0x5A) || (chr as u8 >= 0x61 && chr as u8 <= 0x7A)
}
fn is_digit(chr: char) -> bool {
chr as u8 >= 0x30 && chr as u8 <= 0x39
}
fn is_alphanumeric(chr: char) -> bool {
is_alphabetic(chr) || is_digit(chr)
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
fn is_space(chr: char) -> bool {
chr == ' ' || chr == '\t'
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
fn is_line_ending_or_comment(chr: char) -> bool {
chr == ';' || chr == '\n'
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
named!(alphanumeric<CompleteStr,CompleteStr>, take_while_s!(is_alphanumeric));
named!(not_line_ending<CompleteStr,CompleteStr>, is_not_s!("\r\n"));
named!(space<CompleteStr,CompleteStr>, take_while_s!(is_space));
named!(space_or_line_ending<CompleteStr,CompleteStr>, is_a_s!(" \r\n"));
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
fn right_bracket(c: char) -> bool {
c == ']'
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
named!(category <CompleteStr, &str>,
Bug 1468349 - Vendor in new freebsd deps for u2f-hid-rs r=mgoodwin MozReview-Commit-ID: 26E21CeZiLj --HG-- rename : third_party/rust/nom/.travis.yml => third_party/rust/nom-1.2.4/.travis.yml rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-1.2.4/nom/.cargo-checksum.json rename : third_party/rust/nom/.travis.yml => third_party/rust/nom-1.2.4/nom/.travis.yml rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-1.2.4/nom/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-1.2.4/nom/Cargo.toml rename : third_party/rust/nom/LICENSE => third_party/rust/nom-1.2.4/nom/LICENSE rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-1.2.4/nom/src/bits.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-1.2.4/nom/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-1.2.4/nom/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-1.2.4/nom/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-1.2.4/nom/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-1.2.4/nom/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-1.2.4/nom/src/methods.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-1.2.4/nom/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-1.2.4/nom/src/regexp.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-1.2.4/nom/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-1.2.4/nom/src/stream.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-1.2.4/nom/src/util.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-1.2.4/nom/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-1.2.4/nom/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-1.2.4/nom/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-1.2.4/nom/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-1.2.4/nom/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-1.2.4/nom/tests/issues.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-1.2.4/nom/tests/mp4.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-1.2.4/nom/tests/omnom.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-1.2.4/nom/tests/test1.rs extra : rebase_source : 8db59fcbf07bea1c4e8a5b9db70b7be8199cbe34
2018-06-12 21:03:01 +03:00
do_parse!(
tag_s!("[") >>
name: take_till_s!(right_bracket) >>
tag_s!("]") >>
opt!(space_or_line_ending) >>
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
(name.0)
)
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
named!(key_value <CompleteStr,(&str,&str)>,
Bug 1468349 - Vendor in new freebsd deps for u2f-hid-rs r=mgoodwin MozReview-Commit-ID: 26E21CeZiLj --HG-- rename : third_party/rust/nom/.travis.yml => third_party/rust/nom-1.2.4/.travis.yml rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-1.2.4/nom/.cargo-checksum.json rename : third_party/rust/nom/.travis.yml => third_party/rust/nom-1.2.4/nom/.travis.yml rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-1.2.4/nom/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-1.2.4/nom/Cargo.toml rename : third_party/rust/nom/LICENSE => third_party/rust/nom-1.2.4/nom/LICENSE rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-1.2.4/nom/src/bits.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-1.2.4/nom/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-1.2.4/nom/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-1.2.4/nom/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-1.2.4/nom/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-1.2.4/nom/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-1.2.4/nom/src/methods.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-1.2.4/nom/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-1.2.4/nom/src/regexp.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-1.2.4/nom/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-1.2.4/nom/src/stream.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-1.2.4/nom/src/util.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-1.2.4/nom/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-1.2.4/nom/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-1.2.4/nom/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-1.2.4/nom/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-1.2.4/nom/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-1.2.4/nom/tests/issues.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-1.2.4/nom/tests/mp4.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-1.2.4/nom/tests/omnom.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-1.2.4/nom/tests/test1.rs extra : rebase_source : 8db59fcbf07bea1c4e8a5b9db70b7be8199cbe34
2018-06-12 21:03:01 +03:00
do_parse!(
key: alphanumeric >>
opt!(space) >>
tag_s!("=") >>
opt!(space) >>
val: take_till_s!(is_line_ending_or_comment) >>
opt!(space) >>
opt!(pair!(tag_s!(";"), not_line_ending)) >>
opt!(space_or_line_ending) >>
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
(key.0, val.0)
)
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
named!(keys_and_values_aggregator<CompleteStr, Vec<(&str, &str)> >, many0!(key_value));
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
fn keys_and_values(input: CompleteStr) -> IResult<CompleteStr, HashMap<&str, &str>> {
match keys_and_values_aggregator(input) {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, tuple_vec)) => Ok((i, tuple_vec.into_iter().collect())),
Err(e) => Err(e),
}
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
named!(category_and_keys<CompleteStr,(&str,HashMap<&str,&str>)>,
pair!(category, keys_and_values)
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
named!(categories_aggregator<CompleteStr, Vec<(&str, HashMap<&str,&str>)> >, many0!(category_and_keys));
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
fn categories(input: CompleteStr) -> IResult<CompleteStr, HashMap<&str, HashMap<&str, &str>>> {
match categories_aggregator(input) {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, tuple_vec)) => Ok((i, tuple_vec.into_iter().collect())),
Err(e) => Err(e),
}
}
#[test]
fn parse_category_test() {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_file = CompleteStr(
"[category]
parameter=value
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
key = value2",
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_without_category = CompleteStr(
"parameter=value
key = value2",
);
let res = category(ini_file);
println!("{:?}", res);
match res {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, o)) => println!("i: {} | o: {:?}", i.0, o),
_ => println!("error"),
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
assert_eq!(res, Ok((ini_without_category, "category")));
}
#[test]
fn parse_key_value_test() {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_file = CompleteStr(
"parameter=value
key = value2",
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_without_key_value = CompleteStr("key = value2");
let res = key_value(ini_file);
println!("{:?}", res);
match res {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, (o1, o2))) => println!("i: {} | o: ({:?},{:?})", i.0, o1, o2),
_ => println!("error"),
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
assert_eq!(res, Ok((ini_without_key_value, ("parameter", "value"))));
}
#[test]
fn parse_key_value_with_space_test() {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_file = CompleteStr(
"parameter = value
key = value2",
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_without_key_value = CompleteStr("key = value2");
let res = key_value(ini_file);
println!("{:?}", res);
match res {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, (o1, o2))) => println!("i: {} | o: ({:?},{:?})", i.0, o1, o2),
_ => println!("error"),
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
assert_eq!(res, Ok((ini_without_key_value, ("parameter", "value"))));
}
#[test]
fn parse_key_value_with_comment_test() {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_file = CompleteStr(
"parameter=value;abc
key = value2",
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_without_key_value = CompleteStr("key = value2");
let res = key_value(ini_file);
println!("{:?}", res);
match res {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, (o1, o2))) => println!("i: {} | o: ({:?},{:?})", i.0, o1, o2),
_ => println!("error"),
}
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
assert_eq!(res, Ok((ini_without_key_value, ("parameter", "value"))));
}
#[test]
fn parse_multiple_keys_and_values_test() {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_file = CompleteStr(
"parameter=value;abc
key = value2
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
[category]",
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_without_key_value = CompleteStr("[category]");
let res = keys_and_values(ini_file);
println!("{:?}", res);
match res {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, ref o)) => println!("i: {} | o: {:?}", i.0, o),
_ => println!("error"),
}
let mut expected: HashMap<&str, &str> = HashMap::new();
expected.insert("parameter", "value");
expected.insert("key", "value2");
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
assert_eq!(res, Ok((ini_without_key_value, expected)));
}
#[test]
fn parse_category_then_multiple_keys_and_values_test() {
//FIXME: there can be an empty line or a comment line after a category
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_file = CompleteStr(
"[abcd]
parameter=value;abc
key = value2
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
[category]",
);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_after_parser = CompleteStr("[category]");
let res = category_and_keys(ini_file);
println!("{:?}", res);
match res {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, ref o)) => println!("i: {} | o: {:?}", i.0, o),
_ => println!("error"),
}
let mut expected_h: HashMap<&str, &str> = HashMap::new();
expected_h.insert("parameter", "value");
expected_h.insert("key", "value2");
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
assert_eq!(res, Ok((ini_after_parser, ("abcd", expected_h))));
}
#[test]
fn parse_multiple_categories_test() {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
let ini_file = CompleteStr(
"[abcd]
parameter=value;abc
key = value2
[category]
parameter3=value3
key4 = value4
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
",
);
let res = categories(ini_file);
//println!("{:?}", res);
match res {
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
Ok((i, ref o)) => println!("i: {} | o: {:?}", i.0, o),
_ => println!("error"),
}
let mut expected_1: HashMap<&str, &str> = HashMap::new();
expected_1.insert("parameter", "value");
expected_1.insert("key", "value2");
let mut expected_2: HashMap<&str, &str> = HashMap::new();
expected_2.insert("parameter3", "value3");
expected_2.insert("key4", "value4");
let mut expected_h: HashMap<&str, HashMap<&str, &str>> = HashMap::new();
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
expected_h.insert("abcd", expected_1);
expected_h.insert("category", expected_2);
Bug 1500849 - Revendor Rust dependencies. --HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
2018-10-22 10:43:49 +03:00
assert_eq!(res, Ok((CompleteStr(""), expected_h)));
}