From e34c8ff682906140e5cef18db8f3540ff6c8d797 Mon Sep 17 00:00:00 2001 From: James Yu Date: Tue, 12 Mar 2024 09:21:41 +0000 Subject: [PATCH] Fix #4197 Use BibTeX log parsing rules for its variants --- src/parse/parser.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parse/parser.ts b/src/parse/parser.ts index e6aa3df89..274893963 100644 --- a/src/parse/parser.ts +++ b/src/parse/parser.ts @@ -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. @@ -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)) {