Don't allow floats starting with a dot

This commit is contained in:
Thomas Pelletier
2013-12-10 17:17:15 +01:00
parent c743c90315
commit 278c4d97ec
3 changed files with 21 additions and 0 deletions
+2
View File
@@ -141,6 +141,8 @@ func parseRvalue(p *parser) interface{} {
return val
case tokenLeftBracket:
return parseArray(p)
case tokenError:
panic(tok.val)
}
panic("never reached")