Extract the line number from the switches.

This commit is contained in:
Tom Alexander
2023-10-04 11:31:45 -04:00
parent 3d7f411cf9
commit 317293f0f2
4 changed files with 93 additions and 4 deletions

View File

@@ -108,7 +108,10 @@ pub struct LatexEnvironment<'s> {
pub source: &'s str,
}
pub type LineNumber = usize;
/// A line number used in switches to lesser blocks.
///
/// This must be signed because emacs subtracts 1 from the actual value in the org-mode text, which makes a 0 turn into a -1.
pub type LineNumber = isize;
#[derive(Debug)]
pub enum SwitchNumberLines {