fix: better spaces after program keyword

This commit is contained in:
rvcas 2022-05-07 14:16:09 -04:00
parent 3484e484a9
commit 95c687dd8e
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ where
Input: Stream<Token = char>, Input: Stream<Token = char>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>, Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
{ {
let prog = string("program").with(spaces()).with( let prog = string("program").with(skip_many1(space())).with(
(version(), skip_many1(space()), term().skip(spaces())) (version(), skip_many1(space()), term().skip(spaces()))
.map(|(version, _, term)| Program { version, term }), .map(|(version, _, term)| Program { version, term }),
); );