do a fast pass first to exit early if the spaces will not be parsed

This commit is contained in:
Folkert 2022-05-15 21:11:10 +02:00
parent c6b13984ed
commit 65e842f64a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 101 additions and 52 deletions

View file

@ -13,7 +13,7 @@ pub struct State<'a> {
offset: usize,
/// Position of the start of the current line
line_start: Position,
pub line_start: Position,
/// Current indentation level, in columns
/// (so no indent is col 1 - this saves an arithmetic operation.)