blob: 9dea4d84ee7c6b40cf5ba9eec4e0ae7bf133a037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use crate::syntax::{latex, CstNode};
use super::LatexAnalyzerContext;
pub fn analyze_command(context: &mut LatexAnalyzerContext, node: &latex::SyntaxNode) -> Option<()> {
let command = latex::GenericCommand::cast(node)?;
context
.extras
.command_names
.insert(command.name()?.text().into());
Some(())
}
|