File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,7 @@ fn (c Checker) check_number(num ast.Number) ? {
118
118
return error (@MOD + '.' + @STRUCT + '.' + @FN +
119
119
' numbers like "$lit " (hex, octal and binary) can not start with `$ascii ` in ...${c.excerpt(num.pos)} ...' )
120
120
}
121
- // is_first_digit = byte(lit_sans_sign[0]).is_digit()
122
- if lit.len > 1 && lit_sans_sign.starts_with ('0' ) {
121
+ if lit.len > 1 && lit_sans_sign.starts_with ('0' ) && ! lit_sans_sign.starts_with ('0.' ) {
123
122
ascii = byte (lit_sans_sign[0 ]).ascii_str ()
124
123
return error (@MOD + '.' + @STRUCT + '.' + @FN +
125
124
' numbers like "$lit " can not start with `$ascii ` in ...${c.excerpt(num.pos)} ...' )
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ const (
15
15
16
16
// Kept for easier handling of future updates to the tests
17
17
valid_exceptions = [
18
- 'values/spec-float-3.toml' ,
19
18
'values/spec-float-10.toml' ,
20
19
'values/spec-float-11.toml' ,
21
20
'values/spec-float-12.toml' ,
You can’t perform that action at this time.
0 commit comments