Added line/column data for nodes so they can give better invalid scalar exceptions.

This commit is contained in:
Jesse Beder
2008-11-18 04:20:07 +00:00
parent 9969ff512e
commit 043bbddcf0
3 changed files with 56 additions and 19 deletions

View File

@@ -37,6 +37,10 @@ namespace YAML
{
Clear();
// save location
m_line = pScanner->peek().line;
m_column = pScanner->peek().column;
ParseHeader(pScanner, state);
// is this an alias? if so, it can have no content