aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/partial_space_or_tab.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove some unused codeLibravatar Titus Wormer2022-10-131-1/+1
|
* Update some last docs, bnf grammarsLibravatar Titus Wormer2022-08-161-4/+13
|
* Refactor to improve enteringLibravatar Titus Wormer2022-08-121-10/+18
|
* Remove `match` statements if clumsyLibravatar Titus Wormer2022-08-121-15/+16
|
* Refactor to improve docs of each functionLibravatar Titus Wormer2022-08-121-1/+1
|
* Refactor to move `space_or_tab_eol` to own fileLibravatar Titus Wormer2022-08-111-161/+0
|
* Refactor to move some code to `event.rs`Libravatar Titus Wormer2022-08-111-29/+29
|
* Refactor to move some code to `state.rs`Libravatar Titus Wormer2022-08-111-18/+19
|
* Add `State::Retry`Libravatar Titus Wormer2022-08-101-4/+4
|
* Rename `State::Fn` to `State::Next`Libravatar Titus Wormer2022-08-101-10/+10
|
* Add support for passing `ok`, `nok` as separate states to attemptsLibravatar Titus Wormer2022-08-091-8/+10
|
* Rewrite algorithm to not pass around boxed functionsLibravatar Titus Wormer2022-08-091-80/+91
| | | | | | * Pass state names from an enum around instead of boxed functions * Refactor to simplify attempts a lot * Use a subtokenizer for the the `document` content type
* Refactor to remove most closuresLibravatar Titus Wormer2022-08-021-78/+113
|
* Refactor to work on bytes (`u8`)Libravatar Titus Wormer2022-07-291-6/+6
|
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-281-8/+5
| | | | | | | | | | | | | | | Previously, a custom char implementation was used. This was easier to work with, as sometimes “virtual” characters are injected, or characters are ignored. This replaces that with working on actual `char`s. In the hope of in the future working on `u8`s, even. This simplifies the state machine somewhat, as only `\n` is fed, regardless of whether it was a CRLF, CR, or LF. It also feeds `' '` instead of virtual spaces. The BOM, if present, is now available as a `ByteOrderMark` event.
* Refactor to drastically improve perf around whitespaceLibravatar Titus Wormer2022-07-261-1/+1
|
* Refactor to not pass codes aroundLibravatar Titus Wormer2022-07-251-20/+20
|
* Remove no longer needed field in `State::Ok`Libravatar Titus Wormer2022-07-251-4/+4
|
* Improve performance w/ a single feed loopLibravatar Titus Wormer2022-07-251-4/+4
|
* Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer2022-07-221-17/+17
|
* Refactor to pass ints instead of vecs aroundLibravatar Titus Wormer2022-07-221-24/+21
|
* Refactor examples of statesLibravatar Titus Wormer2022-07-181-24/+13
|
* Refactor to move token types to `token`Libravatar Titus Wormer2022-07-071-7/+8
|
* Refactor code styleLibravatar Titus Wormer2022-07-051-2/+2
|
* Refactor to clean and document `space_or_tab`Libravatar Titus Wormer2022-07-011-91/+127
|
* Fix jumps in `edit_map`Libravatar Titus Wormer2022-06-281-41/+120
| | | | | | | | | * Use resolve more often (e.g., heading (atx, setext)) * Fix to link whole phrasing (e.g., one big chunk of text in heading (atx, setext), titles, labels) * Replace `ChunkText`, `ChunkString`, with `event.content_type: Option<ContentType>` * Refactor to externalize `edit_map` from `label`
* Add link, images (resource)Libravatar Titus Wormer2022-06-241-0/+39
| | | | | | | | | | | | This is still some messy code that needs cleaning up, but it adds support for links and images, of the resource kind (`[a](b)`). References (`[a][b]`) are parsed and will soon be supported, but need matching. * Fix bug to pad percent-encoded bytes when normalizing urls * Fix bug with escapes counting as balancing in destination * Add `space_or_tab_one_line_ending`, to parse whitespace including up to one line ending (but not a blank line) * Add `ParserState` to share codes, definitions, etc
* Add `attempt_opt` to tokenizerLibravatar Titus Wormer2022-06-221-25/+34
|
* Rename `Whitespace` token to `SpaceOrTab`Libravatar Titus Wormer2022-06-221-1/+1
|
* Refactor to improve a bunch of statesLibravatar Titus Wormer2022-06-211-34/+36
| | | | | | * Improve passing stuff around * Add traits to enums for markers and such * Fix “life time” stuff I didn’t understand
* Add improved whitespace handlingLibravatar Titus Wormer2022-06-201-0/+98
* add several helpers for parsing betwen x and y `space_or_tab`s * use those helpers in a bunch of places * move initial indent parsing to flow constructs themselves