From: Christos Zoulas Date: Fri, 1 Jul 2016 23:31:13 +0000 (+0000) Subject: more magic from Stefan Haubenthal X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7796f157597375ba3c9b7bc07db07d8e7f1269e;p=file more magic from Stefan Haubenthal --- diff --git a/magic/Magdir/apple b/magic/Magdir/apple index 5db4feee..b6de730d 100644 --- a/magic/Magdir/apple +++ b/magic/Magdir/apple @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: apple,v 1.32 2015/12/04 20:40:10 christos Exp $ +# $File: apple,v 1.33 2016/07/01 23:31:13 christos Exp $ # apple: file(1) magic for Apple file formats # 0 search/1/t FiLeStArTfIlEsTaRt binscii (apple ][) text @@ -327,7 +327,7 @@ >92 belong & 1024 \b, mount at startup >92 belong & 2048 \b, is the startup partition -#http://wiki.mozilla.org/DS_Store_File_Format` +#http://wiki.mozilla.org/DS_Store_File_Format #http://en.wikipedia.org/wiki/.DS_Store 0 string \0\0\0\1Bud1\0 Apple Desktop Services Store @@ -337,5 +337,7 @@ # extensions rsr/rsrc 0 string \000\000\001\000 >4 leshort 0 ->>16 lelong 0 Apple HFS/HFS+ resource fork +>>16 lelong 0 Apple HFS/HFS+ resource fork +#https://en.wikipedia.org/wiki/AppleScript +0 string FasdUAS AppleScript compiled diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang index b930bccb..bb594b06 100644 --- a/magic/Magdir/c-lang +++ b/magic/Magdir/c-lang @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# $File: c-lang,v 1.23 2016/05/21 14:28:27 christos Exp $ +# $File: c-lang,v 1.24 2016/07/01 23:31:13 christos Exp $ # c-lang: file(1) magic for C and related languages programs # # The strength is to beat standard HTML @@ -48,6 +48,11 @@ !:strength + 30 !:mime text/x-c++ +# Objective-C +0 regex \^#import Objective-C source text +!:strength +25 +!:mime text/x-objective-c + # From: Mikhail Teterin 0 string cscope cscope reference data >7 string x version %.2s diff --git a/magic/Magdir/gcc b/magic/Magdir/gcc index 893d0d91..ae98dc7d 100644 --- a/magic/Magdir/gcc +++ b/magic/Magdir/gcc @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: gcc,v 1.4 2009/09/19 16:28:09 christos Exp $ +# $File: gcc,v 1.5 2016/07/01 23:31:13 christos Exp $ # gcc: file(1) magic for GCC special files # 0 string gpch GCC precompiled header @@ -12,6 +12,6 @@ # 67 = 'C', 111 = 'o', 43 = '+', 79 = 'O' >4 byte 67 for C ->4 byte 111 for Objective C +>4 byte 111 for Objective-C >4 byte 43 for C++ ->4 byte 79 for Objective C++ +>4 byte 79 for Objective-C++