summaryrefslogtreecommitdiff
path: root/crates/typst-syntax
diff options
context:
space:
mode:
authorHeinenen <37484430+Heinenen@users.noreply.github.com>2023-12-30 14:01:05 +0100
committerGitHub <noreply@github.com>2023-12-30 13:01:05 +0000
commitc27b9e2b0fad9fa3c68837ba12f0b32774daaf67 (patch)
treefc8ce0fe1399d61370c3a42de415f2c415ebc907 /crates/typst-syntax
parentc4d9b0c3d8d2cf895137d2047e597fd3e24e0104 (diff)
Don't allow nested line comment inside block comment (#3048)
Diffstat (limited to 'crates/typst-syntax')
-rw-r--r--crates/typst-syntax/src/lexer.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/typst-syntax/src/lexer.rs b/crates/typst-syntax/src/lexer.rs
index 156f9404..ecb800ba 100644
--- a/crates/typst-syntax/src/lexer.rs
+++ b/crates/typst-syntax/src/lexer.rs
@@ -145,10 +145,6 @@ impl Lexer<'_> {
depth += 1;
'_'
}
- ('/', '/') => {
- self.line_comment();
- '_'
- }
_ => c,
}
}