Skip to content

Commit ebbf55c

Browse files
add ꜛ, ꜜ and ꜝ as operator suffix (#37542)
* add ꜛ, ꜜ and ꜝ as operator suffix * Update NEWS.md tweak wording Co-authored-by: Steven G. Johnson <[email protected]>
1 parent 4864161 commit ebbf55c

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ New language features
1313
* The library name passed to `ccall` or `@ccall` can now be an expression involving
1414
global variables and function calls. The expression will be evaluated the first
1515
time the `ccall` executes ([#36458]).
16+
* `` (U+A71B), `` (U+A71C) and `` (U+A71D) can now also be used as operator
17+
suffixes. They can be tab-completed from `\^uparrow`, `\^downarrow` and `\^!` in the REPL
18+
([#37542]).
1619

1720
Language changes
1821
----------------

src/flisp/julia_opsuffs.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,8 @@ static const uint32_t opsuffs[] = {
122122
0x0000209b, // ₛ
123123
0x0000209c, // ₜ
124124
0x00002c7c, // ⱼ
125-
0x00002c7d // ⱽ
125+
0x00002c7d, // ⱽ
126+
0x0000a71b, // ꜛ
127+
0x0000a71c, // ꜜ
128+
0x0000a71d // ꜝ
126129
};

stdlib/REPL/src/latex_symbols.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ const latex_symbols = Dict(
183183
"\\^phi" => "",
184184
"\\^chi" => "",
185185
"\\^Phi" => "",
186+
"\\^uparrow" => "",
187+
"\\^downarrow" => "",
188+
"\\^!" => "",
186189

187190
# Subscripts
188191
"\\_0" => "",

test/syntax.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,3 +2340,5 @@ if isodd(1) && all(iseven(2) for c in ())
23402340
else
23412341
@test false
23422342
end
2343+
2344+
@test :(a +ꜝ b) == Expr(:call, :+ꜝ, :a, :b)

0 commit comments

Comments
 (0)