From b9548e653681c21a4ede35fc71b1968a01734848 Mon Sep 17 00:00:00 2001 From: Tpt Date: Tue, 2 Oct 2018 14:55:00 +0200 Subject: [PATCH] Fixes a bug in Turtle parsing --- src/rio/turtle/turtle_grammar.rustpeg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rio/turtle/turtle_grammar.rustpeg b/src/rio/turtle/turtle_grammar.rustpeg index 24ef93a7..9dc78e0a 100644 --- a/src/rio/turtle/turtle_grammar.rustpeg +++ b/src/rio/turtle/turtle_grammar.rustpeg @@ -49,7 +49,8 @@ triples_blankNodePropertyList_push -> () = s: blankNodePropertyList { } //[7] -predicateObjectList -> () = predicate_push _ objectList _ (";" _ (predicate_push _ objectList _)?)* { +predicateObjectList -> () = predicateObject (";" _ predicateObject?)* +predicateObject -> () = predicate_push _ objectList _ { state.cur_predicate.pop(); } predicate_push -> () = v:verb {