diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-09 00:37:13 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-09 00:37:13 +0200 |
| commit | 5afb42ad89abb518a01a09051f0f9b6f75bd383e (patch) | |
| tree | b12368a287f22de711df8d759c20ee742ed5b4c2 /src/parse/scanner.rs | |
| parent | d69dfa84ec957ac4037f60a3335416a9f73b97c8 (diff) | |
Lists with indent-based parsing
- Unordered lists with indent-based parsing and basic layout using stacks
- Headings are now also indent based
- Removes syntax functions since they will be superseded by select & transform
Diffstat (limited to 'src/parse/scanner.rs')
| -rw-r--r-- | src/parse/scanner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/scanner.rs b/src/parse/scanner.rs index cc23a612..1f262e63 100644 --- a/src/parse/scanner.rs +++ b/src/parse/scanner.rs @@ -2,7 +2,7 @@ use std::fmt::{self, Debug, Formatter}; use std::slice::SliceIndex; /// A featureful char-based scanner. -#[derive(Clone)] +#[derive(Copy, Clone)] pub struct Scanner<'s> { src: &'s str, index: usize, |
