Skip to content

Commit

Permalink
Fix for issue gimli-rs#150,
Browse files Browse the repository at this point in the history
which is just a simple fix for TemplateArg.
  • Loading branch information
Saldivarcher committed Aug 6, 2018
1 parent 6d5320d commit 81403ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4706,7 +4706,12 @@ impl Parse for TemplateArg {
return Ok((TemplateArg::Type(ty), tail));
}

let tail = consume(b"J", input)?;
let tail = if input.peek() == Some(b'J') {
consume(b"J", input)?
} else {
consume(b"I", input)?
};

let (args, tail) = if tail.peek() == Some(b'E') {
(vec![], tail)
} else {
Expand Down

0 comments on commit 81403ed

Please sign in to comment.