1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:24:44 -07:00

go_spec: EOF may insert a semicolon

R=rsc, r, iant
CC=golang-dev
https://golang.org/cl/2266043
This commit is contained in:
Robert Griesemer 2010-09-27 18:59:11 -07:00
parent fbab1f1bad
commit 0e66a13d10

View File

@ -1,5 +1,5 @@
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of Sep 24, 2010 -->
<!-- subtitle Version of Sep 27, 2010 -->
<!--
TODO
@ -163,7 +163,7 @@ and delimiters</i>, and <i>literals</i>. <i>White space</i>, formed from
spaces (U+0020), horizontal tabs (U+0009),
carriage returns (U+000D), and newlines (U+000A),
is ignored except as it separates tokens
that would otherwise combine into a single token. Also, a newline
that would otherwise combine into a single token. Also, a newline or end of file
may trigger the insertion of a <a href="#Semicolons">semicolon</a>.
While breaking the input into tokens,
the next token is the longest sequence of characters that form a