Rust: Multi-line comments

Created on 25 Jun 2010  路  2Comments  路  Source: rust-lang/rust

Currently no support for multi-line comments in source files, only single-line (the // kind). Implement multi-line comments in the frontend. Should be depth-balanced. As Graydon puts it, "the lexer already has a sample bracequote balanced-quote sub-mode, easy to copy for multiline comments."

A-frontend E-easy

Most helpful comment

Here's an implementation of /* */ comments with nesting:
http://github.com/mbrubeck/rust/commit/fdab6b81b7478394d8fd9e10a2f1b005e6b7a16c

All 2 comments

Here's an implementation of /* */ comments with nesting:
http://github.com/mbrubeck/rust/commit/fdab6b81b7478394d8fd9e10a2f1b005e6b7a16c

Thanks. Taken as 244ea680820c205461ad5af979c0a722372e6dc6 .

Was this page helpful?
0 / 5 - 0 ratings