diff options
Diffstat (limited to 'support/texlab/crates/diagnostics/src/citations.rs')
-rw-r--r-- | support/texlab/crates/diagnostics/src/citations.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/support/texlab/crates/diagnostics/src/citations.rs b/support/texlab/crates/diagnostics/src/citations.rs index 1ab7b6db30..0b750aaadb 100644 --- a/support/texlab/crates/diagnostics/src/citations.rs +++ b/support/texlab/crates/diagnostics/src/citations.rs @@ -47,7 +47,8 @@ fn detect_undefined_citations<'db>( .collect(); for citation in &data.semantics.citations { - if !entries.contains(citation.name.text.as_str()) { + let name = citation.name_text(); + if name != "*" && !entries.contains(name) { let diagnostic = Diagnostic { range: citation.name.range, data: DiagnosticData::Tex(TexError::UndefinedCitation), |