From c62f36ef875dfd7fb27167ccdf3b4a1a126c9a0d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 6 Sep 2011 23:54:31 -0400 Subject: [PATCH] Bug - tags - Modified A3::is_tag to allow @, # and $ in tag names. --- src/A3.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/A3.cpp b/src/A3.cpp index 932ae539b..af58e779b 100644 --- a/src/A3.cpp +++ b/src/A3.cpp @@ -709,6 +709,13 @@ const A3 A3::tokenize (const A3& input) const found_something_after_sequence = true; } + else if (is_tag (n, s)) + { + output.push_back (Arg (s, Arg::cat_tag)); + if (found_sequence) + found_something_after_sequence = true; + } + // Must be higher than number. // Must be higher than operator. // Note that Nibbler::getDate does not read durations. @@ -728,13 +735,6 @@ const A3 A3::tokenize (const A3& input) const found_something_after_sequence = true; } - else if (is_tag (n, s)) - { - output.push_back (Arg (s, Arg::cat_tag)); - if (found_sequence) - found_something_after_sequence = true; - } - else if (n.getOneOf (operators, s)) { output.push_back (Arg (s, Arg::cat_op));