From 24b8649c3391e35104a492d8546ce197cbdc5068 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 20 Jul 2018 17:56:06 -0700 Subject: Tweaks to the API for text matching. --- core/text.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/text.nom') diff --git a/core/text.nom b/core/text.nom index 30eab50..dc67ec5 100644 --- a/core/text.nom +++ b/core/text.nom @@ -30,7 +30,7 @@ action [lines in %text, lines of %text] (..) end return result -compile [for %match where %text matches %patt %body] to (..) +compile [for %match in %text matching %patt %body] to (..) Lua ".." for \(%match as lua expr) in \(%text as lua expr):gmatch(\(%patt as lua expr)) do \(%body as lua statements) @@ -38,7 +38,7 @@ compile [for %match where %text matches %patt %body] to (..) end \(compile as (===stop %match ===)) -compile [%expr for %match where %text matches %patt] to (..) +compile [%expr for %match in %text matching %patt] to (..) Lua value ".." (function() local ret = list{} @@ -66,4 +66,4 @@ lua> ".." return LuaCode.Value(tree.source, lua) end end - end \ No newline at end of file + end -- cgit v1.2.3