aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor some code to improve coverageLibravatar Titus Wormer2022-10-131-3/+1
|
* Refactor some code to improve coverageLibravatar Titus Wormer2022-10-131-19/+13
|
* Add support for proper positional info in swc treeLibravatar Titus Wormer2022-10-111-3/+13
| | | | | | | | | | * Fix some positional info in SWC error messages * Add positional info in `to_document` on duplicate layouts * Add support for `path` on `Program` (`to_swc`, `to_document`, `jsx_rewrite`), for the path of a file on disk * Add support for `development` to `jsx-rewrite`, which when defined will embed info on where tags were written into the runtime code when they are not passed * Refactor to move some utilities to `micromark_swc_utils.rs`, `swc_utils.rs`
* Refactor to split parse from compile optionsLibravatar Titus Wormer2022-10-061-3/+6
|
* Fix to prefer flow over definitions, setext headingsLibravatar Titus Wormer2022-09-141-7/+16
| | | | | | | | | | | | | | An undocumented part of CommonMark is how to deal with things in definition labels or definition titles (which both can span multiple lines). Can flow (or containers?) interrupt them? They can according to the `cmark` reference parser, so this was implemented here. This adds a new `Content` content type, which houses zero or more definitions, and then zero-or-one paragraphs. Content can be followed by a setext heading underline, which either turns into a setext heading when the content ends in a paragraph, or turns into the start of the following paragraph when it is followed by content that starts with a paragraph, or turns into a stray paragraph.
* Add support for recoverable syntax errorsLibravatar Titus Wormer2022-09-071-4/+4
|
* Add support for GFM footnotesLibravatar Titus Wormer2022-08-251-2/+8
|
* Add support for GFM strikethroughLibravatar Titus Wormer2022-08-221-3/+4
|
* Add `no_std + alloc`Libravatar Titus Wormer2022-08-161-0/+1
|
* Refactor to proof docs, grammarsLibravatar Titus Wormer2022-08-151-1/+1
|
* Refactor to move some things to `parser`Libravatar Titus Wormer2022-08-151-3/+18
|
* Refactor to improve docs of each functionLibravatar Titus Wormer2022-08-121-3/+3
|
* Refactor to move some code to `event.rs`Libravatar Titus Wormer2022-08-111-1/+1
|
* Refactor to improve statesLibravatar Titus Wormer2022-07-291-3/+2
| | | | | | | | | | | | * 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-291-4/+4
|
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-281-7/+7
| | | | | | | | | | | | | | | 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 move `index` field to `point`Libravatar Titus Wormer2022-07-211-1/+1
|
* Remove a couple of clonesLibravatar Titus Wormer2022-07-191-4/+4
|
* Replace use of `HashSet` with `vec`Libravatar Titus Wormer2022-07-191-3/+2
|
* Add support for turning off constructsLibravatar Titus Wormer2022-07-181-1/+4
|
* Fix some small to dosLibravatar Titus Wormer2022-07-071-2/+1
|
* Add basic support for block quotesLibravatar Titus Wormer2022-07-071-2/+2
|
* Refactor to do some to dosLibravatar Titus Wormer2022-07-051-3/+2
|
* Refactor code styleLibravatar Titus Wormer2022-07-051-2/+3
|
* Update list of todosLibravatar Titus Wormer2022-07-041-3/+1
|
* Add support for sharing identifiers, references before definitionsLibravatar Titus Wormer2022-06-291-6/+14
|
* Add link, images (resource)Libravatar Titus Wormer2022-06-241-4/+16
| | | | | | | | | | | | 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
* Update todoLibravatar Titus Wormer2022-06-221-0/+2
|
* Add support for definitionsLibravatar Titus Wormer2022-06-171-1/+0
| | | | | | * Add definitions * Add partials for label, destination, title * Add `go`, to attempt something, and do something else on `ok`
* Add basic subtokenization, string content in fenced codeLibravatar Titus Wormer2022-06-091-2/+10
|
* Refactor to pass more slices aroundLibravatar Titus Wormer2022-06-091-1/+1
|
* .Libravatar Titus Wormer2022-06-081-0/+14