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
5eb5d4d3
Commit
5eb5d4d3
authored
Jun 19, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`` strings may span multiple lines
R=rsc DELTA=3 (2 added, 0 deleted, 1 changed) OCL=30511 CL=30513
parent
05240bb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
scanner.go
src/pkg/go/scanner/scanner.go
+1
-1
scanner_test.go
src/pkg/go/scanner/scanner_test.go
+2
-0
No files found.
src/pkg/go/scanner/scanner.go
View file @
5eb5d4d3
...
...
@@ -331,7 +331,7 @@ func (S *Scanner) scanRawString(pos token.Position) {
for
S
.
ch
!=
'`'
{
ch
:=
S
.
ch
;
S
.
next
();
if
ch
==
'\n'
||
ch
<
0
{
if
ch
<
0
{
S
.
error
(
pos
,
"string not terminated"
);
break
;
}
...
...
src/pkg/go/scanner/scanner_test.go
View file @
5eb5d4d3
...
...
@@ -63,6 +63,8 @@ var tokens = [...]elt{
elt
{
token
.
CHAR
,
"'
\\
uff16'"
,
literal
},
elt
{
token
.
CHAR
,
"'
\\
U0000ff16'"
,
literal
},
elt
{
token
.
STRING
,
"`foobar`"
,
literal
},
elt
{
token
.
STRING
,
"`"
`foo
bar`
"`"
,
literal
},
// Operators and delimitors
elt
{
token
.
ADD
,
"+"
,
operator
},
...
...
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