fix: handle UNEXPECTED node
This commit is contained in:
parent
d88dae7a3e
commit
f191858bae
1 changed files with 2 additions and 2 deletions
|
|
@ -248,8 +248,8 @@ fn format_sexp(sexp: &String) -> String {
|
|||
let mut c_iter = s.chars();
|
||||
c_iter.next();
|
||||
let second_char = c_iter.next().unwrap();
|
||||
if second_char == 'M' {
|
||||
// "(MISSING node_name"
|
||||
if second_char == 'M' || second_char == 'U' {
|
||||
// "(MISSING node_name" or "(UNEXPECTED 'x'"
|
||||
let s = s_iter.next().unwrap();
|
||||
write!(formatted, " {}", s).unwrap();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue