diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 20:27:15 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 20:27:27 -0700 |
| commit | 6728587dfc6a5f4090f2673113ffedb2be924daf (patch) | |
| tree | 77591abacd8760bedaa30110570613ef263220fe /core/text.nom | |
| parent | c9df1bc3e881b2ebcf5808a0db7bea29cd07c849 (diff) | |
Auto-formatted and auto-upgraded everything!
Diffstat (limited to 'core/text.nom')
| -rw-r--r-- | core/text.nom | 10 |
1 files changed, 6 insertions, 4 deletions
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 |
