Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
eb109a76
Commit
eb109a76
authored
Dec 28, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify section on tokens.
Fixes #457. R=r CC=golang-dev
https://golang.org/cl/181083
parent
33311a79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
go_spec.html
doc/go_spec.html
+4
-3
No files found.
doc/go_spec.html
View file @
eb109a76
...
...
@@ -151,12 +151,13 @@ Comments do not nest.
<p>
Tokens form the vocabulary of the Go language.
There are four classes:
identifiers, keywords,
operators
and delimiters
, and literals
.
<i>
White space
</i>
, formed from
There are four classes:
<i>
identifiers
</i>
,
<i>
keywords
</i>
,
<i>
operators
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.
that would otherwise combine into a single token. Also, a newline
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
valid token.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment