Hello!

Could somebody clarify the block comments structure in rust please? The
manual says 'Comments in Rust code follow the general C++ style of line and
block-comment forms, with no nesting of block-comment delimiters.'
http://static.rust-lang.org/doc/master/rust.html#comments

However the grammar looks like it parses nesting of block comment
delimiters, and e.g. the following compiles:

fn main() {
    /* /* */ */ println!("YEAH!");
}

Is the manual wrong or have I mis-understood it? (racer performs comment
cleaning which is why I'm interested)

Thanks,

Phil
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to