Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions latexrun
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ class LaTeXFilter:
return self.__runaway()
if lookingatre(r'(Overfull|Underfull|Loose|Tight) \\[hv]box \('):
return self.__bad_box()
if lookingatre('(Package |Class |LaTeX |pdfTeX )?(\w+ )?warning: ', re.I):
if lookingatre(r'(Package |Class |LaTeX |pdfTeX )?(\w+ )?warning: ', re.I):
return self.__generic_warning()
if lookingatre('No file .*\\.tex\\.$', re.M):
# This happens with \includes of missing files. For
Expand Down Expand Up @@ -1350,7 +1350,7 @@ class LaTeXFilter:
stack = []
while self.__avail:
m1 = self.__lookingatre(r'<([a-z ]+|\*|read [^ >]*)> |\\.*(->|...)')
m2 = self.__lookingatre('l\.[0-9]+ ')
m2 = self.__lookingatre(r'l\.[0-9]+ ')
if m1:
found_context = True
pre = self.__consume_line().rstrip('\n')
Expand Down Expand Up @@ -1832,7 +1832,7 @@ class BibTeXFilter:
return ('warning', None, None, m.group(1))

if match('^.*> ERROR - (.*)$'):
m2 = re.match("BibTeX subsystem: (.*?), line (\d+), (.*)$", m.group(1))
m2 = re.match(r"BibTeX subsystem: (.*?), line (\d+), (.*)$", m.group(1))
if m2:
return ('error', m2.group(1), m2.group(2), m2.group(3))
return ('error', None, None, m.group(1))
Expand Down