diff --git a/NEWS.md b/NEWS.md index 4fcdc0e18f01c..2afaf9e2adfd2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -36,6 +36,7 @@ is thrown, rather than a `ErrorException` ([#27900]). * Functions that invoke commands (e.g. `run(::Cmd)`) now throw a `ProcessFailedException` rather than an `ErrorException`, if those commands exit with non-zero exit code. ([#27900]). +* Added `⋆` (`\star`) as unary operator ([#31604]). Command-line option changes --------------------------- diff --git a/src/julia-parser.scm b/src/julia-parser.scm index 7c8a36d21f141..a8f35a54298b6 100644 --- a/src/julia-parser.scm +++ b/src/julia-parser.scm @@ -102,12 +102,12 @@ 0)) (define unary-ops (append! '(|<:| |>:|) - (add-dots '(+ - ! ~ ¬ √ ∛ ∜)))) + (add-dots '(+ - ! ~ ¬ √ ∛ ∜ ⋆)))) (define unary-op? (Set unary-ops)) ; operators that are both unary and binary -(define unary-and-binary-ops '(+ - $ & ~ |.+| |.-|)) +(define unary-and-binary-ops '(+ - $ & ~ ⋆ |.+| |.-| |.⋆|)) (define unary-and-binary-op? (Set unary-and-binary-ops))