diff options
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 |
