]> granicus.if.org Git - file/commitdiff
reduce strength of class so that it does not beat php
authorChristos Zoulas <christos@zoulas.com>
Sat, 21 May 2016 14:28:27 +0000 (14:28 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 21 May 2016 14:28:27 +0000 (14:28 +0000)
magic/Magdir/c-lang

index 69ae5168dae9a60a34c71fea10c737e85561b867..b930bccb966b144b4a276f3b25a4f5357bb3e154 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: c-lang,v 1.22 2015/10/29 18:49:11 christos Exp $
+# $File: c-lang,v 1.23 2016/05/21 14:28:27 christos Exp $
 # c-lang:  file(1) magic for C and related languages programs
 #
 # The strength is to beat standard HTML
@@ -38,7 +38,8 @@
 !:strength + 30
 !:mime text/x-c++
 0      regex   \^class[\ \t\n]+                C++ source text
-!:strength + 30
+# But class is reduced to avoid beating php (Jens Schleusener)
+!:strength + 13
 !:mime text/x-c++
 0      regex   \^public:               C++ source text
 !:strength + 30