Skip to content

Commit

Permalink
Parsing fixes for bibgerm package
Browse files Browse the repository at this point in the history
  • Loading branch information
msiniscalchi committed Nov 26, 2012
1 parent c226453 commit 26ca0b2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion parseTeXlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def debug_skip_file(f):
'ldf', 'bdf', 'bbx','cbx','lbx']
if (f_ext in known_file_exts) and \
(("/usr/local/texlive/" in f) or ("/usr/share/texlive/" in f) or ("Program Files\\MiKTeX" in f) \
or re.search(r"\\MiKTeX\\\d\.\d+\\tex",f)):
or re.search(r"\\MiKTeX\\\d\.\d+\\tex",f)) or ("\\MiKTeX\\tex\\" in f):
print "TeXlive / MiKTeX FILE! Don't skip it!"
return False
# Heuristic: "version 2010.12.02"
Expand Down Expand Up @@ -404,6 +404,15 @@ def handle_warning(l):
else:
continue

# Special case: the bibgerm package, which has comments starting and ending with
# **, and then finishes with "**)"
if len(line)>0 and line[:2] == "**" and line[-3:] == "**)" \
and files and "bibgerm" in files[-1]:
debug("special case: bibgerm")
debug(" "*len(files) + files[-1] + " (%d)" % (line_num,))
files.pop()
continue

# Special case: the relsize package, which puts ")" at the end of a
# line beginning with "Examine \". Ah well!
if len(line)>0 and line[:9] == "Examine \\" and line[-3:] == ". )" \
Expand Down

0 comments on commit 26ca0b2

Please sign in to comment.