From 4a51454bcd485e5cf1058456b7b934ae60b9dc32 Mon Sep 17 00:00:00 2001
From: Christos Zoulas <christos@zoulas.com>
Date: Sat, 21 May 2016 14:28:27 +0000
Subject: [PATCH] reduce strength of class so that it does not beat php

---
 magic/Magdir/c-lang | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang
index 9dc11a25..10140f8c 100644
--- a/magic/Magdir/c-lang
+++ b/magic/Magdir/c-lang
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: c-lang,v 1.21 2015/10/29 18:45:05 christos Exp $
+# $File: c-lang,v 1.22 2015/10/29 18:49:11 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
-- 
2.40.0