Deleted Added
full compact
c-lang (267897) c-lang (288143)
1#------------------------------------------------------------------------------
1#------------------------------------------------------------------------------
2# $File: c-lang,v 1.19 2014/06/03 19:17:27 christos Exp $
2# $File: c-lang,v 1.20 2015/07/27 14:33:10 christos Exp $
3# c-lang: file(1) magic for C and related languages programs
4#
5
6# BCPL
70 search/8192 "libhdr" BCPL source text
8!:mime text/x-bcpl
90 search/8192 "LIBHDR" BCPL source text
10!:mime text/x-bcpl

--- 13 unchanged lines hidden (view full) ---

24!:mime text/x-c
250 regex \^union[\ \t\n]+ C source text
26!:mime text/x-c
270 search/8192 main( C source text
28!:mime text/x-c
29
30# C++
31# The strength of these rules is increased so they beat the C rules above
3# c-lang: file(1) magic for C and related languages programs
4#
5
6# BCPL
70 search/8192 "libhdr" BCPL source text
8!:mime text/x-bcpl
90 search/8192 "LIBHDR" BCPL source text
10!:mime text/x-bcpl

--- 13 unchanged lines hidden (view full) ---

24!:mime text/x-c
250 regex \^union[\ \t\n]+ C source text
26!:mime text/x-c
270 search/8192 main( C source text
28!:mime text/x-c
29
30# C++
31# The strength of these rules is increased so they beat the C rules above
320 regex \^template[\ \t\n]+ C++ source text
320 regex \^template[\ \t]+<.*>[\ \t\n]+ C++ source text
33!:strength + 5
34!:mime text/x-c++
350 regex \^virtual[\ \t\n]+ C++ source text
36!:strength + 5
37!:mime text/x-c++
380 regex \^class[\ \t\n]+ C++ source text
39!:strength + 5
40!:mime text/x-c++

--- 17 unchanged lines hidden ---
33!:strength + 5
34!:mime text/x-c++
350 regex \^virtual[\ \t\n]+ C++ source text
36!:strength + 5
37!:mime text/x-c++
380 regex \^class[\ \t\n]+ C++ source text
39!:strength + 5
40!:mime text/x-c++

--- 17 unchanged lines hidden ---