diff options
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser.rs b/src/parser.rs index 4e8d859..e40aa5a 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -70,11 +70,9 @@ pub fn parse<'a>( defs.append(&mut result.definitions); if result.done { - break; + return Ok((events, parse_state)); } result = subtokenize(&mut events, &parse_state, &None)?; } - - Ok((events, parse_state)) } |