-
Notifications
You must be signed in to change notification settings - Fork 193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thank you for tackling this!
We may need to fix it a little bit better
src/front/wgsl/lexer.rs
Outdated
let mut depth = 1; | ||
while let Some(c) = chars.next() { | ||
match c { | ||
'*' if chars.next() == Some('/') => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will fail on a case like this: /* blabla **/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hopefully it's fixed, there can be strange cases like /*/**/****/
, which is a properly terminated block comment
4315d79
to
325af95
Compare
Some tests would be nice to have |
And clippy is unhappy |
a2cd31a
to
e507d71
Compare
e507d71
to
b301ca2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Fixes #1582
Implement block comments that support nesting.