Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/kinds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ register_kinds!(JuliaSyntax, 0, [
"↶"
"↺"
"↻"
"🢲"
"END_ARROW"

# Level 4
Expand Down
1 change: 1 addition & 0 deletions src/tokenize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ end
function is_identifier_start_char(c::Char)
c == EOF_CHAR && return false
isvalid(c) || return false
c == '🢲' && return false # First divergence from Base.is_id_start_char
return Base.is_id_start_char(c)
end

Expand Down
3 changes: 3 additions & 0 deletions test/tokenize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,9 @@ end
end
allops = split(join(ops, " "), " ")
@test all(s->Base.isoperator(Symbol(s)) == is_operator(first(collect(tokenize(s))).kind), allops)

# "\U1f8b2" added in Julia 1.12
@test is_operator(first(collect(tokenize("🢲"))))
end

const all_kws = Set([
Expand Down
Loading