Fixed emitter bug with colon at the end of a scalar in a flow collection

This commit is contained in:
Jesse Beder
2011-10-31 19:16:17 -05:00
parent 860365b263
commit 62634f53ec
2 changed files with 8 additions and 1 deletions

View File

@@ -149,7 +149,7 @@ namespace YAML
return e;
}
inline const RegEx& EndScalarInFlow() {
static const RegEx e = (RegEx(':') + (BlankOrBreak() || RegEx(",]}", REGEX_OR))) || RegEx(",?[]{}", REGEX_OR);
static const RegEx e = (RegEx(':') + (BlankOrBreak() || RegEx() || RegEx(",]}", REGEX_OR))) || RegEx(",?[]{}", REGEX_OR);
return e;
}