Analyze necessity and effects of checked arithmetic

This commit is contained in:
Juno Takano 2026-01-21 16:52:54 -03:00
commit 21a710658d
3 changed files with 42 additions and 2 deletions

View file

@ -13,6 +13,9 @@ use crate::{
/// A return of `true` will trigger a continue in the outer parser,
/// skipping any further parsing of the current lexeme.
///
/// Performs checked arithmetic to the following effect:
/// - The indent of list items will saturate at `u8::MAX` (255) spaces.
///
/// # Panics
/// This parser can handle only the List context, and will panic if passed an
/// unrelated context since it has no knowledge on how to handle them.