diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-21 10:29:59 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-21 10:29:59 +0100 |
| commit | 69136b74dc0026bcac09997569a172ba0a5083b5 (patch) | |
| tree | 61c1268a0d3004371c4f08cf09fddb0380ea76e1 /src/syntax/ast.rs | |
| parent | a14eb1952d0eb82293be01d1c2ebebbe41f55f3c (diff) | |
More math shorthands
Diffstat (limited to 'src/syntax/ast.rs')
| -rw-r--r-- | src/syntax/ast.rs | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 9b76d292..73aa41e1 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -427,6 +427,8 @@ node! { impl Shorthand { /// A list of all shorthands. pub const LIST: &[(&'static str, char)] = &[ + // Both. + ("...", '…'), // Text only. ("~", '\u{00A0}'), ("--", '\u{2013}'), @@ -437,25 +439,39 @@ impl Shorthand { ("'", '′'), ("*", '∗'), ("!=", '≠'), + (":=", '≔'), + ("::=", '⩴'), + ("=:", '≕'), ("<<", '≪'), ("<<<", '⋘'), (">>", '≫'), (">>>", '⋙'), ("<=", '≤'), (">=", '≥'), - ("<-", '←'), ("->", '→'), - ("=>", '⇒'), + ("-->", '⟶'), ("|->", '↦'), - ("|=>", '⤇'), + (">->", '↣'), + ("->>", '↠'), + ("<-", '←'), + ("<--", '⟵'), + ("<-<", '↢'), + ("<<-", '↞'), ("<->", '↔'), + ("<-->", '⟷'), + ("~>", '⇝'), + ("~~>", '⟿'), + ("<~", '⇜'), + ("<~~", '⬳'), + ("=>", '⇒'), + ("|=>", '⤇'), + ("==>", '⟹'), + ("<==", '⟸'), ("<=>", '⇔'), - (":=", '≔'), + ("<==>", '⟺'), ("[|", '⟦'), ("|]", '⟧'), ("||", '‖'), - // Both. - ("...", '…'), ]; /// Get the shorthanded character. |
