File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1058
1058
(and (not (number? t)) ; ; disallow "x.3" and "sqrt(2)2"
1059
1059
(not (eqv? t #\@ )) ; ; disallow "x@time"
1060
1060
; ; issue #16427, disallow juxtaposition with block forms
1061
- (not (and (pair? expr) (block-form? (car expr)))))
1061
+ (not (and (pair? expr) (or (block-form? (car expr))
1062
+ (syntactic-unary-op? (car expr))
1063
+ (initial-reserved-word? (car expr))))))
1062
1064
; ; to allow x'y as a special case
1063
1065
#; (and (pair? expr) (memq (car expr) '(|'| |.'|))
1064
1066
(not (memv t ' (#\( #\[ #\{ ))))
1071
1073
; ; issue #20575
1072
1074
(error " cannot juxtapose string literal" ))
1073
1075
(not (initial-reserved-word? t))
1074
- (not (and (pair? expr) (syntactic-unary-op? (car expr))))
1075
1076
; ; TODO: this would disallow juxtaposition with 0, which is ambiguous
1076
1077
; ; with e.g. hex literals `0x...`. however this is used for `0im`, which
1077
1078
; ; we might not want to break.
Original file line number Diff line number Diff line change @@ -1265,3 +1265,6 @@ function bar16239()
1265
1265
f ()
1266
1266
end
1267
1267
@test bar16239 () == 0
1268
+
1269
+ # issue #25020
1270
+ @test_throws ParseError Meta. parse (" using Colors()" )
You can’t perform that action at this time.
0 commit comments