diff options
author | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-06-13 11:56:47 -0300 |
---|---|---|
committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-06-13 11:56:47 -0300 |
commit | 43ce0cb6027033a9a08075d72a77630720895834 (patch) | |
tree | 181d3e2ac0c054802f5de35d82f8dd3beeadfe8f /examples/listId2.lua | |
parent | d6b07c6c87655aa114af6aae8b6fef241f99aca3 (diff) | |
download | lpeglabel-43ce0cb6027033a9a08075d72a77630720895834.tar.gz lpeglabel-43ce0cb6027033a9a08075d72a77630720895834.tar.bz2 lpeglabel-43ce0cb6027033a9a08075d72a77630720895834.zip |
Updating examples and documentation to match the new API
Diffstat (limited to 'examples/listId2.lua')
-rw-r--r-- | examples/listId2.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/listId2.lua b/examples/listId2.lua index 4943368..75060f9 100644 --- a/examples/listId2.lua +++ b/examples/listId2.lua | |||
@@ -18,9 +18,9 @@ local g = m.P{ | |||
18 | } | 18 | } |
19 | 19 | ||
20 | function mymatch (g, s) | 20 | function mymatch (g, s) |
21 | local r, e = g:match(s) | 21 | local r, e, sfail = g:match(s) |
22 | if not r then | 22 | if not r then |
23 | return r, terror[e] | 23 | return r, terror[e] .. " before '" .. sfail .. "'" |
24 | end | 24 | end |
25 | return r | 25 | return r |
26 | end | 26 | end |