Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ꜛ, ꜜ and ꜝ as operator suffix #37542

Merged
merged 2 commits into from
Sep 16, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ New language features
* The library name passed to `ccall` or `@ccall` can now be an expression involving
global variables and function calls. The expression will be evaluated the first
time the `ccall` executes ([#36458]).
* `ꜛ` (U+A71B), `ꜜ` (U+A71C) and `ꜝ` (U+A71D) can now also be used as operator
suffixes. They can be written as `\^uparrow`, `\^downarrow` and `\^!` in the REPL
([#37542]).

Language changes
----------------
Expand Down
5 changes: 4 additions & 1 deletion src/flisp/julia_opsuffs.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,8 @@ static const uint32_t opsuffs[] = {
0x0000209b, // ₛ
0x0000209c, // ₜ
0x00002c7c, // ⱼ
0x00002c7d // ⱽ
0x00002c7d, // ⱽ
0x0000a71b, // ꜛ
0x0000a71c, // ꜜ
0x0000a71d // ꜝ
};
3 changes: 3 additions & 0 deletions stdlib/REPL/src/latex_symbols.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ const latex_symbols = Dict(
"\\^phi" => "ᵠ",
"\\^chi" => "ᵡ",
"\\^Phi" => "ᶲ",
"\\^uparrow" => "ꜛ",
"\\^downarrow" => "ꜜ",
"\\^!" => "ꜝ",

# Subscripts
"\\_0" => "₀",
Expand Down
2 changes: 2 additions & 0 deletions test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2335,3 +2335,5 @@ if isodd(1) && all(iseven(2) for c in ())
else
@test false
end

@test :(a +ꜝ b) == Expr(:call, :+ꜝ, :a, :b)