summaryrefslogtreecommitdiff
path: root/src/core/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/parser')
-rw-r--r--src/core/parser/stack/Stack.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/parser/stack/Stack.cpp b/src/core/parser/stack/Stack.cpp
index 436d3a5..90735df 100644
--- a/src/core/parser/stack/Stack.cpp
+++ b/src/core/parser/stack/Stack.cpp
@@ -869,8 +869,15 @@ void StackImpl::handleAnnotationStartEnd(const Variant &name,
// Call the startAnnotation method of the newly created handler, store the
// valid flag
HandlerInfo &info = currentInfo();
- info.valid = handler->startAnnotation(args);
+ info.valid = false;
+ try {
+ info.valid = handler->startAnnotation(args);
+ } catch (LoggableException ex) {
+ logger().log(ex);
+ }
info.range = range;
+
+ // End the handler directly if this is an annotation end
if (type == HandlerType::ANNOTATION_END) {
endCurrentHandler();
}