diff options
author | Norbert Preining <norbert@preining.info> | 2023-10-01 03:01:18 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-10-01 03:01:18 +0000 |
commit | 8a05034cb5d7ae61b2de6857258caa3e43b496aa (patch) | |
tree | b9c266e7f98a034ed060178b3c0c162598e68948 /support/texlab/crates/hover | |
parent | 61bc2520e547446bddedc290572684496c9347a0 (diff) |
CTAN sync 202310010301
Diffstat (limited to 'support/texlab/crates/hover')
-rw-r--r-- | support/texlab/crates/hover/src/entry_type.rs | 2 | ||||
-rw-r--r-- | support/texlab/crates/hover/src/tests.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/support/texlab/crates/hover/src/entry_type.rs b/support/texlab/crates/hover/src/entry_type.rs index c28c88b611..f4941b4ee0 100644 --- a/support/texlab/crates/hover/src/entry_type.rs +++ b/support/texlab/crates/hover/src/entry_type.rs @@ -10,7 +10,7 @@ pub(super) fn find_hover<'db>(params: &'db HoverParams) -> Option<Hover<'db>> { .token_at_offset(params.offset) .find(|x| x.kind() == bibtex::TYPE)?; - let entry_type = BibtexEntryType::find(&name.text()[1..])?; + let entry_type = BibtexEntryType::find(name.text())?; Some(Hover { range: name.text_range(), data: HoverData::EntryType(entry_type), diff --git a/support/texlab/crates/hover/src/tests.rs b/support/texlab/crates/hover/src/tests.rs index 2890af938f..0db913d0b5 100644 --- a/support/texlab/crates/hover/src/tests.rs +++ b/support/texlab/crates/hover/src/tests.rs @@ -98,7 +98,7 @@ fn test_bibtex_entry_type_known() { Some( EntryType( BibtexEntryType { - name: "article", + name: "@article", category: Article, documentation: Some( "An article in a journal, magazine, newspaper, or other periodical which forms a \n self-contained unit with its own title. The title of the periodical is given in the \n journaltitle field. If the issue has its own title in addition to the main title of \n the periodical, it goes in the issuetitle field. Note that editor and related \n fields refer to the journal while translator and related fields refer to the article.\n\nRequired fields: `author`, `title`, `journaltitle`, `year/date`", |