lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

   Based on your feedback, I removed the pattern string:match default
and replaced it with Javier's closure idea (or something close).
Having match cases for literals, tables, and functions (with captures)
rather than lots of special cases for some strings makes the indexing
code quite a bit cleaner. :)
   I also added a row flag, partial, which allows extra fields in the
table value being matched. (The input value is always in the capture
table, under ct.input.) I also added a special variable, V"...", which
sets the partial flag and captures all subsequent array-portion
values. (e.g. { "foo, V"..." }).

The new version is tagged as v1.2.1 on the github page
(, and I rewrote the README.
Hopefully what the library actually does is much clearer now.