diff --git a/NEWS.md b/NEWS.md index 92bc3a85e90c77..0358af128dd1c4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -31,7 +31,7 @@ New language features `@generated` and normal implementations of part of a function. Surrounding code will be common to both versions ([#23168]). - * Added `⟂` (perp) operator with comparison precedence ([#24404]). + * Added `⟂` (`\perp`) operator with comparison precedence ([#24404]). * The `missing` singleton object (of type `Missing`) has been added to represent missing values ([#24653]). It propagates through standard operators and mathematical functions, diff --git a/src/flisp/julia_extensions.c b/src/flisp/julia_extensions.c index a4ad68575b8e9f..4e53f9af804e7e 100644 --- a/src/flisp/julia_extensions.c +++ b/src/flisp/julia_extensions.c @@ -84,7 +84,7 @@ static int is_wc_cat_id_start(uint32_t wc, utf8proc_category_t cat) (wc >= 0x266f && (wc == 0x266f || wc == 0x27d8 || wc == 0x27d9 || // ♯, ⟘, ⟙ - (wc >= 0x27c0 && wc <= 0x27c2) || // ⟀, ⟁, ⟂ + (wc >= 0x27c0 && wc <= 0x27c1) || // ⟀, ⟁ (wc >= 0x29b0 && wc <= 0x29b4) || // ⦰, ⦱, ⦲, ⦳, ⦴ (wc >= 0x2a00 && wc <= 0x2a06) || // ⨀, ⨁, ⨂, ⨃, ⨄, ⨅, ⨆ (wc >= 0x2a09 && wc <= 0x2a16) || // ⨉, ⨊, ⨋, ⨌, ⨍, ⨎, ⨏, ⨐, ⨑, ⨒, ⨓, ⨔, ⨕, ⨖ diff --git a/test/parse.jl b/test/parse.jl index 2792058e18237b..c65cf8bf0c7d93 100644 --- a/test/parse.jl +++ b/test/parse.jl @@ -254,3 +254,6 @@ end end @test_throws ArgumentError parse(Complex{Int}, "3 + 4.2im") end + +# added ⟂ to operator precedence (#24404) +@test Meta.parse("x ⟂ y") == Expr(:call,:⟂,:x,:y)