Added folded and literal scalars.

This commit is contained in:
Jesse Beder 2008-06-28 20:08:21 +00:00
parent 01ef70a6f9
commit 43ea59a4ed
7 changed files with 153 additions and 23 deletions

3
exp.h
View file

@ -43,6 +43,9 @@ namespace YAML
const RegEx EscSingleQuote = RegEx("\'\'");
const RegEx EscBreak = RegEx('\\') + Break;
const RegEx ChompIndicator = RegEx("+-", REGEX_OR);
const RegEx Chomp = (ChompIndicator + Digit) || (Digit + ChompIndicator) || ChompIndicator || Digit;
// and some functions
std::string Escape(std::istream& in, int& length);
}