diff options
Diffstat (limited to 'usr.bin/file/magdir/c-lang')
-rw-r--r-- | usr.bin/file/magdir/c-lang | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/file/magdir/c-lang b/usr.bin/file/magdir/c-lang index 1b0147595b7..fcfa862180f 100644 --- a/usr.bin/file/magdir/c-lang +++ b/usr.bin/file/magdir/c-lang @@ -1,3 +1,4 @@ +# $OpenBSD: c-lang,v 1.3 2004/06/03 03:14:19 tedu Exp $ #------------------------------------------------------------------------------ # c-lang: file(1) magic for C programs (or REXX) @@ -10,4 +11,15 @@ # this first will upset you if you're a PL/1 shop... # in which case rm it; ascmagic will catch real C programs #0 string /* C or REXX program text -0 string // C++ program text +#0 string // C++ program text + +# From: Mikhail Teterin <mi@aldan.algebra.com> +0 string cscope cscope reference data +>7 string x version %.2s +# We skip the path here, because it is often long (so file will +# truncate it) and mostly redundant. +# The inverted index functionality was added some time betwen +# versions 11 and 15, so look for -q if version is above 14: +>7 string >14 +>>10 regex .+\ -q\ with inverted index +>10 regex .+\ -c\ text (non-compressed) |