Skip to content

Commit

Permalink
Fix #4197 Use BibTeX log parsing rules for its variants
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Mar 12, 2024
1 parent 2f43c5b commit e34c8ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parse/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const texifyLogLatex = /^running\s(pdf|lua|xe)?latex/

const bibtexPattern = /^This is BibTeX, Version.*$/m
const biberPattern = /^INFO - This is Biber .*$/m
const bibtexPatternAlt = /^The top-level auxiliary file: .*$/m // #4197

/**
* @param msg The log message to parse.
Expand All @@ -83,6 +84,9 @@ function log(msg: string, rootFile?: string): boolean {
} else if (msg.match(biberPattern)) {
biberLogParser.parse(msg.match(latexmkPattern) ? trimLaTeXmkBiber(msg) : msg, rootFile)
biberLogParser.showLog()
} else if (msg.match(bibtexPatternAlt)) {
bibtexLogParser.parse(msg.match(latexmkPattern) ? trimLaTeXmkBibTeX(msg) : msg, rootFile)
bibtexLogParser.showLog()
}

if (msg.match(latexmkPattern)) {
Expand Down

0 comments on commit e34c8ff

Please sign in to comment.