From de7d3383d138d479d14b9040c2a5c3300af05f66 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 14 Jun 2012 11:49:47 +0100 Subject: [PATCH] + make feature's optional: -(feature % lit(',')) --- include/mapnik/json/feature_collection_grammar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/json/feature_collection_grammar.hpp b/include/mapnik/json/feature_collection_grammar.hpp index 9117b14a7..54c749dd4 100644 --- a/include/mapnik/json/feature_collection_grammar.hpp +++ b/include/mapnik/json/feature_collection_grammar.hpp @@ -87,7 +87,7 @@ struct feature_collection_grammar : features = lit("\"features\"") > lit(":") > lit('[') - > feature(_val) % lit(',') + > -(feature(_val) % lit(',')) > lit(']') ;