]> git.lizzy.rs Git - rust.git/commit
auto merge of #4911 : lifthrasiir/rust/comment-exemptions, r=catamorphism
authorbors <bors@rust-lang.org>
Fri, 15 Feb 2013 00:34:38 +0000 (16:34 -0800)
committerbors <bors@rust-lang.org>
Fri, 15 Feb 2013 00:34:38 +0000 (16:34 -0800)
commitbf27352953dba644568118a254ac4a3c3035daa0
treed57f840b31b65c3d5dcf4544cf5814fc9bac685c
parent3c07d037cd38204bda1ff9c564b6c1941c25138f
parent5336bf6addc7091ed303a06246b43b99dc0c5cd1
auto merge of #4911 : lifthrasiir/rust/comment-exemptions, r=catamorphism

This is a natural extension of #4887, and handles the following three cases:

~~~~
a line with only /s
////////////////////////////////////////////

a line with only /s followed by whitespace
////////////////////////////////////////////

a block comment with only *s between two /s
/********************************/
~~~~
src/libsyntax/parse/comments.rs
src/libsyntax/parse/lexer.rs