Commit Graph

1088 Commits

Author SHA1 Message Date
Tom Alexander
8b811bec95
Count pass/fail stats for compare parse script. 2023-04-17 19:54:33 -04:00
Tom Alexander
89040c51a6
Update test case 1. 2023-04-17 19:45:50 -04:00
Tom Alexander
49be5ae7b1
Identify a mistake in the plain list drawer test. 2023-04-17 17:29:35 -04:00
Tom Alexander
f1880fdb7d
Add plain list first tests. 2023-04-17 16:41:58 -04:00
Tom Alexander
16218ec040
Add footnote definition first tests. 2023-04-16 18:01:47 -04:00
Tom Alexander
4c4d79a665
Add the dynamic block first tests. 2023-04-16 17:56:03 -04:00
Tom Alexander
a6036e257e
Add the drawer second tests. 2023-04-16 17:50:16 -04:00
Tom Alexander
beff8f8999
Add the drawer first tests. 2023-04-16 17:41:14 -04:00
Tom Alexander
ed6fda9918
Add the greater block second tests. 2023-04-16 17:33:33 -04:00
Tom Alexander
6da7cb2c17
Add greater block first tests. 2023-04-16 17:18:41 -04:00
Tom Alexander
e20bd793be
Include comment about section-first and section-second tests. 2023-04-16 17:08:56 -04:00
Tom Alexander
70596dc27b
Add all the section-first tests. 2023-04-16 17:06:08 -04:00
Tom Alexander
f41197b096
Add the first test. 2023-04-16 16:55:53 -04:00
Tom Alexander
d155ca1027
Set up an experiment for figuring out exit matcher priority. 2023-04-16 16:48:22 -04:00
Tom Alexander
0be554bfb6
Add an example of headlines breaking a drawer. 2023-04-16 15:55:39 -04:00
Tom Alexander
31f6914194
Add code to compare drawers. 2023-04-15 18:00:34 -04:00
Tom Alexander
9e4bf553d3
First attempt at implementing drawers. 2023-04-15 17:56:07 -04:00
Tom Alexander
1f7c24545b
Initial structure for drawer. 2023-04-15 17:36:07 -04:00
Tom Alexander
ea74e329b2
Merge branch 'comment' 2023-04-15 17:10:00 -04:00
Tom Alexander
50d05b99be
Require space after hash in comment if comment line is not empty. 2023-04-15 17:08:22 -04:00
Tom Alexander
6e4aa38fce
Add test demonstrating problem. 2023-04-15 17:04:47 -04:00
Tom Alexander
4e460e4a8c
Consume line ending in comments. 2023-04-15 16:59:30 -04:00
Tom Alexander
33bc1af17d
First stab at implementing comments. 2023-04-15 16:53:58 -04:00
Tom Alexander
d1a7d0b835
Show that trailing whitespace belongs to comments. 2023-04-15 16:37:25 -04:00
Tom Alexander
26e0ad5800
Add an example exploring indentation with comments. 2023-04-15 16:36:11 -04:00
Tom Alexander
1b10b197f2
Initial structure for adding support for comments. 2023-04-15 16:31:38 -04:00
Tom Alexander
cfcf6443ca
Added example org-mode file with comments. 2023-04-15 16:27:28 -04:00
Tom Alexander
965c5dd15f
Add diffing of quote greater blocks. 2023-04-15 00:07:20 -04:00
Tom Alexander
313898ea48
Merge branch 'plain_list_fix' 2023-04-15 00:04:18 -04:00
Tom Alexander
412bdcda28
Fix problem with detecting end of plain list item.
The problem is line indented lte does not match because we aren't consuming the whitespace that the plain list would consume.
2023-04-14 23:56:55 -04:00
Tom Alexander
be64eb92af
Ran into a bigger issue. 2023-04-14 20:17:53 -04:00
Tom Alexander
8549a6b0db
Fix case where indentation was causing the plain list item matcher to match items it wouldn't use in other parts. 2023-04-14 19:56:54 -04:00
Tom Alexander
143ac49777
Fix plain list item parser to not consume trailing whitespace on the last element. 2023-04-14 19:32:08 -04:00
Tom Alexander
08fed1301e
Fix plain list parser to not consume trailing whitespace on the last item. 2023-04-14 19:24:05 -04:00
Tom Alexander
665c1d70fb
Add a test case demonstrating an issue. 2023-04-12 15:24:18 -04:00
Tom Alexander
9efc291d28
Add a script to check all sample org-mode documents with the compare program. 2023-04-12 15:03:14 -04:00
Tom Alexander
1a38ca43d6
Update the diff program to use exit code 1 for non-matching diff. 2023-04-12 14:50:56 -04:00
Tom Alexander
05c9ec86b8
Compare plain list items inside plain lists. 2023-04-12 14:07:33 -04:00
Tom Alexander
57f56eb860
Compare footnote definition and greater block bounds. 2023-04-12 13:45:22 -04:00
Tom Alexander
ba9ef7907f
Add a test proving that nested lists are exited by two blank lines. 2023-04-12 13:21:31 -04:00
Tom Alexander
75a47deedd
Compare plain list bounds. 2023-04-12 13:16:25 -04:00
Tom Alexander
f27965001d
End plain lists when there are two blank lines. 2023-04-12 13:09:44 -04:00
Tom Alexander
7d5eb7c6bb
Merge branch 'compare' 2023-04-12 12:20:55 -04:00
Tom Alexander
2a601475fd
Compare children of sections. 2023-04-12 11:46:49 -04:00
Tom Alexander
c4e6549feb
Compare children of heading. 2023-04-12 11:35:02 -04:00
Tom Alexander
4dbf8b9c69
Capture the trailing whitespace for the file as regular trailing whitespace for elements.
This makes our ranges for sections and headlines match up with the emacs org-mode parser for the example at org_mode_samples/sections_and_headings/sections_and_headings.org.
2023-04-12 11:17:21 -04:00
Tom Alexander
a456acd1e9
Do not print the parsed sexp.
These were particularly spammy.
2023-04-11 19:51:20 -04:00
Tom Alexander
52df376553
Calculate bad children on-the-fly. 2023-04-11 19:28:45 -04:00
Tom Alexander
52b401d548
comparing begin and end offsets for top-level sections and headlines. 2023-04-11 19:16:04 -04:00
Tom Alexander
276e8abb13
Pass the source through to child diff status so I can calculate offsets. 2023-04-11 18:34:11 -04:00