> local const x = 5 > local toclose f = ... The only way to make this work is to add reserved words. Otherwise, these already have a meaning in Lua. They are equivalent to local const ; x = 5 local toclose ; f = ...