Commit Graph

1343 Commits

Author SHA1 Message Date
Tom Alexander 76fb24d1d1
Merge branch 'comment_properties'
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has succeeded Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-02 23:30:29 -04:00
Tom Alexander b56318fbe4
Add TODO comment. 2023-10-02 23:29:58 -04:00
Tom Alexander 8169499de3
Compare value. 2023-10-02 23:28:32 -04:00
Tom Alexander 29d9e76545
Merge branch 'footnote_definition_properties' 2023-10-02 22:50:26 -04:00
Tom Alexander 4d356b855e
Compare label. 2023-10-02 22:48:54 -04:00
Tom Alexander ae66d1bd89
Fix tracing build.
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has succeeded Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-02 22:45:25 -04:00
Tom Alexander c551938904
Merge branch 'dynamic_block_properties' 2023-10-02 22:43:26 -04:00
Tom Alexander 0fb80e3fee
Compare name and parameters. 2023-10-02 22:41:56 -04:00
Tom Alexander 590e7fba0e
Merge branch 'greater_block_properties'
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has failed Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-02 22:37:11 -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 36217f5704
Do not capture trailing whitespace in parameters. 2023-10-02 21:14:07 -04:00
Tom Alexander 0654b676f7
Merge branch 'planning_properties'
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has failed Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-02 21:00:08 -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 01c2f1bf66
Add a test for a timestamp with a malformed repeater. 2023-10-02 20:04:39 -04:00
Tom Alexander be483110ef
Merge branch 'timestamp_properties'
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has succeeded Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-02 20:00:29 -04:00
Tom Alexander 94401dcf00
Allow REST despite no TIME. 2023-10-02 19:51:29 -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 5c929ffc13
Fix repeater type.
I had Cumulative and CatchUp backwards.
2023-10-02 19:18:25 -04:00
Tom Alexander bc3224be7a
Revert the rest_end functions. 2023-10-02 19:09:20 -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 dec3242e72
Implement the Time struct. 2023-10-02 16:24:51 -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 10ae36a419
Implement date types with basic validation. 2023-10-02 15:10:39 -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 9575ef30ac
Fix compilation.
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has succeeded Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-02 13:19:43 -04:00
Tom Alexander 06ecf41663
Add notes about the fields for timestamps. 2023-10-02 13:19:43 -04:00
Tom Alexander 10d03fd432
Merge branch 'standard_ast_node'
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has failed Details
rust-foreign-document-test Build rust-foreign-document-test has failed Details
rust-test Build rust-test has succeeded Details
2023-10-02 13:14:22 -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 1b788f3f21
Fix lifetimes on StandardProperties. 2023-10-02 12:11:05 -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 2a003b85fd
Merge branch 'headline_properties'
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has failed Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-02 11:41:04 -04:00
Tom Alexander 270ba53150
Set is_footnote_section during parsing. 2023-10-02 11:20:43 -04:00
Tom Alexander de5788d8f3
Introduce a struct for the partially-parsed headline.
We are returning so many fields from that parser that managing a tuple is becoming unreadable. The struct should add some structure 😉 to the code.
2023-10-02 11:16:05 -04:00
Tom Alexander 5a254392cb
Add more tests. 2023-10-02 10:53:52 -04:00