[luatex] About lua 5.2 changes

Taco Hoekwater taco at elvenkind.com
Wed Jan 9 10:37:23 CET 2013


Hi,

On 01/04/2013 05:20 PM, Herbert Voss wrote:
>
> that will be fine for LuaTeX or Context users, but LuaLaTeX
> users will run into problems ...

This just came up on tlcontrib, but is important to post here
as well: there are a few language changes on Lua 5.2 compared
to 5.1. There is a list here:

    http://www.lua.org/manual/5.2/manual.html#8

But also, the string parser has changed:

Lua 5.1 understands the following backslash escapes:

     \a \b \f \n \r \t \v \\ \' \"
               (these all have their expected C meanings)
     \<LF>     (insert a line feed into the string)
     \<CR>     (internally converted to <LF>, then inserted)
     \<d[dd]>  (1-3 decimal digits, result range is 0-255)

Lua 5.2 adds:

     \z        (skips following whitespace in input)
     \x<xx>    (2 case-insensitive hex digits)

Anything else following a backslash is an error in Lua 5.2,
but was silently ignored in 5.1.

Best wishes,
Taco


More information about the luatex mailing list