From: Robert Griesemer Date: Mon, 28 Dec 2009 22:40:42 +0000 (-0800) Subject: Clarify section on tokens. X-Git-Tag: weekly.2010-01-05~31 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eb109a765d1ac7b99568b3185594cd8430de0684;p=gostls13.git Clarify section on tokens. Fixes #457. R=r CC=golang-dev https://golang.org/cl/181083 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index ed740187b9..8a11e49f9d 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -151,12 +151,13 @@ Comments do not nest.

Tokens form the vocabulary of the Go language. -There are four classes: identifiers, keywords, operators -and delimiters, and literals. White space, formed from +There are four classes: identifiers, keywords, operators +and delimiters, and literals. White space, 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. +that would otherwise combine into a single token. Also, a newline +may trigger the insertion of a semicolon. While breaking the input into tokens, the next token is the longest sequence of characters that form a valid token.