From c8ca7cf9dadcf316626fbbc633fe6181a6f2c9e8 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Thu, 29 Oct 2015 18:45:05 +0000 Subject: [PATCH] bump things so we beat html --- magic/Magdir/c-lang | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang index 0b17611f..902b2c65 100644 --- a/magic/Magdir/c-lang +++ b/magic/Magdir/c-lang @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# $File: c-lang,v 1.20 2015/07/27 14:33:10 christos Exp $ +# $File: c-lang,v 1.21 2015/10/29 18:45:05 christos Exp $ # c-lang: file(1) magic for C and related languages programs # @@ -11,6 +11,7 @@ # C 0 regex \^#include C source text +!:strength +25 !:mime text/x-c 0 regex \^char[\ \t\n]+ C source text !:mime text/x-c @@ -30,19 +31,19 @@ # C++ # The strength of these rules is increased so they beat the C rules above 0 regex \^template[\ \t]+<.*>[\ \t\n]+ C++ source text -!:strength + 5 +!:strength + 30 !:mime text/x-c++ 0 regex \^virtual[\ \t\n]+ C++ source text -!:strength + 5 +!:strength + 30 !:mime text/x-c++ 0 regex \^class[\ \t\n]+ C++ source text -!:strength + 5 +!:strength + 30 !:mime text/x-c++ 0 regex \^public: C++ source text -!:strength + 5 +!:strength + 30 !:mime text/x-c++ 0 regex \^private: C++ source text -!:strength + 5 +!:strength + 30 !:mime text/x-c++ # From: Mikhail Teterin -- 2.50.1