1 2#------------------------------------------------------------------------------ 3# $File: lua,v 1.8 2020/10/08 23:23:56 christos Exp $ 4# lua: file(1) magic for Lua scripting language 5# URL: https://www.lua.org/ 6# From: Reuben Thomas <rrt@sc3d.org>, Seo Sanghyeon <tinuviel@sparcs.kaist.ac.kr> 7 8# Lua scripts 90 search/1/w #!\ /usr/bin/lua Lua script text executable 10!:mime text/x-lua 110 search/1/w #!\ /usr/local/bin/lua Lua script text executable 12!:mime text/x-lua 130 search/1 #!/usr/bin/env\ lua Lua script text executable 14!:mime text/x-lua 150 search/1 #!\ /usr/bin/env\ lua Lua script text executable 16!:mime text/x-lua 17 18# Lua bytecode 190 string \033Lua Lua bytecode, 20# 2.4 uses 0x23 as its version byte because it shares the format 21# with 2.3 (which was never released publicly). 22>4 byte 0x23 version 2.4 23>4 byte 0x25 version 2.5/3.0 24>4 byte 0x31 version 3.1 25>4 byte 0x32 version 3.2 26>4 byte 0x40 version 4.0 27>4 byte 0x50 version 5.0 28>4 byte 0x51 version 5.1 29>4 byte 0x52 version 5.2 30>4 byte 0x53 version 5.3 31>4 byte 0x54 version 5.4 32