From e5f958b92161732ae46ccc66ce3d6eea213cf925 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 19 Sep 2022 11:05:25 +0200 Subject: Handle line comments nested in block comments Fixes #76 --- src/parse/tokens.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/parse/tokens.rs b/src/parse/tokens.rs index e004dd37..67d413fd 100644 --- a/src/parse/tokens.rs +++ b/src/parse/tokens.rs @@ -591,6 +591,10 @@ impl<'s> Tokens<'s> { depth += 1; '_' } + ('/', '/') => { + self.line_comment(); + '_' + } _ => c, } } -- cgit v1.2.3