mirror of
https://github.com/golang/go
synced 2024-11-21 19:34:46 -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:
parent
fbab1f1bad
commit
0e66a13d10
@ -1,5 +1,5 @@
|
|||||||
<!-- title The Go Programming Language Specification -->
|
<!-- title The Go Programming Language Specification -->
|
||||||
<!-- subtitle Version of Sep 24, 2010 -->
|
<!-- subtitle Version of Sep 27, 2010 -->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
TODO
|
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),
|
spaces (U+0020), horizontal tabs (U+0009),
|
||||||
carriage returns (U+000D), and newlines (U+000A),
|
carriage returns (U+000D), and newlines (U+000A),
|
||||||
is ignored except as it separates tokens
|
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>.
|
may trigger the insertion of a <a href="#Semicolons">semicolon</a>.
|
||||||
While breaking the input into tokens,
|
While breaking the input into tokens,
|
||||||
the next token is the longest sequence of characters that form a
|
the next token is the longest sequence of characters that form a
|
||||||
|
Loading…
Reference in New Issue
Block a user