Skip to content

Commit eb76616

Browse files
authored
Merge branch 'master' into sp/fix-310
2 parents 1a9d551 + 753b3c6 commit eb76616

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/operators.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ function parse_operator(ps::ParseState, ret::EXPR, op::EXPR)
451451
if isidentifier(ret) || isliteral(ret) ||
452452
headof(ret) in (:call, :tuple, :brackets, :ref, :vect, :vcat, :hcat, :typed_vcat, :typed_hcat, :comprehension, :typed_comprehension, :curly, :braces, :braces_cat) ||
453453
headof(ret) === :do ||
454-
is_dot(headof(ret))
454+
is_dot(headof(ret)) ||
455+
is_prime(headof(ret))
455456
if valof(op) == "'"
456457
ret = EXPR(op, EXPR[ret], nothing)
457458
else

test/parser.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,9 @@ end
11051105
@test test_expr("a'ᵀ")
11061106
@test test_expr(":(a'ᵀ)")
11071107
end
1108+
@test test_expr("a'")
1109+
@test test_expr("a''")
1110+
@test test_expr("a'''")
11081111
end
11091112

11101113
@testset "end as id juxt" begin

0 commit comments

Comments
 (0)