Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2014 14:07:50 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r268874 - in vendor/libucl/dist: src tests/basic
Message-ID:  <201407191407.s6JE7oPJ074219@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Jul 19 14:07:49 2014
New Revision: 268874
URL: http://svnweb.freebsd.org/changeset/base/268874

Log:
  Import libucl 20140718 (fixes a bug in the parser)

Added:
  vendor/libucl/dist/tests/basic/11.in   (contents, props changed)
  vendor/libucl/dist/tests/basic/11.res
Modified:
  vendor/libucl/dist/src/ucl_parser.c

Modified: vendor/libucl/dist/src/ucl_parser.c
==============================================================================
--- vendor/libucl/dist/src/ucl_parser.c	Sat Jul 19 14:06:23 2014	(r268873)
+++ vendor/libucl/dist/src/ucl_parser.c	Sat Jul 19 14:07:49 2014	(r268874)
@@ -1661,6 +1661,11 @@ ucl_state_machine (struct ucl_parser *pa
 				return false;
 			}
 			else {
+				/* Skip any spaces */
+				while (p < chunk->end && ucl_test_character (*p,
+						UCL_CHARACTER_WHITESPACE_UNSAFE)) {
+					ucl_chunk_skipc (chunk, p);
+				}
 				p = chunk->pos;
 				if (*p == '[') {
 					parser->state = UCL_STATE_VALUE;

Added: vendor/libucl/dist/tests/basic/11.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ vendor/libucl/dist/tests/basic/11.in	Sat Jul 19 14:07:49 2014	(r268874)
@@ -0,0 +1,3 @@
+
+
+   {"key": "value"}

Added: vendor/libucl/dist/tests/basic/11.res
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ vendor/libucl/dist/tests/basic/11.res	Sat Jul 19 14:07:49 2014	(r268874)
@@ -0,0 +1,2 @@
+key = "value";
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407191407.s6JE7oPJ074219>