diff --git a/src/parser.rs b/src/parser.rs index 45e13464..5c09f10d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -24,7 +24,7 @@ where Input: Stream, Input::Error: ParseError, { - let prog = string("program").with(spaces()).with( + let prog = string("program").with(skip_many1(space())).with( (version(), skip_many1(space()), term().skip(spaces())) .map(|(version, _, term)| Program { version, term }), );