[luatex] [lpeg] increase MAXRULES

Dirk Laurie dirk.laurie at gmail.com
Thu Feb 27 07:06:34 CET 2014


2014-02-26 23:23 GMT+02:00 Philipp Gesang
<philipp.gesang at alumni.uni-heidelberg.de>:

> The reStructuredText module [1] is built around an Lpeg parser
> with 225 rules. Currently (version 0.78.3), the value of MAXRULES
> in lpeg.h is 200 (the default) which is too few for the module.
> Others have reported similar problems in non-TeX contexts [2].
>
> Could MAXRULES be increased to something above, say 400? That
> would make module usable again and there would be enough
> breathing room for further additions.

Somewhere in that lua-l thread 1024 was suggested, why stop at 400?
LPeg is currently at version 0.12, which no longer has lpeg.h.
MAXRULES is now defined in lptypes.h.



More information about the luatex mailing list