Fixed complex keys.

This commit is contained in:
Jesse Beder 2008-06-28 17:32:10 +00:00
parent c63ebbd878
commit 01ef70a6f9
3 changed files with 11 additions and 103 deletions

View file

@ -229,14 +229,14 @@ namespace YAML
Eat(1);
// then eat a comment
if(Exp::Comment.Matches(INPUT.peek())) {
if(Exp::Comment.Matches(INPUT)) {
// eat until line break
while(INPUT && !Exp::Break.Matches(INPUT.peek()))
while(INPUT && !Exp::Break.Matches(INPUT))
Eat(1);
}
// if it's NOT a line break, then we're done!
if(!Exp::Break.Matches(INPUT.peek()))
if(!Exp::Break.Matches(INPUT))
break;
// otherwise, let's eat the line break and keep going