diff options
author | Robert Griesemer <gri@golang.org> | 2010-02-24 17:06:40 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-02-24 17:06:40 -0800 |
commit | e9953c87424e88d8017b33f0576be7e482b3a28f (patch) | |
tree | 81683c9e97cd9e11850c624b620c543e495abd44 /src/pkg/go/token/token.go | |
parent | b9735a128b9a45776d364d37e78b60b02bc78773 (diff) | |
download | golang-e9953c87424e88d8017b33f0576be7e482b3a28f.tar.gz |
go/scanner: support for complex (imaginary) constants
R=rsc
CC=golang-dev
http://codereview.appspot.com/223044
Diffstat (limited to 'src/pkg/go/token/token.go')
-rw-r--r-- | src/pkg/go/token/token.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/go/token/token.go b/src/pkg/go/token/token.go index 95a35fed0..df4064c00 100644 --- a/src/pkg/go/token/token.go +++ b/src/pkg/go/token/token.go @@ -30,6 +30,7 @@ const ( IDENT // main INT // 12345 FLOAT // 123.45 + IMAG // 123.45i CHAR // 'a' STRING // "abc" literal_end @@ -140,6 +141,7 @@ var tokens = map[Token]string{ IDENT: "IDENT", INT: "INT", FLOAT: "FLOAT", + IMAG: "IMAG", CHAR: "CHAR", STRING: "STRING", |