From: Christos Zoulas Date: Sat, 21 May 2016 14:28:27 +0000 (+0000) Subject: reduce strength of class so that it does not beat php X-Git-Tag: FILE5_28~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a51454bcd485e5cf1058456b7b934ae60b9dc32;p=file reduce strength of class so that it does not beat php --- 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