From df97995d5ed7ce49afc251b53ca887c970661186 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Sat, 12 Sep 2020 13:21:16 +0200 Subject: [PATCH 1/2] =?UTF-8?q?add=20=EA=9C=9B,=20=EA=9C=9C=20and=20?= =?UTF-8?q?=EA=9C=9D=20as=20operator=20suffix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NEWS.md | 3 +++ src/flisp/julia_opsuffs.h | 5 ++++- stdlib/REPL/src/latex_symbols.jl | 3 +++ test/syntax.jl | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index b3607e6bf173a..dff38cdea2c99 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 ---------------- diff --git a/src/flisp/julia_opsuffs.h b/src/flisp/julia_opsuffs.h index be7947f051b1c..d3f0584d084e7 100644 --- a/src/flisp/julia_opsuffs.h +++ b/src/flisp/julia_opsuffs.h @@ -122,5 +122,8 @@ static const uint32_t opsuffs[] = { 0x0000209b, // ₛ 0x0000209c, // ₜ 0x00002c7c, // ⱼ - 0x00002c7d // ⱽ + 0x00002c7d, // ⱽ + 0x0000a71b, // ꜛ + 0x0000a71c, // ꜜ + 0x0000a71d // ꜝ }; diff --git a/stdlib/REPL/src/latex_symbols.jl b/stdlib/REPL/src/latex_symbols.jl index 67d31cf9bf1f2..16ed9f5b52982 100644 --- a/stdlib/REPL/src/latex_symbols.jl +++ b/stdlib/REPL/src/latex_symbols.jl @@ -183,6 +183,9 @@ const latex_symbols = Dict( "\\^phi" => "ᵠ", "\\^chi" => "ᵡ", "\\^Phi" => "ᶲ", + "\\^uparrow" => "ꜛ", + "\\^downarrow" => "ꜜ", + "\\^!" => "ꜝ", # Subscripts "\\_0" => "₀", diff --git a/test/syntax.jl b/test/syntax.jl index 451d83a292ef3..c4b5583c1a05d 100644 --- a/test/syntax.jl +++ b/test/syntax.jl @@ -2335,3 +2335,5 @@ if isodd(1) && all(iseven(2) for c in ()) else @test false end + +@test :(a +ꜝ b) == Expr(:call, :+ꜝ, :a, :b) From cdd182156f11475f956a9342ae038ee8d897aaef Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Sat, 12 Sep 2020 18:43:12 -0400 Subject: [PATCH 2/2] Update NEWS.md tweak wording --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index dff38cdea2c99..c0c977fa755b3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -14,7 +14,7 @@ New language features 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 + suffixes. They can be tab-completed from `\^uparrow`, `\^downarrow` and `\^!` in the REPL ([#37542]). Language changes