xref: /freebsd/contrib/file/magic/Magdir/lua (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*43a5ec4eSXin 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 <rrt@sc3d.org>, Seo Sanghyeon <tinuviel@sparcs.kaist.ac.kr>
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*43a5ec4eSXin LI# 2.4 uses 0x23 as its version byte because it shares the format
21*43a5ec4eSXin LI# with 2.3 (which was never released publicly).
22*43a5ec4eSXin LI>4	byte		0x23			version 2.4
23*43a5ec4eSXin LI>4	byte		0x25			version 2.5/3.0
24*43a5ec4eSXin LI>4	byte		0x31			version 3.1
25*43a5ec4eSXin LI>4	byte		0x32			version 3.2
26*43a5ec4eSXin 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*43a5ec4eSXin LI>4	byte		0x53			version 5.3
31*43a5ec4eSXin LI>4	byte		0x54			version 5.4
32