| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Nested captures can be recognized because they start (and end) inside
the character range of the full capture. This optimization can remove
a lot of 'close' captures from the capture logs.
|
|
|
|
|
| |
That uses 4 bytes (uint) instead of 8 (char*); the size of the
structure 'Capture' reduces from 16 to 8 bytes in 64-bit machines.
|
| |
|
| |
|
| |
|
|
|
|
| |
So that we can get its space for other uses, if needed.
|
|
|
|
|
| |
Removed '$Id' from all files + updated copyright year + other changes
in comments and documentation
|
| |
|
|
|
|
|
|
| |
Old code mixed size in elements (counted with 'int's) with size in bytes
(division by the size of an element). Moreover, when it could not double
the size, it grew it one by one, which is undoable performance-wise.
|
|
|
|
|
|
| |
Like a fail, a IBackCommit instruction must remove any dynamic capture
made inside an 'and' pattern. (The added test for this problem
needs assertions on to detect the bug.)
|
|
|
|
|
| |
New constructor 'lpeg.utfR(from, to)' creates a pattern that matches
UTF-8 byte sequences representing code points in the range [from, to].
|
|
|
|
|
|
|
|
|
|
| |
Fixed the bug reported in
http://lua-users.org/lists/lua-l/2018-11/msg00080.html
The field 's' of the open group of captures inside a run-time capture
was being reused by the open group of the results of the run-time
capture, even though that open-group entry was being removed from
the list and then added again.
|
|
|
|
|
|
| |
The C code uses recursion to handle nested captures, so a too deep
nesting could create a stack overflow. The fix limits the handling
of nested captures to 'MAXRECLEVEL' (default is 200 levels).
|
|
|
|
|
| |
Version numbers and dates from RCS keyword strings removed from all
source files; keeps only the file name.
|
|
LPeg repository is being moved to git. Past versions won't be moved;
they are still available in RCS.
|