]> granicus.if.org Git - file/commitdiff
increase range of latex patterns and strength over python ones because
authorChristos Zoulas <christos@zoulas.com>
Tue, 8 Feb 2011 13:45:15 +0000 (13:45 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 8 Feb 2011 13:45:15 +0000 (13:45 +0000)
there is latex inside python but not python inside latex. From Jan Kaluza.

magic/Magdir/python
magic/Magdir/tex

index 51edbad00fe678574c61a95b61b5a95ba106f0f2..107b091760416d3382e46f1ed250ebf95e61f676 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: python,v 1.15 2010/12/07 16:52:52 christos Exp $
+# $File: python,v 1.16 2010/12/31 18:15:28 christos Exp $
 # python:  file(1) magic for python
 #
 # From: David Necas <yeti@physics.muni.cz>
@@ -32,7 +32,7 @@
 
 
 # from module.submodule import func1, func2
-0      regex/b \^from\\s+(\\w|\\.)+\\s+import.*$       Python script text executable
+0      regex   \^from\\s+(\\w|\\.)+\\s+import.*$       Python script text executable
 !:mime text/x-python
 
 # def __init__ (self, ...):
index 161a24ec0b9632e3c77c13d9fbad144f3b79d6aa..fa531f265c2080c9ddd6bf7d349a2c6914ad03e3 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: tex,v 1.16 2009/09/19 16:28:12 christos Exp $
+# $File: tex,v 1.17 2010/09/20 19:19:17 rrt Exp $
 # tex:  file(1) magic for TeX files
 #
 # XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
 !:mime text/x-info
 
 # TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
-0      search/40     \\input         TeX document text
+0      search/4096     \\input         TeX document text
 !:mime text/x-tex
-0      search/400      \\section       LaTeX document text
+!:strength + 15
+0      search/4096     \\section       LaTeX document text
 !:mime text/x-tex
-0      search/400      \\setlength     LaTeX document text
+!:strength + 18
+0      search/4096     \\setlength     LaTeX document text
 !:mime text/x-tex
-0      search/400      \\documentstyle LaTeX document text
+!:strength + 15
+0      search/4096     \\documentstyle LaTeX document text
 !:mime text/x-tex
-0      search/400      \\chapter       LaTeX document text
+!:strength + 18
+0      search/4096     \\chapter       LaTeX document text
 !:mime text/x-tex
-0      search/400      \\documentclass LaTeX 2e document text
+!:strength + 18
+0      search/4096     \\documentclass LaTeX 2e document text
 !:mime text/x-tex
-0      search/400      \\relax         LaTeX auxiliary file
+!:strength + 15
+0      search/4096     \\relax         LaTeX auxiliary file
 !:mime text/x-tex
-0      search/400      \\contentsline  LaTeX table of contents
+!:strength + 15
+0      search/4096     \\contentsline  LaTeX table of contents
 !:mime text/x-tex
-0      search/400      %\ -*-latex-*-  LaTeX document text
+!:strength + 15
+0      search/4096     %\ -*-latex-*-  LaTeX document text
 !:mime text/x-tex
 
 # Tex document, from Hendrik Scholz <hendrik@scholz.net>
 0      search/1        \\ifx           TeX document text
 
 # Index and glossary files
-0      search/40     \\indexentry    LaTeX raw index file
-0      search/40     \\begin{theindex}       LaTeX sorted index
-0      search/40     \\glossaryentry LaTeX raw glossary
-0      search/40     \\begin{theglossary}    LaTeX sorted glossary
-0      search/40     This\ is\ makeindex     Makeindex log file
+0      search/4096     \\indexentry    LaTeX raw index file
+0      search/4096     \\begin{theindex}       LaTeX sorted index
+0      search/4096     \\glossaryentry LaTeX raw glossary
+0      search/4096     \\begin{theglossary}    LaTeX sorted glossary
+0      search/4096     This\ is\ makeindex     Makeindex log file
 
 # End of TeX