xref: /openbsd-src/usr.bin/file/magdir/lisp (revision 2b0358df1d88d06ef4139321dd05bd5e05d91eaf)
1#	$OpenBSD: lisp,v 1.4 2008/05/08 01:40:57 chl Exp $
2
3#------------------------------------------------------------------------------
4# lisp:  file(1) magic for lisp programs
5#
6# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
7
8# updated by Joerg Jenderek
90	string	;;
10# windows INF files often begin with semicolon and use CRLF as line end
11# lisp files are mainly created on unix system with LF as line end
12>2	search/2048	!\r		Lisp/Scheme program text
13>2	search/2048	\r		Windows INF file
14
150	search/256	(if\ 			Lisp/Scheme program text
160	search/256	(setq\ 			Lisp/Scheme program text
170	search/256	(defvar\ 		Lisp/Scheme program text
180	search/256	(defparam\ 		Lisp/Scheme program text
190	search/256	(defun\  		Lisp/Scheme program text
200	search/256	(autoload\ 		Lisp/Scheme program text
210	search/256	(custom-set-variables\ 	Lisp/Scheme program text
22
23# Emacs 18 - this is always correct, but not very magical.
240	string	\012(			Emacs v18 byte-compiled Lisp data
25# Emacs 19+ - ver. recognition added by Ian Springer
26# Also applies to XEmacs 19+ .elc files; could tell them apart if we had regexp
27# support or similar - Chris Chittleborough <cchittleborough@yahoo.com.au>
280	string	;ELC
29>4	byte	>19
30>4	byte    <32			Emacs/XEmacs v%d byte-compiled Lisp data
31
32# Files produced by CLISP Common Lisp From: Bruno Haible <haible@ilog.fr>
330	string	(SYSTEM::VERSION\040'	CLISP byte-compiled Lisp program text
340	long	0x70768BD2		CLISP memory image data
350	long	0xD28B7670		CLISP memory image data, other endian
36
37# Files produced by GNU gettext
380	long	0xDE120495		GNU-format message catalog data
390	long	0x950412DE		GNU-format message catalog data
40
41#.com and .bin for MIT scheme
420	string	\372\372\372\372	MIT scheme (library?)
43
44# From: David Allouche <david@allouche.net>
450	string	\<TeXmacs|	TeXmacs document text
46