From d608a23da62c9a93c01802997f1204fd494eb97d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 5 Nov 2018 04:29:00 +0100 Subject: map_group(): Fix error when mappings start with comment or whitespace Previously we'd get an error if the first lines in the mappings file were blank or comments. --- src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 3f3d7b9..81f1573 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -630,10 +630,10 @@ where I::Error: ParseError, { or( - ( + try(( blank(), eof(), - ).map(|_| MapGroup::default()), + )).map(|_| MapGroup::default()), ( definitions(), eof(), -- cgit v1.2.3