diff options
Diffstat (limited to 'support/texlab/crates/base-db/src/semantics/tex.rs')
-rw-r--r-- | support/texlab/crates/base-db/src/semantics/tex.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/support/texlab/crates/base-db/src/semantics/tex.rs b/support/texlab/crates/base-db/src/semantics/tex.rs index c1e9f45bb9..659ec8c166 100644 --- a/support/texlab/crates/base-db/src/semantics/tex.rs +++ b/support/texlab/crates/base-db/src/semantics/tex.rs @@ -59,6 +59,8 @@ impl Semantics { self.process_environment(environment); } else if let Some(theorem_def) = latex::TheoremDefinition::cast(node.clone()) { self.process_theorem_definition(theorem_def); + } else if let Some(graphics_path) = latex::GraphicsPath::cast(node.clone()) { + self.process_graphics_path(graphics_path); } } @@ -268,6 +270,12 @@ impl Semantics { heading, }); } + + fn process_graphics_path(&mut self, graphics_path: latex::GraphicsPath) { + for path in graphics_path.path_list().filter_map(|path| path.key()) { + self.graphics_paths.insert(path.to_string()); + } + } } #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)] |