Handle matching no switches.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user