diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-01-09 11:46:46 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-01-09 11:46:46 +0000 |
commit | 064ff0081d0025b6f065ee5e1e2dbdcb0f593cbd (patch) | |
tree | 4aea7bd71d4d6874b59d2fd6fbb48704caf58617 /src/library | |
parent | 13148cc2ae9f9f875987f986d831057d8687d194 (diff) | |
download | scala-064ff0081d0025b6f065ee5e1e2dbdcb0f593cbd.tar.gz scala-064ff0081d0025b6f065ee5e1e2dbdcb0f593cbd.tar.bz2 scala-064ff0081d0025b6f065ee5e1e2dbdcb0f593cbd.zip |
Applied patch from Ticket #330.
Fixed the parsing of 0 by the JSON library.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/util/parsing/json/Lexer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/util/parsing/json/Lexer.scala b/src/library/scala/util/parsing/json/Lexer.scala index c44e290797..143871c8da 100644 --- a/src/library/scala/util/parsing/json/Lexer.scala +++ b/src/library/scala/util/parsing/json/Lexer.scala @@ -62,7 +62,7 @@ class Lexer extends StdLexical with ImplicitConversions { case None => "" } - def zero: Parser[String] = '0' ^^ toString + def zero: Parser[String] = '0' ^^ "0" def nonzero = elem("nonzero digit", d => d.isDigit && d != '0') def exponent = elem("exponent character", d => d == 'e' || d == 'E') def sign = elem("sign character", d => d == '-' || d == '+') |