Tom Alexander
8169499de3
Compare value.
2023-10-02 23:28:32 -04:00
Tom Alexander
4d356b855e
Compare label.
2023-10-02 22:48:54 -04:00
Tom Alexander
0fb80e3fee
Compare name and parameters.
2023-10-02 22:41:56 -04:00
Tom Alexander
4a72747dc9
Compare name and parameters.
2023-10-02 22:33:00 -04:00
Tom Alexander
2352636672
Split GreaterBlock into CenterBlock, QuoteBlock, and SpecialBlock.
...
Center and quote blocks do not have parameters nor do they store their name so I am separating them out.
2023-10-02 22:33:00 -04:00
Tom Alexander
a80d171e4d
Bubble up planning variables to the headline.
2023-10-02 20:37:46 -04:00
Tom Alexander
2e1a946ac9
Compare scheduled, deadline, and closed.
2023-10-02 20:25:08 -04:00
Tom Alexander
2b5df83956
Format the code.
2023-10-02 19:24:47 -04:00
Tom Alexander
d53b9e1e1f
Fix get_property.
...
This was returning the error when a token was not an atom whereas we only wanted to check to see if it was the atom nil.
2023-10-02 19:22:35 -04:00
Tom Alexander
54c66fb4d6
Change get_property to allow absent values.
...
We're returning an Option<> anyway so might as well handle absent values.
2023-10-02 19:07:12 -04:00
Tom Alexander
6a8ae9d838
Compare warning delay and repeater.
2023-10-02 18:58:30 -04:00
Tom Alexander
512432c5f0
Do not allow time range timestamps with REST on the first TIME.
2023-10-02 17:51:33 -04:00
Tom Alexander
890cd3e4fd
Compare start/end time.
2023-10-02 17:17:05 -04:00
Tom Alexander
9846cde2f0
Trim whitespace from raw value.
2023-10-02 16:32:33 -04:00
Tom Alexander
a8a34e2d9c
Compare date start/end.
2023-10-02 16:16:19 -04:00
Tom Alexander
c55fae86f8
Improve lifetimes for get_property_numeric.
2023-10-02 15:51:29 -04:00
Tom Alexander
e7ec23af3d
Move the Date struct into types and implement a get_property_numeric.
2023-10-02 15:49:51 -04:00
Tom Alexander
ecdfd7087f
Compare raw-value.
2023-10-02 14:45:20 -04:00
Tom Alexander
3ed9b552e2
Compare range type.
2023-10-02 14:35:45 -04:00
Tom Alexander
d04c8c832c
Compare timestamp type.
2023-10-02 13:40:37 -04:00
Tom Alexander
06ecf41663
Add notes about the fields for timestamps.
2023-10-02 13:19:43 -04:00
Tom Alexander
a62c3fc522
Move AstNode into the types crate.
...
Now that it is used for more than just iteration, it makes sense to promote it to the types crate.
2023-10-02 13:10:45 -04:00
Tom Alexander
25f664e69e
Fix warnings.
2023-10-02 13:05:51 -04:00
Tom Alexander
52e0d305aa
Remove compare_element and compare_object.
2023-10-02 13:05:29 -04:00
Tom Alexander
418c5c1ce8
Implement the traits for all ast node types.
2023-10-02 12:53:23 -04:00
Tom Alexander
ecd523fa8f
Fix lifetimes in the compare functions.
2023-10-02 12:36:09 -04:00
Tom Alexander
c0555dec0b
Fix lifetimes for DiffEntry/DiffResult.
2023-10-02 12:28:48 -04:00
Tom Alexander
b3382c66cd
Fix lifetimes on ElispFact.
...
This was listed as a yellow flag on https://quinedot.github.io/rust-learning/pf-shared-nested.html .
2023-10-02 12:11:05 -04:00
Tom Alexander
178894680b
Compare footnote section.
2023-10-02 10:48:34 -04:00
Tom Alexander
d78ce10a0b
Compare raw-value.
2023-10-02 10:26:57 -04:00
Tom Alexander
6ed35f4674
Minor cleanup.
2023-09-30 00:16:19 -04:00
Tom Alexander
896250836b
Add support for parsing quoted strings containing escaped octals.
2023-09-29 23:59:33 -04:00
Tom Alexander
6c77586960
Improve error message.
2023-09-29 23:59:32 -04:00
Tom Alexander
fc7d4bd949
Set Document path and category based on file path.
2023-09-29 23:59:32 -04:00
Tom Alexander
f1e35e317b
Compare document path.
2023-09-29 21:20:23 -04:00
Tom Alexander
3fb2b5d31c
Undo the getters change.
...
The getters were a good idea, but if we are going to support editing later, we will need to expose the fields or write A LOT of boiler-plate. The getters also would prevent people from moving values out of the AST without even more boiler-plate. It is simply not worth it at this stage, so we will need to tolerate frequently changing semver versions as the public interface changes since *every* field in the AST is public.
2023-09-29 21:14:55 -04:00
Tom Alexander
d1dac0b8de
Compare document category.
2023-09-29 20:57:09 -04:00
Tom Alexander
064a4eeee7
Compare plain list item pre blank.
2023-09-29 19:30:02 -04:00
Tom Alexander
7727b5ef47
Compare plain list item counter.
2023-09-29 18:45:38 -04:00
Tom Alexander
967e74c147
Compare plain list item bullets.
2023-09-29 17:28:50 -04:00
Tom Alexander
07e11e359a
Add tests for odd headline levels.
2023-09-29 16:37:22 -04:00
Tom Alexander
0c363c8dd6
Add tests for tab width.
2023-09-29 16:03:55 -04:00
Tom Alexander
9a479b33e0
Make the same changes we did for stdin compare to comparing files.
2023-09-29 15:42:07 -04:00
Tom Alexander
7a854838ef
Clean up code duplication.
2023-09-29 15:35:57 -04:00
Tom Alexander
2012e5a6d5
Test org_mode_samples both with and without alphabetical lists enabled.
2023-09-29 15:30:38 -04:00
Tom Alexander
f820e27b17
Compare plain list type in diff.rs.
2023-09-29 13:03:25 -04:00
Tom Alexander
0b2a5f4fbf
Change all runtime asserts in private functions to debug_assert.
...
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
These functions aren't exposed to the public so we can confidently say that if they work in dev then they will work in production. Removing these asserts theoretically should result in a speedup.
2023-09-23 21:17:58 -04:00
Tom Alexander
d5b1014fe4
Unify the standard properties checks in diff.
...
Instead of copy+pasting them into each compare function, we now call a shared function from a handful of places.
2023-09-23 21:05:56 -04:00
Tom Alexander
dd8a8207ce
Move assert bounds for elements and objects (except PlainText) to the compare element/object functions.
2023-09-23 19:35:12 -04:00
Tom Alexander
b4c985071c
Add a GetStandardProperties trait.
2023-09-23 19:13:01 -04:00