xref: /freebsd/contrib/file/magic/Magdir/lua (revision f7c32ed617858bcd22f8d1b03199099d50125721)
1
2#------------------------------------------------------------------------------
3# $File: lua,v 1.7 2019/04/19 00:42:27 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>4	byte		0x50			version 5.0
21>4	byte		0x51			version 5.1
22>4	byte		0x52			version 5.2
23