[cig-commits] commit: Allow comments in json
Mercurial
hg at geodynamics.org
Wed Nov 9 00:48:06 PST 2011
changeset: 394:cacdf4949b4e
user: Walter Landry <wlandry at caltech.edu>
date: Tue Nov 08 15:10:33 2011 -0800
files: json_spirit/json_spirit/json_spirit_reader_template.h
description:
Allow comments in json
diff -r 5f10b39a3810 -r cacdf4949b4e json_spirit/json_spirit/json_spirit_reader_template.h
--- a/json_spirit/json_spirit/json_spirit_reader_template.h Tue Nov 08 15:09:47 2011 -0800
+++ b/json_spirit/json_spirit/json_spirit_reader_template.h Tue Nov 08 15:10:33 2011 -0800
@@ -560,9 +560,9 @@ namespace json_spirit
const spirit_namespace::parse_info< Iter_type > info =
spirit_namespace::parse( begin, end,
Json_grammer< Value_type, Iter_type >( semantic_actions ),
- spirit_namespace::space_p);
- // | spirit_namespace::comment_p("//")
- // | spirit_namespace::comment_p("/*","*/"));
+ spirit_namespace::space_p
+ | spirit_namespace::comment_p("//")
+ | spirit_namespace::comment_p("/*","*/"));
if( !info.hit )
{
assert( false ); // in theory exception should already have been thrown
More information about the CIG-COMMITS
mailing list