]> granicus.if.org Git - file/commitdiff
bump things so we beat html
authorChristos Zoulas <christos@zoulas.com>
Thu, 29 Oct 2015 18:45:05 +0000 (18:45 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 29 Oct 2015 18:45:05 +0000 (18:45 +0000)
magic/Magdir/c-lang

index 0b17611fbaad182af482a9b7dbf390e39a61b766..902b2c659266fd988a2c04c45468dfc092ed0df2 100644 (file)
@@ -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
 # 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 <mi@aldan.algebra.com>