]> 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 671a227d61947520022714ec28df81f90cade73d..34f260e7c84f30a6562d87b24dedce5a0e050e1f 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
 #
 
@@ -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>