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
Tom Alexander
d4f27ef297
Remove only use of Source trait.
2023-09-23 17:59:13 -04:00
Tom Alexander
f25246556c
Rename the existing StandardProperties struct to EmacsStandardProperties.
2023-09-23 17:44:54 -04:00
Tom Alexander
1f64e289a2
Add TODOs for all of the properties that need to be compared.
rust-foreign-document-test Build rust-foreign-document-test has started
rustfmt Build rustfmt has failed
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-09-23 14:46:36 -04:00
Tom Alexander
c892d406c3
Do not parse the tag for a plain list item if it is an ordered plain list item.
2023-09-21 20:58:03 -04:00
Tom Alexander
ba15999534
Add a test showing we are not handling parenthesis in links properly.
rust-test Build rust-test has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-21 14:31:13 -04:00
Tom Alexander
4c8d9a3063
Do not require a colon to close dynamic blocks.
2023-09-20 02:37:26 -04:00
Tom Alexander
1a704dd312
Honor the odd startup setting from org-mode files.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-15 22:54:49 -04:00
Tom Alexander
bfe67b1f75
Parse plain list item checkboxes.
2023-09-15 16:09:57 -04:00
Tom Alexander
fd41ad9c29
Pretend dos line endings do not exist.
2023-09-15 14:13:17 -04:00
Tom Alexander
876d33239e
Allow any character to be escaped in the path for links.
2023-09-14 03:05:11 -04:00
Tom Alexander
44e9f708c9
Handle the possibility of a title-less headline.
2023-09-14 02:01:24 -04:00
Tom Alexander
b8a4876779
Disable auto-aligning tables when Emacs loads Org-mode.
...
Emacs will auto-align tables when org-mode is loaded if the document contains "#+STARTUP: align". Since Organic is just a parser, it has no business editing the input it receives so we are disabling this auto-align in Emacs to make the tests work properly.
2023-09-13 21:02:38 -04:00
Tom Alexander
37e85158ea
Reduce the exposed functions when compare feature is enabled.
2023-09-12 15:48:37 -04:00
Tom Alexander
a651b79e77
Move sexp into compare.
2023-09-11 15:37:20 -04:00
Tom Alexander
84953c1669
Put back in needed pubs.
2023-09-11 14:59:23 -04:00
Tom Alexander
7650a9edff
Remove all pub.
2023-09-11 13:11:08 -04:00
Tom Alexander
80f7098f9b
Compare table formulas.
2023-09-08 23:05:04 -04:00
Tom Alexander
cc56b79683
Add a test showing we're not handling table formulas.
2023-09-08 22:42:24 -04:00
Tom Alexander
93d3d9471f
Compare priority, archived, and commented in headlines.
2023-09-08 16:00:16 -04:00
Tom Alexander
f8b99ed235
Support counter set in plain list items.
2023-09-06 19:09:20 -04:00
Tom Alexander
6fc607cfe0
Compare node properties.
2023-09-06 18:54:47 -04:00
Tom Alexander
3fc3a5d1ef
Add support for empty lesser blocks.
2023-09-06 18:11:57 -04:00
Tom Alexander
6e2fc362ea
Add support for babel-call keywords.
2023-09-06 18:04:53 -04:00
Tom Alexander
12cbb89861
Compare todo-type on headlines.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 12:39:03 -04:00
Tom Alexander
7c471ab32e
Compare keyword keys and values.
2023-09-06 12:10:57 -04:00
Tom Alexander
275b4b53d1
Use a single function for finding all keywords.
2023-09-04 19:19:23 -04:00
Tom Alexander
d262833f9b
Fixing more errors.
2023-09-03 12:52:09 -04:00
Tom Alexander
f16a554154
Handle org-mode documents passed as args.
...
We were running into issues where the documents grew too large for being passed as a string to emacs, and we need to handle #+setupfile so we need to start handling org-mode documents as files and not just as anonymous streams of text.
The anonymous stream of text handling will remain because the automated tests use it.
2023-09-02 17:28:22 -04:00
Tom Alexander
80d77ff5d6
Fix handling of unicode in compare tests.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-08-31 20:20:00 -04:00
Tom Alexander
7a903acedc
Support special blocks in compare.
2023-08-31 19:04:44 -04:00
Tom Alexander
d471f7178b
Wrap the components of headlines in diff layers.
2023-08-29 22:57:08 -04:00
Tom Alexander
2c5c26c55f
Allow diff layers that are not associated with tokens.
2023-08-29 22:47:40 -04:00
Tom Alexander
7944659802
Compare headline level.
2023-08-29 22:11:56 -04:00
Tom Alexander
58aca53144
Move get_property into util.
2023-08-29 22:07:23 -04:00
Tom Alexander
f170a557ed
Use character offsets in diff.
2023-08-29 21:49:16 -04:00
Tom Alexander
eaa38ce772
Include an error message for failed bounds checking.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-08-29 21:27:54 -04:00
Tom Alexander
f6c895319f
Add support for diffing description lists.
2023-08-29 19:35:54 -04:00
Tom Alexander
9df40fb13f
Only allow specific keywords for affiliated keywords.
2023-08-29 16:56:07 -04:00