Handle matching no switches.

This commit is contained in:
Tom Alexander
2023-10-04 14:49:08 -04:00
parent 169bf69f5e
commit 32da06776c
3 changed files with 18 additions and 6 deletions

View File

@@ -326,6 +326,7 @@ fn _lesser_block_begin<'b, 'g, 'r, 's, 'c>(
Ok((remaining, name))
}
#[derive(Debug)]
struct ExampleSwitches<'s> {
source: &'s str,
number_lines: Option<SwitchNumberLines>,
@@ -334,6 +335,7 @@ struct ExampleSwitches<'s> {
label_format: Option<&'s str>,
}
#[derive(Debug)]
enum SwitchState {
Normal,
NewLineNumber,