Improved broken comment error message.
[?]
Jun 16, 2021, 11:50 AM
POIIOD4LOKMGM3FVYXEKYP7B4HQ54SVVH67JZWY7UIVLBXJWOTNACDependencies
Change contents
- replacement in src/parser.rs at line 357
token_str.to_string()token_str.to_string(),Line::new(line), - replacement in src/parser.rs at line 417
token_str.to_string()token_str.to_string(),Line::new(line), - edit in src/parser.rs at line 441
Line::new(line), - replacement in src/error.rs at line 77
IncompleteCommentOrKey(String),IncompleteCommentOrKey(String, Line), - replacement in src/error.rs at line 123
ErrorKind::IncompleteCommentOrKey(_) => None,ErrorKind::IncompleteCommentOrKey(_, _) => None, - replacement in src/error.rs at line 236
ErrorKind::IncompleteCommentOrKey(token) => {write!(f, "\"{}\" is an incomplete comment or key", token)ErrorKind::IncompleteCommentOrKey(token, line) => {write!(f,"\"{}\" at line {} is an incomplete comment or key.",token,line,)