mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-12-23 09:19:21 +00:00
tests(glossaries): add simple test for custom cmds
This commit is contained in:
parent
2839c14151
commit
ee25f4da27
1 changed files with 28 additions and 0 deletions
|
|
@ -2341,3 +2341,31 @@ fn test_custom_label_multiple_prefix_ref() {
|
|||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_custom_glossary_reference_command() {
|
||||
let mut config = SyntaxConfig::default();
|
||||
config.glossary_reference_commands.insert("glsed".to_string());
|
||||
|
||||
check_with_syntax_config(
|
||||
config,
|
||||
r#"
|
||||
%! main.tex
|
||||
\newglossaryentry{foo}{
|
||||
name={Foo Bar Baz},
|
||||
description={The trio of default variable names.}
|
||||
}
|
||||
|
||||
\glsed{}
|
||||
|"#,
|
||||
expect![[r#"
|
||||
[
|
||||
GlossaryEntry(
|
||||
GlossaryEntryData {
|
||||
name: "foo",
|
||||
},
|
||||
),
|
||||
]
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue