]> granicus.if.org Git - file/commitdiff
PR/469: make c++ template code more restricted by including <> (Jan Kaluza)
authorChristos Zoulas <christos@zoulas.com>
Mon, 27 Jul 2015 14:33:10 +0000 (14:33 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 27 Jul 2015 14:33:10 +0000 (14:33 +0000)
magic/Magdir/c-lang

index a2c33ce99634c02ebc9af5cf5090020e3386f813..671a227d61947520022714ec28df81f90cade73d 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: c-lang,v 1.18 2013/08/14 13:06:43 christos Exp $
+# $File: c-lang,v 1.19 2014/06/03 19:17:27 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