diff options
author | Rory Dudley | 2024-09-01 04:27:00 -0600 |
---|---|---|
committer | Rory Dudley | 2024-09-01 04:27:00 -0600 |
commit | 49676c0e1c5fd0660edfd73cfd97001a00b7bd8b (patch) | |
tree | 140bbb0a79252dabbe9535f9b7eaa31ad6ee701e /src/poem/elements/rune.rs | |
parent | 0596517643d9daffa1c4b7b3b0f913ac6d1ab9cd (diff) | |
parent | d03b4643c9c4f85c642182da7a56a613b6f819d4 (diff) | |
download | dwarvish-49676c0e1c5fd0660edfd73cfd97001a00b7bd8b.tar.gz |
Merge branch 'main' into escsq
Diffstat (limited to 'src/poem/elements/rune.rs')
-rw-r--r-- | src/poem/elements/rune.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/poem/elements/rune.rs b/src/poem/elements/rune.rs index 64e3326..79d53d0 100644 --- a/src/poem/elements/rune.rs +++ b/src/poem/elements/rune.rs @@ -19,6 +19,9 @@ pub enum Rune { /// The space character, to dilineate words (`' '`) Pause, + /// The backslash character, to escape special character (`\`) + Special, + /// The forward slash character, to dilineate paths (`/`) Path, @@ -81,6 +84,7 @@ impl fmt::Display for Rune { let rune = match self { Rune::None => "", Rune::Pause => " ", + Rune::Special => "\\", Rune::Path => "/", Rune::Remark => "#", Rune::String => "\"", |