We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
a in b
1 parent 07ef29f commit 4e904a6Copy full SHA for 4e904a6
src/julia-parser.scm
@@ -59,6 +59,7 @@
59
(pushprec (cdr L) (+ prec 1)))))
60
(pushprec (map eval prec-names) 1)
61
t))
62
+(put! prec-table 'in (get prec-table '== 0)) ; add `in` to the prec-table
63
(define (operator-precedence op) (get prec-table op 0))
64
65
(define unary-ops '(+ - ! ¬ ~ |<:| |>:| √ ∛ ∜))
test/show.jl
@@ -78,6 +78,8 @@ end
78
#@test_repr "w = (x = y) = z" # Doesn't pass, but it's an invalid assignment loc
79
@test_repr "a & b && c"
80
@test_repr "a & (b && c)"
81
+@test_repr "(a => b) in c"
82
+@test_repr "a => b in c"
83
84
# precedence tie resolution
85
@test_repr "(a * b) * (c * d)"
0 commit comments