Skip to content

Commit 4dc5d97

Browse files
committed
Add tokenizer special case for '🢲'
1 parent 8ecad5f commit 4dc5d97

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎src/tokenize.jl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ end
2222
function is_identifier_start_char(c::Char)
2323
c == EOF_CHAR && return false
2424
isvalid(c) || return false
25+
c == '🢲' && return false # First divergence from Base.is_id_start_char
2526
return Base.is_id_start_char(c)
2627
end
2728

‎test/tokenize.jl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,11 @@ end
920920
if VERSION >= v"1.10-DEV"
921921
push!(ops, "⥷ ⥺ ⟇")
922922
end
923-
if VERSION >= v"1.12-DEV"
924-
push!(ops, "🢲")
925-
end
926923
allops = split(join(ops, " "), " ")
927924
@test all(s->Base.isoperator(Symbol(s)) == is_operator(first(collect(tokenize(s))).kind), allops)
925+
926+
# "\U1f8b2" added in Julia 1.12
927+
@test is_operator(first(collect(tokenize("🢲"))))
928928
end
929929

930930
const all_kws = Set([

0 commit comments

Comments
 (0)