From 88080fe059fe4e097e9e3ca0560ad80b9036c3ef Mon Sep 17 00:00:00 2001 From: chyyran Date: Thu, 20 Oct 2022 02:37:43 -0400 Subject: [PATCH] preset: fix multiline comments --- librashader-presets/src/parse/token.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/librashader-presets/src/parse/token.rs b/librashader-presets/src/parse/token.rs index f2ebeaf..4714397 100644 --- a/librashader-presets/src/parse/token.rs +++ b/librashader-presets/src/parse/token.rs @@ -120,9 +120,11 @@ fn parse_tokens(mut span: Span) -> IResult> { } if let Ok((input, _)) = multiline_comment(span) { span = input; + continue; } if let Ok((input, _)) = single_comment(span) { span = input; + continue; } let (input, token) = parse_key_value(span)?; span = input;