mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-08-04 02:39:21 +00:00
Add symbol support for thmtools package (#897)
This commit is contained in:
parent
365c04050c
commit
f24f35f2a6
17 changed files with 200 additions and 21 deletions
|
@ -223,13 +223,11 @@ impl Semantics {
|
|||
fn process_theorem_definition(&mut self, theorem_def: latex::TheoremDefinition) {
|
||||
let Some(name) = theorem_def.name().and_then(|name| name.key()) else { return };
|
||||
|
||||
let Some(description) = theorem_def
|
||||
.heading()
|
||||
.and_then(|group| group.content_text()) else { return };
|
||||
let Some(heading) = theorem_def.heading() else { return };
|
||||
|
||||
self.theorem_definitions.push(TheoremDefinition {
|
||||
name: Span::from(&name),
|
||||
heading: description,
|
||||
heading,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue