Fixed parsing ? when attached to a scalar

This commit is contained in:
Jesse Beder
2012-11-08 19:11:41 -06:00
parent 15b60e2a3b
commit 8c517bf0fd

View File

@@ -91,7 +91,7 @@ namespace YAML
return e;
}
inline const RegEx& Key() {
static const RegEx e = RegEx('?');
static const RegEx e = RegEx('?') + BlankOrBreak();
return e;
}
inline const RegEx& KeyInFlow() {