From: Christos Zoulas Date: Fri, 7 Mar 2003 14:57:38 +0000 (+0000) Subject: Add cscope. X-Git-Tag: FILE5_05~1044 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a60f5c5a944720f8d51b452920c61d51b657462f;p=file Add cscope. --- diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang index 1b014759..2d350f6d 100644 --- a/magic/Magdir/c-lang +++ b/magic/Magdir/c-lang @@ -11,3 +11,14 @@ # in which case rm it; ascmagic will catch real C programs #0 string /* C or REXX program text 0 string // C++ program text + +# From: Mikhail Teterin +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)