summaryrefslogtreecommitdiffstats
path: root/contrib/file/magic/Magdir/c-lang
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/file/magic/Magdir/c-lang')
-rw-r--r--contrib/file/magic/Magdir/c-lang5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/file/magic/Magdir/c-lang b/contrib/file/magic/Magdir/c-lang
index 69ae516..b930bcc 100644
--- a/contrib/file/magic/Magdir/c-lang
+++ b/contrib/file/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
OpenPOWER on IntegriCloud