Commit Graph

125 Commits

Author SHA1 Message Date
Tom Alexander 28b2d27054
Consume trailing whitespace after a plain link.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
2023-09-06 14:39:31 -04:00
Tom Alexander 728a79f9a4
Handle zero-width space in text markup.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
2023-09-06 13:56:27 -04:00
Tom Alexander 949d0989f4
Add a test showing the current parser is broken with deeply nested greater blocks. 2023-08-31 19:15:28 -04:00
Tom Alexander 2a4d22bdd4
Add test for nesting of greater blocks.
This shows that greater blocks of different types can be directly nested even if they are both special blocks (as long as they are different special blocks).
2023-08-31 19:09:38 -04:00
Tom Alexander 5171326d63
Create a test for special blocks. 2023-08-31 19:02:18 -04:00
Tom Alexander bfc9e7f58d
When re-parsing last item in list, only disable white space consumption for last element in item. 2023-08-31 17:08:21 -04:00
Tom Alexander 2048d8f0b6
Support comments at the end of the line in diary sexp.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
2023-08-31 15:31:54 -04:00
Tom Alexander 466716881e
Fix macros consuming whitespace even when the exit matcher is calling for an exit.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
2023-08-31 15:11:29 -04:00
Tom Alexander eb9c582fa5
'>' is allowed as a post character in text markup.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
2023-08-29 23:57:15 -04:00
Tom Alexander 6f2d90162b
Do not use the plain text parser for property drawers.
This additional exit condition was causing property drawers to parse incorrectly.
2023-08-29 22:03:20 -04:00
Tom Alexander f170a557ed
Use character offsets in diff. 2023-08-29 21:49:16 -04:00
Tom Alexander a6d742a536
Fix handling line breaks after divider in description lists. 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 2682779534
Add support for parsing description lists. 2023-08-29 18:13:55 -04:00
Tom Alexander ea6faf728c
Add test for description list. 2023-08-29 18:07:35 -04:00
Tom Alexander f426e32798
Do not include trailing punctuation or whitespace in plain links. 2023-08-29 17:35:04 -04:00
Tom Alexander 66037356c5
Add test showing plain links ending in punctuation currently do not parse correctly. 2023-08-29 17:24:44 -04:00
Tom Alexander 1bcd1895c0
Allow affiliating keywords with regular keywords. 2023-08-29 17:19:13 -04:00
Tom Alexander e3d38cfbe2
Add a test for floating affiliated keywords. 2023-08-29 17:05:19 -04:00
Tom Alexander 56865c68fc
Do not allow plain links without a path. 2023-08-29 15:44:04 -04:00
Tom Alexander f376f1cf8e
Add a test for empty sections. 2023-08-29 14:10:26 -04:00
Tom Alexander a46b358549
Switch citations to using bracket depth from OrgSource instead of from the context.
This is for the same reasons as footnote references.
2023-08-28 03:04:32 -04:00
Tom Alexander ec813e3b3f
Switch to using bracket depth from OrgSource instead of from the context for footnote references.
It is currently unknown if this will produce a performance increase, but unless it has a significant performance penalty we are going to go forward with this change because it makes it more explicit which values need to be read deeply from other elements (therefore needing to be in the context) vs values that can be bound to the exit matcher since they are only used within the confines of the current element.

I suspect we will get a performance boost since it will be reducing the nodes that need to be walked in the context but maintaining bracket depth count over the entire document instead of only inside elements that need balanced brackets could cost us.
2023-08-28 03:04:32 -04:00
Tom Alexander 16e788c36c
Add tests for LaTeX fragments and text markup that span more than three lines.
The documentation currently states that the body for these cannot span more than three lines but that is not the behavior I am seeing from emacs in practice. Waiting on a mailing list response to tell me if this is a documentation error or a parser error.
2023-08-28 01:18:46 -04:00
Tom Alexander 18a396b7cb
Remove deprecated tests.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
2023-08-27 23:25:50 -04:00
Tom Alexander 1a3e26c148
Update plain list greater block exit matcher priority test to match blog post.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
It is still testing the same thing, but I changed the contents a bit to match what is being used in my blog post.
2023-08-27 21:03:16 -04:00
Tom Alexander 2d4e54845b
Add support for parsing tags in headlines. 2023-08-25 06:13:29 -04:00
Tom Alexander d5ea650b96
Add a test for dynamic blocks. 2023-08-25 05:36:57 -04:00
Tom Alexander efa372a9e9
Add a test case that breaks the current parser. 2023-08-25 04:39:58 -04:00
Tom Alexander 69ecfd2646
Move all the specific-token tests into subfolders.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
2023-08-20 23:38:47 -04:00
Tom Alexander 8162f03051
Put all trailing whitespace ownership test cases into the automated tests.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
Notes for this investigation moved to cba1d1e988/notes/plain_list_ownership_notes.org .

Mailing list thread on the investigation: https://list.orgmode.org/9372527e-3852-419e-936a-7b4dd38cc847@app.fastmail.com/ .
2023-08-20 16:03:31 -04:00
Tom Alexander f7ec89858d
Add notes about optimization ideas. 2023-08-14 23:16:23 -04:00
Tom Alexander 92abac37e2
s/precedent/precedence/
I used the wrong word. This is referring to the priority between paragraphs ending vs export snippets ending, not a reference to something occurring in the past.
2023-08-14 13:57:01 -04:00
Tom Alexander fc28e3b514
Add a test for trailing blank lines after paragraphs.
rust-test Build rust-test has failed Details
rustfmt Build rustfmt has succeeded Details
rust-build Build rust-build has succeeded Details
The behavior in emacs does not match the description in the org-mode documentation. I have sent an email to the org-mode mailing list and I am waiting their response so I can adjust (or not adjust) my parser accordingly.
2023-08-11 01:37:04 -04:00
Tom Alexander 73e15286dc
Add test cases. 2023-07-24 17:15:27 -04:00
Tom Alexander f717d5e7df
Implement parser for braceless subscript/superscript. 2023-07-24 15:41:14 -04:00
Tom Alexander 8c00ee24ba
Add a test to prove that subscript/superscript cannot start without a leading character even though its at the start of the file. 2023-07-24 14:33:04 -04:00
Tom Alexander 4a565601c1
Add test cases. 2023-07-24 14:29:20 -04:00
Tom Alexander b8b2e33137
Implement the statistics cookie parser. 2023-07-22 02:12:21 -04:00
Tom Alexander caa6c41798
Add a test case. 2023-07-22 01:40:27 -04:00
Tom Alexander 6b82214ec3
Add test case. 2023-07-21 23:41:29 -04:00
Tom Alexander 0b41e12424
Fix counting brackets in inline source block. 2023-07-21 23:14:52 -04:00
Tom Alexander 2773b35438
Add test case. 2023-07-21 19:53:18 -04:00
Tom Alexander 7ce9dafd96
Fix parsing citations inside paragraphs. 2023-07-21 18:52:02 -04:00
Tom Alexander 640a9375bc
Add a testcase populating all the optional fields for citations. 2023-07-21 18:28:16 -04:00
Tom Alexander c1a99a03f8
Add test case. 2023-07-19 17:52:59 -04:00
Tom Alexander eb03342506
Add test cases. 2023-07-18 23:46:10 -04:00
Tom Alexander 5ad8fdf4b2
Add test cases. 2023-07-18 21:14:49 -04:00
Tom Alexander 2966b91a09
Add an example for org-mode entities. 2023-07-18 19:40:09 -04:00
Tom Alexander f3592347c1
Add a test showing that radio targets only have to semantically match their links. 2023-07-14 12:28:52 -04:00