Skip to content

Commit

Permalink
Update base/strings/unicode.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Neven Sajko <[email protected]>
  • Loading branch information
eschnett and nsajko authored Jan 1, 2025
1 parent 56498cd commit 7535b58
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions base/strings/unicode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,14 @@ function utf8proc_map(str::Union{String,SubString{String}}, options::Integer, ch
return String(resize!(buffer, nbytes))
end

# Array of {original codepoint, replacement codepoint} normalizations
# to perform on Julia identifiers, to canonicalize characters that
# are both easily confused and easily inputted by accident.
#
# Important: when this table is updated, also update the corresponding table
# in src/flisp/julia_charmap.h
"""
`Dict` of `original codepoint => replacement codepoint` normalizations
to perform on Julia identifiers, to canonicalize characters that
are both easily confused and easily inputted by accident.
!!! warning
When this table is updated, also update the corresponding table in `src/flisp/julia_charmap.h`.
"""
const _julia_charmap = Dict{UInt32,UInt32}(
0x025B => 0x03B5, # latin small letter open e -> greek small letter epsilon
0x00B5 => 0x03BC, # micro sign -> greek small letter mu
Expand Down

0 comments on commit 7535b58

Please sign in to comment.