From c3a80705ba769a0e98867a1f602d2f3e558a7c8f Mon Sep 17 00:00:00 2001 From: dionisos Date: Sun, 1 May 2005 15:00:26 +0000 Subject: [PATCH] * tparse/tparse.cpp (parse_rcs_admin): Allow 'symbol:revnum' as recently added to the python modules. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1062 8cb11bc2-c004-0410-86c3-e597b4017df7 --- tparse/tparse.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tparse/tparse.cpp b/tparse/tparse.cpp index 6f0cf953..3474b187 100644 --- a/tparse/tparse.cpp +++ b/tparse/tparse.cpp @@ -246,12 +246,19 @@ void tparseParser::parse_rcs_admin() if (*token == ';') break; - /*FIXME: this does not allow " : " - which the spec does allow */ second = index(token->data, ':'); - tag.reset(token->copy_begin_len(0, second - token->data)); - second++; - rev.reset(new rcstoken(second)); + if (second) + { + tag.reset(token->copy_begin_len(0, second - token->data)); + second++; + rev.reset(new rcstoken(second)); + } + else + { + tag = token; + tokenstream->match(':'); + rev.reset(tokenstream->get()); + }; sink->define_tag(*tag, *rev); } continue;