Skip to content

Commit

Permalink
change backward's glyph back
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jan 17, 2025
1 parent ce49862 commit fa520d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ This version is not yet released. If you are reading this on the website, then t
- Add data definition methods
- Stabilize subscripted [`random ⚂`](https://uiua.org/docs/random)
- Signature comments can now use a `$` rather than a `?` to automatically label arguments and outputs
- Change [`backward ˜`](https://uiua.org/docs/backward)'s glyph back. `¨` will continue to work and will be formatted as `˜`.
- This glyph has much better font support
- Add sided subscripts for [`reach 𝄐`](https://uiua.org/docs/reach)
- Add the [`# External!`](https://www.uiua.org/tutorial/documentation#external) semantic comment to mark functions that are provided via Rust code
- These functions don't require a Uiua implementation and will show up in the LSP
Expand Down
2 changes: 1 addition & 1 deletion src/lex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ impl<'a> Lexer<'a> {
// Backwards compatibility
"∶" => self.end(Primitive::Flip, start),
"⮌" => self.end(Primitive::Orient, start),
"¨" | "˜" => self.end(Primitive::Backward, start),
"¨" => self.end(Primitive::Backward, start),
"⍛" => self.end(Primitive::Obverse, start),
"◫" => {
self.end(Primitive::Stencil, start);
Expand Down
4 changes: 2 additions & 2 deletions src/primitive/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1943,8 +1943,8 @@ primitive!(
/// This is a modifier version of [flip].
/// It is experimental because it is unclear whether this is a desirable direction for the language.
/// ex: # Experimental!
/// : 𝄈⊂ 1 2
([1], Backward, Stack, ("backward", '𝄈')),
/// : ˜⊂ 1 2
([1], Backward, Stack, ("backward", '˜')),
/// Call a function on two sets of values
///
/// For monadic functions, [both] calls its function on each of the top 2 values on the stack.
Expand Down

0 comments on commit fa520d3

Please sign in to comment.