Skip to content

Commit

Permalink
Don't report errors when using \nocite{*}
Browse files Browse the repository at this point in the history
See #964.
  • Loading branch information
pfoerster committed Nov 19, 2023
1 parent 867dbc9 commit a7520ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Do not report `undefined reference` errors when using `\nocite{*}` ([#964](https://github.com/latex-lsp/texlab/issues/964))

## [5.11.0] - 2023-11-05

### Added
Expand Down
3 changes: 2 additions & 1 deletion crates/diagnostics/src/citations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit a7520ce

Please sign in to comment.