aboutsummaryrefslogtreecommitdiff
path: root/lib/core/text.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-20 15:55:57 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-20 15:55:57 -0700
commite665d9725c4bb02f4c18d16527367f424cb880fa (patch)
treeaed161ee6b338c2bad2312591f746459414ccafa /lib/core/text.nom
parent606fd090002f3d545cbd58440e96624907846f45 (diff)
Auto-updated to 7.0.0 syntax and removed some shims.
Diffstat (limited to 'lib/core/text.nom')
-rw-r--r--lib/core/text.nom13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/core/text.nom b/lib/core/text.nom
index d7719b3..42f2e41 100644
--- a/lib/core/text.nom
+++ b/lib/core/text.nom
@@ -1,5 +1,6 @@
-#!/usr/bin/env nomsu -V6.15.13.8
-#
+#!/usr/bin/env nomsu -V7.0.0
+
+###
This file contains some definitions of text escape sequences, including ANSI console
color codes.
@@ -62,17 +63,17 @@ test:
external:
($num as hex) means:
if ($num < 0):
- return ("-0x%X", formatted with (- $num))
+ return ("-0x%X", formatted with -$num)
..else:
return ("0x%X", formatted with $num)
-# Text literals
+### Text literals
$escapes = {
.nl = "\n", .newline = "\n", .tab = "\t", .bell = "\a", .cr = "\r"
."carriage return" = "\r", .backspace = "\b", ."form feed" = "\f"
.formfeed = "\f", ."vertical tab" = "\v"
}
-for $name = $str in $escapes:
+for ($name = $str) in $escapes:
with [$lua = (Lua (quote $str))]:
- $(COMPILE RULES).$name = (-> $lua)
+ $(COMPILE RULES).$name = ->$lua \ No newline at end of file