JUK3ONMUIR5CVOMELN6JGTUH7N2F3CRWTPI2BH747IXR3BJIYJDQC
POIIOD4LOKMGM3FVYXEKYP7B4HQ54SVVH67JZWY7UIVLBXJWOTNAC
6ZJX2OQV5MYICMONYVYP55DUKORJ3KPLIN7LHAYLXY7ZB7SZE7TAC
VDFODD2FXIZGSSAH63WL56JGHDZQLVOZXOAAWQ3KKHXH66UCKMAAC
(PS::COK, Char::ForwardSlash) => { parse_state = PS::CM; },
(PS::COK, Char::ForwardSlash) => {
parse_state = PS::CM;
},
Line::new(line),
Line::new(line + 1),
(PS::COK, Char::ForwardSlash) => { let token_str = &s[start_key..=pos - 1]; return Err(Error::new( ErrorKind::IncompleteCommentOrKey( token_str.to_string(), Line::new(line), ) )); },
let token_str = &s[start_key..=pos - 1];
return Err(Error::new(
ErrorKind::IncompleteCommentOrKey(
token_str.to_string(),
)
));
"\"/\" is an incomplete comment or key",
"\"/\" at line 2 is an incomplete comment or key.",
} #[test] fn indented_comment_parses() { assert!(KeyTree::parse("key:\n // comment").is_ok());
}
#[test]
fn indented_comment_parses() {
assert!(KeyTree::parse("key:\n // comment").is_ok());
#[test] fn non_indented_comment_parses() { assert!(KeyTree::parse("key:\n// comment").is_ok()); }
fn non_indented_comment_parses() {
assert!(KeyTree::parse("key:\n// comment").is_ok());
"\"/\" at line 1 is an incomplete comment or key.",