Tom Alexander
8fd9ff3848
Implement the new fields for bold, italic, underline, and strike-through.
2023-12-08 15:51:38 -05:00
Tom Alexander
03754be71e
Implement the new fields for section.
2023-10-31 23:16:57 -04:00
Tom Alexander
70002800c2
Implement the new fields for footnote definitions.
2023-10-31 23:12:04 -04:00
Tom Alexander
281c35677b
Implement the new fields for paragraph.
2023-10-31 23:06:43 -04:00
Tom Alexander
b1773ac90e
Get post blank for footnote references.
2023-10-31 22:58:17 -04:00
Tom Alexander
d2f2bdf88d
Implement get_contents for footnote references.
2023-10-31 22:58:17 -04:00
Tom Alexander
6c197c376a
Add todo implementations of the new standard property functions.
2023-10-31 21:49:33 -04:00
Tom Alexander
bcf1b49db2
Remove the GetStandardProperties trait.
...
This was using dynamic dispatch to deal with enums to avoid the repetitive typing.
2023-10-31 21:26:00 -04:00
Tom Alexander
a5627d0cee
Do not parse the lesser block contents during parsing, but rather only if the contents are requested.
...
This seemed like an unnecessary allocation during parsing, especially considering we throw away some parses based on whether or not we found radio targets in the source.
2023-10-31 20:43:08 -04:00
Tom Alexander
78320d3265
Fix clippy errors.
2023-10-31 18:32:01 -04:00
Tom Alexander
f5699ce830
Remove PartialEq from Object.
2023-10-31 16:33:10 -04:00
Tom Alexander
816c164996
Only allocate memory if removing text for lesser blocks.
2023-10-27 21:50:08 -04:00
Tom Alexander
4897952330
Make creating AllAstNodeIter explicit.
...
This is to remove the ambiguity between calling iter on the specific structs like Document and calling iter on an AstNode by having an explicitly-named function to create the iterator.
2023-10-23 18:25:59 -04:00
Tom Alexander
c420ccd029
Fix clippy errors.
2023-10-23 17:43:43 -04:00
Tom Alexander
5e2dea1f28
Remove the SetSource trait.
...
It was only being used for creating paragraphs of specific text, so I just adjusted the of_text function to handle it.
2023-10-23 17:43:32 -04:00
Tom Alexander
f47d688be4
Remove owned String from CustomError.
...
This is a 15% performance improvement.
2023-10-21 14:29:37 -04:00
Tom Alexander
e11de60def
Clippy fixes.
2023-10-18 18:39:04 -04:00
Tom Alexander
b2479e9de8
Remove Debug from the context variables.
...
Now that entities are stored in the settings struct, these variables are massive which makes them balloon trace sizes while being mostly unreadable. This removes Debug from them to serve as a static-analysis check that context is ALWAYS ignored in tracing calls.
2023-10-18 18:36:25 -04:00
Tom Alexander
49d1cef7ae
Remove context from functions that no longer need it.
2023-10-18 18:28:24 -04:00
Tom Alexander
ba72cc1b29
The variables for keywords are actually constants.
...
These settings do not need to exist in GlobalSettings because they are actually constants in upstream Org-Mode.
2023-10-18 18:22:01 -04:00
Tom Alexander
68f3f2e159
Clippy fixes.
2023-10-18 12:42:09 -04:00
Tom Alexander
e111b8b9b8
Performance optimization.
2023-10-18 12:39:08 -04:00
Tom Alexander
353ff07420
Handle bullshitium for broken dynamic blocks.
2023-10-18 12:32:48 -04:00
Tom Alexander
94dec31130
Consuming trailing whitespace for 🔚 bullshitium.
2023-10-18 12:17:57 -04:00
Tom Alexander
cf5d3ed745
Add tests for the 🔚 bullshitium.
2023-10-18 11:59:55 -04:00
Tom Alexander
b0b287cd47
Handle bullshitium for 🔚 .
2023-10-18 11:57:39 -04:00
Tom Alexander
17d8e76e05
Do not match POST for entities that end with a space.
...
This is a special case for en-spaces.
2023-10-18 08:52:18 -04:00
Tom Alexander
a276ba70e0
Fix empty content items with final item whitespace cut-off before headlines.
2023-10-17 15:56:02 -04:00
Tom Alexander
b7442c1e92
Do not match headlines as plain list items.
2023-10-17 15:35:43 -04:00
Tom Alexander
364ba79517
It actually worked on trailing whitespace ownership test case 2.
2023-10-17 15:22:31 -04:00
Tom Alexander
47408763e5
A first stab at a final item whitespace cut-off exit matcher.
2023-10-17 15:08:36 -04:00
Tom Alexander
bd187ebfe7
Remove re-parsing of the final list child.
2023-10-17 14:17:47 -04:00
Tom Alexander
59cb3c2bbf
Remove unnecessary closures in plain lists.
2023-10-17 13:59:33 -04:00
Tom Alexander
a2f53361eb
Record element start events and report them when the event_count feature is enabled.
2023-10-17 13:32:01 -04:00
Tom Alexander
17db05c2c7
Unify more error handling.
2023-10-17 12:42:34 -04:00
Tom Alexander
6139ea328d
Unify some more error handling.
2023-10-17 12:22:52 -04:00
Tom Alexander
d20b4a410b
Remove pointless map_err calls.
2023-10-17 11:56:36 -04:00
Tom Alexander
f65d0bb82d
Remove redundant call to space0.
2023-10-17 11:33:26 -04:00
Tom Alexander
50d2831081
Cleanup.
2023-10-17 11:30:23 -04:00
Tom Alexander
bc9bd4f97b
Eliminate some closures.
2023-10-17 11:10:18 -04:00
Tom Alexander
369d3e8c50
Add a full-document parse benchmark.
2023-10-17 10:57:04 -04:00
Tom Alexander
20c4a0f8f7
Continue removing MyError.
2023-10-17 10:35:33 -04:00
Tom Alexander
e776a051ad
Continue removing MyError.
2023-10-17 10:13:00 -04:00
Tom Alexander
77e6c22ad8
Continue removing MyError.
2023-10-17 10:09:37 -04:00
Tom Alexander
c9d7251e3b
Begin removing the MyError type.
2023-10-17 09:45:18 -04:00
Tom Alexander
8417b5fc9d
Add an owned string entry for CustomError.
2023-10-17 09:27:15 -04:00
Tom Alexander
e2d55e13d3
Fix some clippy errors that didn't appear on my host version of clippy.
2023-10-16 19:43:15 -04:00
Tom Alexander
3069711447
Apply more suggestions.
2023-10-16 18:29:21 -04:00
Tom Alexander
4b6c717812
Apply more suggestions.
2023-10-16 17:58:52 -04:00
Tom Alexander
1d329cc310
Apply more suggestions.
2023-10-16 17:28:28 -04:00