From dba950fcf7cfa467aed7eb80a8d9f822c4dc75cb Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 14 Aug 2011 00:14:48 -0400 Subject: [PATCH] A3 Parsing - Added an 'until whitespace' clause to the attmod parser. Results are better. - Noted the need for more specific forms to be recognized. --- src/A3.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/A3.cpp b/src/A3.cpp index e7f83364b..736d07f9b 100644 --- a/src/A3.cpp +++ b/src/A3.cpp @@ -1283,6 +1283,7 @@ bool A3::is_attmod (Nibbler& n, std::string& result) std::string name; std::string modifier; std::string value; +// time_t date; // If there is a valid attribute name. if (n.getName (name) && @@ -1305,8 +1306,12 @@ bool A3::is_attmod (Nibbler& n, std::string& result) // Consider removing this for a stricter parse. if (n.getQuoted ('"', value) || n.getQuoted ('\'', value) || +// TODO Need more things recognized before it falls through to getUntilEOS. +// n.getDate (context.config.get ("dateformat"), date) || +// need Duration too. n.getName (value) || - n.getUntilEOS (value) || + n.getUntilWS (value) || + n.getUntilEOS (value) || // Redundant? n.depleted ()) { /*