This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
gython
mirror of
https://github.com/brettlangdon/gython.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
do not include EOF in token literal
master
Brett Langdon
10 years ago
parent
4e318409ff
commit
a7a729f579
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
scanner/position.go
+ 3
- 0
scanner/position.go
View File
@ -45,6 +45,9 @@ func (positions *Positions) EndingColumn() int {
func
(
positions
*
Positions
)
String
(
)
string
{
literal
:=
""
for
_
,
pos
:=
range
positions
.
positions
{
if
pos
.
Char
==
EOF
{
continue
}
literal
+=
string
(
pos
.
Char
)
}
Write
Preview
Loading…
Cancel
Save