aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/lex.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-08-11 22:45:32 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-08-11 22:45:32 +0000
commit5d44e40bb5ddc05b604a02e1b4f56ced179ac95b (patch)
treea24af8ccbfaeeeb01a92f6f7b3154cfa428eebc4 /gcc/go/gofrontend/lex.h
parent63ab94b6d5d732161780c68fce775bd23f8e2a99 (diff)
downloadgcc-5d44e40bb5ddc05b604a02e1b4f56ced179ac95b.zip
gcc-5d44e40bb5ddc05b604a02e1b4f56ced179ac95b.tar.gz
gcc-5d44e40bb5ddc05b604a02e1b4f56ced179ac95b.tar.bz2
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
Diffstat (limited to 'gcc/go/gofrontend/lex.h')
-rw-r--r--gcc/go/gofrontend/lex.h2
1 files changed, 1 insertions, 1 deletions
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();