]> 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 39889ec1cf324f7e01b67c66cc60db4e7e2e2b88..0b17611fbaad182af482a9b7dbf390e39a61b766 100644 (file)
@@ -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