aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorEduardo Julian2019-04-21 19:44:23 -0400
committerEduardo Julian2019-04-21 19:44:23 -0400
commitdaff89b83c4cbcdb3f0b068e7b4189bdc3adeb72 (patch)
tree3918d7f84e0f9e30bb0ea5b985bc615b703b1b37 /stdlib
parent1706aa26cfa898f5dcabb7bae0fb85400164c461 (diff)
Added short names for special characters.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/source/lux/data/text.lux25
1 files changed, 13 insertions, 12 deletions
diff --git a/stdlib/source/lux/data/text.lux b/stdlib/source/lux/data/text.lux
index 42b8170b9..df3dad17e 100644
--- a/stdlib/source/lux/data/text.lux
+++ b/stdlib/source/lux/data/text.lux
@@ -25,18 +25,19 @@
(-> Char Text)
(|>> (:coerce Int) "lux int char"))
-(template [<code> <name>]
- [(def: #export <name> (from-code <code>))]
-
- [00 null]
- [07 alarm]
- [08 back-space]
- [09 tab]
- [10 new-line]
- [11 vertical-tab]
- [12 form-feed]
- [13 carriage-return]
- [34 double-quote]
+(template [<code> <short> <long>]
+ [(def: #export <long> (from-code <code>))
+ (def: #export <short> <long>)]
+
+ [00 \0 null]
+ [07 \a alarm]
+ [08 \b back-space]
+ [09 \t tab]
+ [10 \n new-line]
+ [11 \v vertical-tab]
+ [12 \f form-feed]
+ [13 \r carriage-return]
+ [34 \' double-quote]
)
(def: #export (size x)