aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor some code for document parsingLibravatar Titus Wormer2022-08-101-3/+7
|
* Add `State::Retry`Libravatar Titus Wormer2022-08-1021-186/+152
|
* Rename `State::Fn` to `State::Next`Libravatar Titus Wormer2022-08-1027-324/+309
|
* Add support for passing `ok`, `nok` as separate states to attemptsLibravatar Titus Wormer2022-08-0915-168/+265
|
* Rewrite algorithm to not pass around boxed functionsLibravatar Titus Wormer2022-08-0927-688/+795
| | | | | | * 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-0221-990/+979
|
* Fix bug on empty heading (atx)Libravatar Titus Wormer2022-08-011-29/+31
|
* Add missing docs, refactor some codeLibravatar Titus Wormer2022-08-013-8/+21
|
* Refactor some statesLibravatar Titus Wormer2022-08-016-28/+32
|
* Refactor to improve statesLibravatar Titus Wormer2022-07-2923-907/+522
| | | | | | | | | | | | * Remove custom kind wrappers, use plain bytes instead * Remove `Into`s, use the explicit expected types instead * Refactor to use `slice.as_str` in most places * Remove unneeded unique check before adding a definition * Use a shared CDATA prefix in constants * Inline byte checks into matches * Pass bytes back from parser instead of whole parse state * Refactor to work more often on bytes * Rename custom `size` to `len`
* Refactor to work on bytes (`u8`)Libravatar Titus Wormer2022-07-2930-386/+450
|
* Refactor to use `debug_assert`Libravatar Titus Wormer2022-07-281-1/+0
|
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-2828-614/+540
| | | | | | | | | | | | | | | 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-266-136/+195
|
* Refactor to not pass codes aroundLibravatar Titus Wormer2022-07-2529-896/+861
|
* Remove no longer needed field in `State::Ok`Libravatar Titus Wormer2022-07-2529-44/+44
|
* Improve performance w/ a single feed loopLibravatar Titus Wormer2022-07-2521-45/+41
|
* Refactor to use a single shared edit mapLibravatar Titus Wormer2022-07-227-52/+34
|
* Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer2022-07-2229-781/+583
|
* Refactor to pass ints instead of vecs aroundLibravatar Titus Wormer2022-07-2229-374/+328
|
* Refactor to improve performance by passing markers aroundLibravatar Titus Wormer2022-07-211-6/+6
|
* Refactor to move `index` field to `point`Libravatar Titus Wormer2022-07-216-66/+29
|
* Refactor to move some event fields to `link`Libravatar Titus Wormer2022-07-214-58/+24
|
* Refactor to share edit mapLibravatar Titus Wormer2022-07-207-41/+41
|
* Refactor to improve allocation around stringsLibravatar Titus Wormer2022-07-201-6/+4
|
* Refactor to use less vecs for eventsLibravatar Titus Wormer2022-07-207-18/+18
|
* Refactor to remove cloning in `edit_map`Libravatar Titus Wormer2022-07-197-20/+15
|
* Fix performance around a lot of listsLibravatar Titus Wormer2022-07-191-16/+33
|
* Add support for turning off constructsLibravatar Titus Wormer2022-07-1820-52/+124
|
* Refactor to organize resolversLibravatar Titus Wormer2022-07-184-175/+175
|
* Refactor examples of statesLibravatar Titus Wormer2022-07-1826-460/+605
|
* Remove unneeded tokenLibravatar Titus Wormer2022-07-181-3/+3
|
* Fix token that should be voidLibravatar Titus Wormer2022-07-181-2/+4
|
* Fix dead link in docsLibravatar Titus Wormer2022-07-181-2/+2
|
* Fix interrupting of ordered itemsLibravatar Titus Wormer2022-07-151-5/+7
|
* Fix to use single array for character referencesLibravatar Titus Wormer2022-07-151-6/+8
|
* Fix stray `println`Libravatar Titus Wormer2022-07-151-2/+0
|
* Add docs to non-lazy continuationLibravatar Titus Wormer2022-07-151-5/+27
|
* Add docs and refactor listLibravatar Titus Wormer2022-07-152-163/+200
|
* Add missing docs to html (flow)Libravatar Titus Wormer2022-07-152-38/+46
|
* Remove unneeded fieldLibravatar Titus Wormer2022-07-152-27/+17
|
* Add missing linkLibravatar Titus Wormer2022-07-151-5/+4
|
* Remove unneeded tokenLibravatar Titus Wormer2022-07-151-3/+3
|
* Fix linkLibravatar Titus Wormer2022-07-151-4/+3
|
* Fix lazy first line in code (fenced)Libravatar Titus Wormer2022-07-151-13/+7
|
* Fix two more list bugsLibravatar Titus Wormer2022-07-141-1/+6
|
* Fix interrupting sibling list itemsLibravatar Titus Wormer2022-07-141-3/+1
|
* Fix html (flow) whitespace againLibravatar Titus Wormer2022-07-141-2/+11
|
* Add support for container stateLibravatar Titus Wormer2022-07-141-43/+52
| | | | | | * Fix to parse list item continuation based on how big the initial list item prefix was * Fix list items that start with blank lines
* Fix a bunch of container thingsLibravatar Titus Wormer2022-07-142-5/+6
| | | | | | | | * Fix a lot of container code * Fix to prevent code (indented) from interrupting a lazy container * Fix compiling when combining tight paragraphs, empty list items, and html * Fix list items starting w/ blank lines causing loose lists * Fix crash when looking for a previous blank line