Commit 40b7213
committed
Handle +Inf and -Inf as infinity literals in parser
Previously +Inf was being parsed as a unary plus function applied to
the Inf identifier, causing array literals containing +Inf to be
treated as function calls instead of literal arrays. Now +Inf and -Inf
are recognized as special Float64 infinity literals.1 parent 44a42e1 commit 40b7213
2 files changed
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
987 | 997 | | |
988 | 998 | | |
989 | 999 | | |
| |||
1031 | 1041 | | |
1032 | 1042 | | |
1033 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1034 | 1058 | | |
1035 | | - | |
| 1059 | + | |
1036 | 1060 | | |
1037 | 1061 | | |
1038 | | - | |
1039 | 1062 | | |
1040 | 1063 | | |
1041 | 1064 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 1 | + | |
0 commit comments