summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 11:05:25 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 11:05:25 +0200
commite5f958b92161732ae46ccc66ce3d6eea213cf925 (patch)
tree9554daeeb4128eb25764066ee782ddabd7f66d18 /src
parenta2e25d2dadc1e3ef4a990b3fa4734044a4400efd (diff)
Handle line comments nested in block comments
Fixes #76
Diffstat (limited to 'src')
-rw-r--r--src/parse/tokens.rs4
1 files changed, 4 insertions, 0 deletions
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,
}
}