compiler: Handle newlines in general comments.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 11 Aug 2015 22:45:32 +0000 (22:45 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 11 Aug 2015 22:45:32 +0000 (22:45 +0000)
commit5d44e40bb5ddc05b604a02e1b4f56ced179ac95b
treea24af8ccbfaeeeb01a92f6f7b3154cfa428eebc4
parent63ab94b6d5d732161780c68fce775bd23f8e2a99
compiler: Handle newlines in general comments.

    On comments, the specification says
    (http://golang.org/ref/spec#Comments): General comments start with the
    character sequence /* and continue through the character sequence */.
    A general comment containing one or more newlines acts like a newline,
    otherwise it acts like a space.

    Fixes golang/go#11528.

    Reviewed-on: https://go-review.googlesource.com/13064

From-SVN: r226794
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/lex.cc
gcc/go/gofrontend/lex.h