From 6728587dfc6a5f4090f2673113ffedb2be924daf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 20 Jul 2018 20:27:15 -0700 Subject: Auto-formatted and auto-upgraded everything! --- core/text.nom | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'core/text.nom') diff --git a/core/text.nom b/core/text.nom index dc67ec5..641db14 100644 --- a/core/text.nom +++ b/core/text.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V2.4.4.3 +#!/usr/bin/env nomsu -V2.5.4.3 # This file contains some definitions of text escape sequences, including ANSI console color codes. @@ -20,7 +20,8 @@ compile [..] %text with %sub instead of %patt, %text with %patt replaced by %sub %text s/ %patt / %sub ..to (..) - Lua value "((\(%text as lua expr)):gsub(\(%patt as lua expr), \(%sub as lua expr)))" + Lua value ".." + ((\(%text as lua expr)):gsub(\(%patt as lua expr), \(%sub as lua expr))) action [lines in %text, lines of %text] (..) lua> ".." @@ -49,7 +50,8 @@ compile [%expr for %match in %text matching %patt] to (..) end)() compile [%text matches %pattern] to (..) - Lua value "(\(%text as lua expr):match(\(%pattern as lua expr)) and true or false)" + Lua value ".." + (\(%text as lua expr):match(\(%pattern as lua expr)) and true or false) # Text literals @@ -66,4 +68,4 @@ lua> ".." return LuaCode.Value(tree.source, lua) end end - end + end \ No newline at end of file -- cgit v1.2.3