]> granicus.if.org Git - file/commitdiff
more magic from Stefan Haubenthal
authorChristos Zoulas <christos@zoulas.com>
Fri, 1 Jul 2016 23:31:13 +0000 (23:31 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 1 Jul 2016 23:31:13 +0000 (23:31 +0000)
magic/Magdir/apple
magic/Magdir/c-lang
magic/Magdir/gcc

index 5db4feeee52b1ae02420df36bc8c0051bb45694f..b6de730da756339488a09a4c8f4437984d1d53d6 100644 (file)
@@ -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
 >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
 
 # 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
index b930bccb966b144b4a276f3b25a4f5357bb3e154..bb594b069fc77812aead2743e80a7404d4a998d1 100644 (file)
@@ -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
 !: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 <mi@aldan.algebra.com> 
 0      string          cscope          cscope reference data
 >7     string          x               version %.2s
index 893d0d91e6922bff49ab2140698010f1b56fc48e..ae98dc7dbc1fde657360f93f55e1f60fec210619 100644 (file)
@@ -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++