]> granicus.if.org Git - file/commitdiff
Add cscope.
authorChristos Zoulas <christos@zoulas.com>
Fri, 7 Mar 2003 14:57:38 +0000 (14:57 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 7 Mar 2003 14:57:38 +0000 (14:57 +0000)
magic/Magdir/c-lang

index 1b0147595b7dc4e1ea904420ac98254622aab6a6..2d350f6de646e87ec7d42c9c1d13364bda1417db 100644 (file)
 # 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 <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)