c-lang 912 B

123456789101112131415161718192021222324
  1. #------------------------------------------------------------------------------
  2. # c-lang: file(1) magic for C programs (or REXX)
  3. #
  4. # XPM icons (Greg Roelofs, newt@uchicago.edu)
  5. # if you uncomment "/*" for C/REXX below, also uncomment this entry
  6. #0 string /*\ XPM\ */ X pixmap image data
  7. # this first will upset you if you're a PL/1 shop...
  8. # in which case rm it; ascmagic will catch real C programs
  9. #0 string /* C or REXX program text
  10. #0 string // C++ program text
  11. # From: Mikhail Teterin <mi@aldan.algebra.com>
  12. 0 string cscope cscope reference data
  13. >7 string x version %.2s
  14. # We skip the path here, because it is often long (so file will
  15. # truncate it) and mostly redundant.
  16. # The inverted index functionality was added some time betwen
  17. # versions 11 and 15, so look for -q if version is above 14:
  18. >7 string >14
  19. >>10 regex .+\ -q\ with inverted index
  20. >10 regex .+\ -c\ text (non-compressed)