xref: /freebsd-13.1/contrib/file/magic/Magdir/lua (revision 46aa53e2)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*46aa53e2SXin LI# $File: lua,v 1.8 2020/10/08 23:23:56 christos Exp $
4b6cee71dSXin LI# lua:  file(1) magic for Lua scripting language
548c779cdSXin LI# URL:  https://www.lua.org/
6b6cee71dSXin LI# From: Reuben Thomas <[email protected]>, Seo Sanghyeon <[email protected]>
7b6cee71dSXin LI
8b6cee71dSXin LI# Lua scripts
9b6cee71dSXin LI0	search/1/w	#!\ /usr/bin/lua	Lua script text executable
10b6cee71dSXin LI!:mime	text/x-lua
11b6cee71dSXin LI0	search/1/w	#!\ /usr/local/bin/lua	Lua script text executable
12b6cee71dSXin LI!:mime	text/x-lua
13b6cee71dSXin LI0	search/1	#!/usr/bin/env\ lua	Lua script text executable
14b6cee71dSXin LI!:mime	text/x-lua
15b6cee71dSXin LI0	search/1	#!\ /usr/bin/env\ lua	Lua script text executable
16b6cee71dSXin LI!:mime	text/x-lua
17b6cee71dSXin LI
18b6cee71dSXin LI# Lua bytecode
19b6cee71dSXin LI0	string		\033Lua			Lua bytecode,
20*46aa53e2SXin LI# 2.4 uses 0x23 as its version byte because it shares the format
21*46aa53e2SXin LI# with 2.3 (which was never released publicly).
22*46aa53e2SXin LI>4	byte		0x23			version 2.4
23*46aa53e2SXin LI>4	byte		0x25			version 2.5/3.0
24*46aa53e2SXin LI>4	byte		0x31			version 3.1
25*46aa53e2SXin LI>4	byte		0x32			version 3.2
26*46aa53e2SXin LI>4	byte		0x40			version 4.0
27b6cee71dSXin LI>4	byte		0x50			version 5.0
28b6cee71dSXin LI>4	byte		0x51			version 5.1
29b6cee71dSXin LI>4	byte		0x52			version 5.2
30*46aa53e2SXin LI>4	byte		0x53			version 5.3
31*46aa53e2SXin LI>4	byte		0x54			version 5.4
32