File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const latexBoxAlt = /^((?:Over|Under)full \\[vh]box \([^)]*\)) detected at line
12
12
const latexBoxOutput = / ^ ( (?: O v e r | U n d e r ) f u l l \\ [ v h ] b o x \( [ ^ ) ] * \) ) h a s o c c u r r e d w h i l e \\ o u t p u t i s a c t i v e (?: \[ ( \d + ) \] ) ? /
13
13
const latexWarn = / ^ ( (?: (?: C l a s s | P a c k a g e | M o d u l e ) \S * ) | L a T e X (?: \S * ) ? | L a T e X 3 ) ( W a r n i n g | I n f o ) : \s + ( .* ?) (?: o n (?: i n p u t ) ? l i n e ( \d + ) ) ? ( \. | \? | ) $ /
14
14
const latexPackageWarningExtraLines = / ^ \( ( .* ) \) \s + ( .* ?) (?: + o n i n p u t l i n e ( \d + ) ) ? ( \. ) ? $ /
15
+ const latexMissChar = / ^ \s * ( M i s s i n g c h a r a c t e r : .* ?! ) /
15
16
const bibEmpty = / ^ E m p t y ` t h e b i b l i o g r a p h y ' e n v i r o n m e n t /
16
17
const biberWarn = / ^ B i b e r w a r n i n g : .* W A R N - I d i d n ' t f i n d a d a t a b a s e e n t r y f o r ' ( [ ^ ' ] + ) ' /
17
18
@@ -167,6 +168,20 @@ function parseLine(line: string, state: ParserState) {
167
168
parseLine ( line . substring ( result [ 0 ] . length ) , state )
168
169
return
169
170
}
171
+ result = line . match ( latexMissChar )
172
+ if ( result ) {
173
+ if ( state . currentResult . type !== '' ) {
174
+ buildLog . push ( state . currentResult )
175
+ }
176
+ state . currentResult = {
177
+ type : 'warning' ,
178
+ file : filename ,
179
+ line : 1 ,
180
+ text : result [ 1 ]
181
+ }
182
+ state . searchEmptyLine = false
183
+ return
184
+ }
170
185
result = line . match ( latexWarn )
171
186
if ( result ) {
172
187
if ( state . currentResult . type !== '' ) {
You can’t perform that action at this time.
0 commit comments