Fix retain labels.

This is a numeric value based on the character offset of -k from the beginning of the switches.
This commit is contained in:
Tom Alexander
2023-10-04 15:20:57 -04:00
parent 32da06776c
commit 301a6db83e
5 changed files with 39 additions and 17 deletions

View File

@@ -36,13 +36,15 @@ pub struct CommentBlock<'s> {
pub contents: &'s str,
}
pub type CharOffsetInLine = u16;
#[derive(Debug)]
pub struct ExampleBlock<'s> {
pub source: &'s str,
pub name: &'s str,
pub switches: Option<&'s str>,
pub number_lines: Option<SwitchNumberLines>,
pub retain_labels: bool,
pub retain_labels: Option<CharOffsetInLine>,
pub use_labels: bool,
pub label_format: Option<&'s str>,
pub contents: String,

View File

@@ -37,6 +37,7 @@ pub use greater_element::Table;
pub use greater_element::TableRow;
pub use greater_element::TableRowType;
pub use lesser_element::BabelCall;
pub use lesser_element::CharOffsetInLine;
pub use lesser_element::Clock;
pub use lesser_element::Comment;
pub use lesser_element::CommentBlock;