Improved broken comment error message.

[?]
Jun 16, 2021, 11:50 AM
POIIOD4LOKMGM3FVYXEKYP7B4HQ54SVVH67JZWY7UIVLBXJWOTNAC

Dependencies

Change contents

  • replacement in src/parser.rs at line 357
    [2.1125][2.1125:1175]()
    token_str.to_string()
    [2.1125]
    [2.1175]
    token_str.to_string(),
    Line::new(line),
  • replacement in src/parser.rs at line 417
    [2.2187][2.2187:2237]()
    token_str.to_string()
    [2.2187]
    [2.2237]
    token_str.to_string(),
    Line::new(line),
  • edit in src/parser.rs at line 441
    [2.2548]
    [2.2548]
    Line::new(line),
  • replacement in src/error.rs at line 77
    [3.38352][3.38352:38388]()
    IncompleteCommentOrKey(String),
    [3.38352]
    [3.38388]
    IncompleteCommentOrKey(String, Line),
  • replacement in src/error.rs at line 123
    [3.39856][3.39856:39917]()
    ErrorKind::IncompleteCommentOrKey(_) => None,
    [3.39856]
    [3.39917]
    ErrorKind::IncompleteCommentOrKey(_, _) => None,
  • replacement in src/error.rs at line 236
    [3.42740][3.42740:42873]()
    ErrorKind::IncompleteCommentOrKey(token) => {
    write!(f, "\"{}\" is an incomplete comment or key", token)
    [3.42740]
    [3.42873]
    ErrorKind::IncompleteCommentOrKey(token, line) => {
    write!(
    f,
    "\"{}\" at line {} is an incomplete comment or key.",
    token,
    line,
    )