Skip to content

Commit

Permalink
add ꜛ, ꜜ and ꜝ as operator suffix (JuliaLang#37542)
Browse files Browse the repository at this point in the history
* add ꜛ, ꜜ and ꜝ as operator suffix

* Update NEWS.md

tweak wording

Co-authored-by: Steven G. Johnson <[email protected]>
  • Loading branch information
simeonschaub and stevengj authored Sep 16, 2020
1 parent 4864161 commit ebbf55c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
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 tab-completed from `\^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 @@ -2340,3 +2340,5 @@ if isodd(1) && all(iseven(2) for c in ())
else
@test false
end

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

0 comments on commit ebbf55c

Please sign in to comment.