aboutsummaryrefslogtreecommitdiff
path: root/paludis/elike_dep_parser.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-10 18:11:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-10 20:20:57 +0000
commit7ba273785c74fad8d813d91302793a9fc4767703 (patch)
tree9cbf6ff147bf5fa0828712739da21647c194b85c /paludis/elike_dep_parser.cc
parent34ba2ba793f26f2b14447a0f523a484a2e97c6bb (diff)
downloadpaludis-7ba273785c74fad8d813d91302793a9fc4767703.tar.gz
paludis-7ba273785c74fad8d813d91302793a9fc4767703.tar.xz
Trigger on no annotations
Diffstat (limited to 'paludis/elike_dep_parser.cc')
-rw-r--r--paludis/elike_dep_parser.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/elike_dep_parser.cc b/paludis/elike_dep_parser.cc
index 54c0ba273..85a14abde 100644
--- a/paludis/elike_dep_parser.cc
+++ b/paludis/elike_dep_parser.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -43,7 +43,10 @@ namespace
Context context("When parsing annotation block at offset '" + stringify(parser.offset()) + "':");
if (! parser.consume(*simple_parser::any_of(" \t\r\n") & simple_parser::exact("[[")))
+ {
+ callbacks.on_no_annotations()();
return;
+ }
if (! parser.consume(+simple_parser::any_of(" \t\r\n")))
error(parser, callbacks, "Expected space after '[['");