diff options
author | Norbert Preining <norbert@preining.info> | 2023-05-07 03:01:42 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-05-07 03:01:42 +0000 |
commit | e2a7938bcd22a142fa92c5c5d91f038f7ae73231 (patch) | |
tree | 93e20c35b061ab13d971c4333d535243a076eece /support/texlab/crates/symbols/src/document/snapshots | |
parent | 507fa9c669d7e4bc2c808f269113c6ced0b18827 (diff) |
CTAN sync 202305070301
Diffstat (limited to 'support/texlab/crates/symbols/src/document/snapshots')
7 files changed, 286 insertions, 0 deletions
diff --git a/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__allowed_patterns.snap b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__allowed_patterns.snap new file mode 100644 index 0000000000..e22ce2a01d --- /dev/null +++ b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__allowed_patterns.snap @@ -0,0 +1,31 @@ +--- +source: crates/symbols/src/document/tests.rs +expression: "document_symbols(&fixture.workspace, document)" +--- +[ + Symbol { + name: "Enumerate", + kind: Enumeration, + label: None, + full_range: 98..159, + selection_range: 98..159, + children: [ + Symbol { + name: "Item", + kind: EnumerationItem, + label: None, + full_range: 120..129, + selection_range: 120..129, + children: [], + }, + Symbol { + name: "Item", + kind: EnumerationItem, + label: None, + full_range: 134..143, + selection_range: 134..143, + children: [], + }, + ], + }, +] diff --git a/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__enumerate.snap b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__enumerate.snap new file mode 100644 index 0000000000..f94828c362 --- /dev/null +++ b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__enumerate.snap @@ -0,0 +1,62 @@ +--- +source: crates/symbols/src/document/tests.rs +expression: "document_symbols(&fixture.workspace, document)" +--- +[ + Symbol { + name: "Enumerate", + kind: Enumeration, + label: None, + full_range: 43..184, + selection_range: 43..184, + children: [ + Symbol { + name: "1", + kind: EnumerationItem, + label: Some( + Span( + "it:foo", + 70..84, + ), + ), + full_range: 65..88, + selection_range: 70..84, + children: [], + }, + Symbol { + name: "Item", + kind: EnumerationItem, + label: Some( + Span( + "it:bar", + 98..112, + ), + ), + full_range: 93..116, + selection_range: 98..112, + children: [], + }, + Symbol { + name: "Baz", + kind: EnumerationItem, + label: None, + full_range: 121..135, + selection_range: 121..135, + children: [], + }, + Symbol { + name: "2", + kind: EnumerationItem, + label: Some( + Span( + "it:qux", + 150..164, + ), + ), + full_range: 140..168, + selection_range: 150..164, + children: [], + }, + ], + }, +] diff --git a/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__equation.snap b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__equation.snap new file mode 100644 index 0000000000..0e284c1d71 --- /dev/null +++ b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__equation.snap @@ -0,0 +1,40 @@ +--- +source: crates/symbols/src/document/tests.rs +expression: "document_symbols(&fixture.workspace, document)" +--- +[ + Symbol { + name: "Equation (1)", + kind: Equation, + label: Some( + Span( + "eq:foo", + 59..73, + ), + ), + full_range: 43..96, + selection_range: 59..73, + children: [], + }, + Symbol { + name: "Equation", + kind: Equation, + label: Some( + Span( + "eq:bar", + 114..128, + ), + ), + full_range: 98..151, + selection_range: 114..128, + children: [], + }, + Symbol { + name: "Equation", + kind: Equation, + label: None, + full_range: 153..192, + selection_range: 153..192, + children: [], + }, +] diff --git a/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__float.snap b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__float.snap new file mode 100644 index 0000000000..e9bd711c40 --- /dev/null +++ b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__float.snap @@ -0,0 +1,40 @@ +--- +source: crates/symbols/src/document/tests.rs +expression: "document_symbols(&fixture.workspace, document)" +--- +[ + Symbol { + name: "Figure 1: Foo", + kind: Figure, + label: Some( + Span( + "fig:foo", + 83..98, + ), + ), + full_range: 43..111, + selection_range: 83..98, + children: [], + }, + Symbol { + name: "Figure: Bar", + kind: Figure, + label: Some( + Span( + "fig:bar", + 153..168, + ), + ), + full_range: 113..181, + selection_range: 153..168, + children: [], + }, + Symbol { + name: "Figure: Baz", + kind: Figure, + label: None, + full_range: 183..236, + selection_range: 183..236, + children: [], + }, +] diff --git a/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__ignored_patterns.snap b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__ignored_patterns.snap new file mode 100644 index 0000000000..044e2ca531 --- /dev/null +++ b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__ignored_patterns.snap @@ -0,0 +1,19 @@ +--- +source: crates/symbols/src/document/tests.rs +expression: "document_symbols(&fixture.workspace, document)" +--- +[ + Symbol { + name: "Equation", + kind: Equation, + label: Some( + Span( + "eq:foo", + 59..73, + ), + ), + full_range: 43..96, + selection_range: 59..73, + children: [], + }, +] diff --git a/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__section.snap b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__section.snap new file mode 100644 index 0000000000..6cd44939cf --- /dev/null +++ b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__section.snap @@ -0,0 +1,41 @@ +--- +source: crates/symbols/src/document/tests.rs +expression: "document_symbols(&fixture.workspace, document)" +--- +[ + Symbol { + name: "Foo", + kind: Section, + label: None, + full_range: 43..56, + selection_range: 43..56, + children: [], + }, + Symbol { + name: "2 Bar", + kind: Section, + label: Some( + Span( + "sec:bar", + 71..86, + ), + ), + full_range: 58..119, + selection_range: 71..86, + children: [ + Symbol { + name: "Baz", + kind: Section, + label: Some( + Span( + "sec:baz", + 104..119, + ), + ), + full_range: 88..119, + selection_range: 104..119, + children: [], + }, + ], + }, +] diff --git a/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__theorem.snap b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__theorem.snap new file mode 100644 index 0000000000..9d897532b1 --- /dev/null +++ b/support/texlab/crates/symbols/src/document/snapshots/symbols__document__tests__theorem.snap @@ -0,0 +1,53 @@ +--- +source: crates/symbols/src/document/tests.rs +expression: "document_symbols(&fixture.workspace, document)" +--- +[ + Symbol { + name: "Lemma 1 (Foo)", + kind: Theorem, + label: Some( + Span( + "thm:foo", + 107..122, + ), + ), + full_range: 89..142, + selection_range: 107..122, + children: [], + }, + Symbol { + name: "Lemma 2", + kind: Theorem, + label: Some( + Span( + "thm:bar", + 157..172, + ), + ), + full_range: 144..192, + selection_range: 157..172, + children: [], + }, + Symbol { + name: "Lemma", + kind: Theorem, + label: Some( + Span( + "thm:baz", + 207..222, + ), + ), + full_range: 194..242, + selection_range: 207..222, + children: [], + }, + Symbol { + name: "Lemma (Qux)", + kind: Theorem, + label: None, + full_range: 244..282, + selection_range: 244..282, + children: [], + }, +] |