From d0e44218865a5c96d448dcfda61347cfea7ba9d4 Mon Sep 17 00:00:00 2001 From: Christos Zoulas 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 69ae5168..b930bccb 100644 --- a/magic/Magdir/c-lang +++ b/magic/Magdir/c-lang @@ -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 -- 2.40.0