From e665d9725c4bb02f4c18d16527367f424cb880fa Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 20 Mar 2019 15:55:57 -0700 Subject: Auto-updated to 7.0.0 syntax and removed some shims. --- lib/core/text.nom | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/core/text.nom') 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 -- cgit v1.2.3