diff options
Diffstat (limited to 'lib/core/text.nom')
| -rw-r--r-- | lib/core/text.nom | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/core/text.nom b/lib/core/text.nom index 1401cf2..d7719b3 100644 --- a/lib/core/text.nom +++ b/lib/core/text.nom @@ -43,16 +43,15 @@ test: ($expr for $match in $text matching $patt) compiles to: define mangler - return - Lua (" - (function() - local \(mangle "comprehension") = a_List{} - for \($match as lua expr) in (\($text as lua expr)):gmatch(\($patt as lua expr)) do - \(mangle "comprehension")[#\(mangle "comprehension")+1] = \($expr as lua) - end - return \(mangle "comprehension") - end)() - ") + return Lua (" + (function() + local \(mangle "comprehension") = a_List{} + for \($match as lua expr) in (\($text as lua expr)):gmatch(\($patt as lua expr)) do + \(mangle "comprehension")[#\(mangle "comprehension")+1] = \($expr as lua) + end + return \(mangle "comprehension") + end)() + ") test: assume "\n" == (newline) |
