From 5d44e40bb5ddc05b604a02e1b4f56ced179ac95b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 11 Aug 2015 22:45:32 +0000 Subject: 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/lex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/go/gofrontend/lex.h') diff --git a/gcc/go/gofrontend/lex.h b/gcc/go/gofrontend/lex.h index 383a917..3e0152a 100644 --- a/gcc/go/gofrontend/lex.h +++ b/gcc/go/gofrontend/lex.h @@ -469,7 +469,7 @@ class Lex one_character_operator(char); bool - skip_c_comment(); + skip_c_comment(bool* found_newline); void skip_cpp_comment(); -- cgit v1.1