From 09943ab6bd28542506230c5b78efa0e1644c1cb5 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Mon, 27 Jul 2015 14:33:10 +0000 Subject: [PATCH] PR/469: make c++ template code more restricted by including <> (Jan Kaluza) --- magic/Magdir/c-lang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang index 39889ec1..0b17611f 100644 --- a/magic/Magdir/c-lang +++ b/magic/Magdir/c-lang @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# $File: c-lang,v 1.19 2014/06/03 19:17:27 christos Exp $ +# $File: c-lang,v 1.20 2015/07/27 14:33:10 christos Exp $ # c-lang: file(1) magic for C and related languages programs # @@ -29,7 +29,7 @@ # C++ # The strength of these rules is increased so they beat the C rules above -0 regex \^template[\ \t\n]+ C++ source text +0 regex \^template[\ \t]+<.*>[\ \t\n]+ C++ source text !:strength + 5 !:mime text/x-c++ 0 regex \^virtual[\ \t\n]+ C++ source text -- 2.40.0