blob: 477094b841d67ce652b069db148ec08c44513864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use rowan::ast::AstNode;
use crate::syntax::latex;
use super::LatexAnalyzerContext;
pub fn analyze_graphics_path(
context: &mut LatexAnalyzerContext,
node: latex::SyntaxNode,
) -> Option<()> {
let definition = latex::GraphicsPath::cast(node)?;
for path in definition
.path_list()
.filter_map(|group| group.key())
.map(|path| path.to_string())
{
context.extras.graphics_paths.insert(path);
}
Some(())
}
|