Commit Graph

  • 3a3cee337c To pass this test, we need to not allow nesting of elements directly inside themselves. Tom Alexander 2023-04-18 21:47:07 -04:00
  • 09442a0530 Oddly enough emacs is breaking up lines with 🔚 as a separate paragraph when regular letters would get combined. Tom Alexander 2023-04-18 21:41:13 -04:00
  • c9109d1a13 Merge branch 'exit_matcher_priority' Tom Alexander 2023-04-18 21:37:09 -04:00
  • 13a2ba1dc5 Handle greater blocks with only blank space inside them. Tom Alexander 2023-04-18 21:28:22 -04:00
  • 0effc7c087 You can have a block containing only whitespace which gets matched as a paragraph whose value is just a single newline. Tom Alexander 2023-04-18 20:58:25 -04:00
  • a2051aca4f Remove ChainBehavior. Tom Alexander 2023-04-18 20:44:58 -04:00
  • 35eff51d1b First implementation moving over to the new exit matcher class system. Tom Alexander 2023-04-18 20:33:01 -04:00
  • fcd5c7d3cd Add an enum for exit class. Tom Alexander 2023-04-17 21:16:39 -04:00
  • 98a46cd707 More notes. Tom Alexander 2023-04-17 20:53:51 -04:00
  • 5eccc55143 Merge branch 'paragraph_priotity_tests' Tom Alexander 2023-04-17 20:41:24 -04:00
  • dc5fc863f5 Add more paragraph tests. Tom Alexander 2023-04-17 20:40:23 -04:00
  • 867a55fbf7 More paragraph tests. Tom Alexander 2023-04-17 20:33:51 -04:00
  • 4dd18006a5 Add some tests for paragraphs. Tom Alexander 2023-04-17 20:13:07 -04:00
  • 4abff12cdd Merge branch 'drawer' Tom Alexander 2023-04-17 19:54:59 -04:00
  • 8b811bec95 Count pass/fail stats for compare parse script. Tom Alexander 2023-04-17 19:54:33 -04:00
  • 89040c51a6 Update test case 1. Tom Alexander 2023-04-17 19:45:50 -04:00
  • 49be5ae7b1 Identify a mistake in the plain list drawer test. Tom Alexander 2023-04-17 17:29:35 -04:00
  • f1880fdb7d Add plain list first tests. Tom Alexander 2023-04-17 16:41:58 -04:00
  • 16218ec040 Add footnote definition first tests. Tom Alexander 2023-04-16 18:01:47 -04:00
  • 4c4d79a665 Add the dynamic block first tests. Tom Alexander 2023-04-16 17:56:03 -04:00
  • a6036e257e Add the drawer second tests. Tom Alexander 2023-04-16 17:50:16 -04:00
  • beff8f8999 Add the drawer first tests. Tom Alexander 2023-04-16 17:41:14 -04:00
  • ed6fda9918 Add the greater block second tests. Tom Alexander 2023-04-16 17:33:33 -04:00
  • 6da7cb2c17 Add greater block first tests. Tom Alexander 2023-04-16 17:18:41 -04:00
  • e20bd793be Include comment about section-first and section-second tests. Tom Alexander 2023-04-16 17:08:56 -04:00
  • 70596dc27b Add all the section-first tests. Tom Alexander 2023-04-16 17:06:08 -04:00
  • f41197b096 Add the first test. Tom Alexander 2023-04-16 16:55:53 -04:00
  • d155ca1027 Set up an experiment for figuring out exit matcher priority. Tom Alexander 2023-04-16 16:48:22 -04:00
  • 0be554bfb6 Add an example of headlines breaking a drawer. Tom Alexander 2023-04-16 15:55:39 -04:00
  • 31f6914194 Add code to compare drawers. Tom Alexander 2023-04-15 18:00:34 -04:00
  • 9e4bf553d3 First attempt at implementing drawers. Tom Alexander 2023-04-15 17:56:07 -04:00
  • 1f7c24545b Initial structure for drawer. Tom Alexander 2023-04-15 17:36:07 -04:00
  • ea74e329b2 Merge branch 'comment' Tom Alexander 2023-04-15 17:10:00 -04:00
  • 50d05b99be Require space after hash in comment if comment line is not empty. Tom Alexander 2023-04-15 17:08:22 -04:00
  • 6e4aa38fce Add test demonstrating problem. Tom Alexander 2023-04-15 17:04:47 -04:00
  • 4e460e4a8c Consume line ending in comments. Tom Alexander 2023-04-15 16:59:30 -04:00
  • 33bc1af17d First stab at implementing comments. Tom Alexander 2023-04-15 16:53:58 -04:00
  • d1a7d0b835 Show that trailing whitespace belongs to comments. Tom Alexander 2023-04-15 16:37:25 -04:00
  • 26e0ad5800 Add an example exploring indentation with comments. Tom Alexander 2023-04-15 16:34:33 -04:00
  • 1b10b197f2 Initial structure for adding support for comments. Tom Alexander 2023-04-15 16:31:38 -04:00
  • cfcf6443ca Added example org-mode file with comments. Tom Alexander 2023-04-15 16:27:28 -04:00
  • 965c5dd15f Add diffing of quote greater blocks. Tom Alexander 2023-04-15 00:07:20 -04:00
  • 313898ea48 Merge branch 'plain_list_fix' Tom Alexander 2023-04-15 00:04:18 -04:00
  • 412bdcda28 Fix problem with detecting end of plain list item. Tom Alexander 2023-04-14 23:56:55 -04:00
  • be64eb92af Ran into a bigger issue. Tom Alexander 2023-04-14 20:17:53 -04:00
  • 8549a6b0db Fix case where indentation was causing the plain list item matcher to match items it wouldn't use in other parts. Tom Alexander 2023-04-14 19:56:54 -04:00
  • 143ac49777 Fix plain list item parser to not consume trailing whitespace on the last element. Tom Alexander 2023-04-14 19:32:08 -04:00
  • 08fed1301e Fix plain list parser to not consume trailing whitespace on the last item. Tom Alexander 2023-04-14 19:24:05 -04:00
  • 665c1d70fb Add a test case demonstrating an issue. Tom Alexander 2023-04-12 15:24:18 -04:00
  • 9efc291d28 Add a script to check all sample org-mode documents with the compare program. Tom Alexander 2023-04-12 15:03:14 -04:00
  • 1a38ca43d6 Update the diff program to use exit code 1 for non-matching diff. Tom Alexander 2023-04-12 14:50:56 -04:00
  • 05c9ec86b8 Compare plain list items inside plain lists. Tom Alexander 2023-04-12 14:07:33 -04:00
  • 57f56eb860 Compare footnote definition and greater block bounds. Tom Alexander 2023-04-12 13:45:22 -04:00
  • ba9ef7907f Add a test proving that nested lists are exited by two blank lines. Tom Alexander 2023-04-12 13:21:31 -04:00
  • 75a47deedd Compare plain list bounds. Tom Alexander 2023-04-12 13:16:25 -04:00
  • f27965001d End plain lists when there are two blank lines. Tom Alexander 2023-04-12 13:09:44 -04:00
  • 7d5eb7c6bb Merge branch 'compare' Tom Alexander 2023-04-12 12:20:55 -04:00
  • 2a601475fd Compare children of sections. Tom Alexander 2023-04-12 11:46:49 -04:00
  • c4e6549feb Compare children of heading. Tom Alexander 2023-04-12 11:35:02 -04:00
  • 4dbf8b9c69 Capture the trailing whitespace for the file as regular trailing whitespace for elements. Tom Alexander 2023-04-12 11:17:21 -04:00
  • a456acd1e9 Do not print the parsed sexp. Tom Alexander 2023-04-11 19:51:20 -04:00
  • 52df376553 Calculate bad children on-the-fly. Tom Alexander 2023-04-11 19:22:42 -04:00
  • 52b401d548 comparing begin and end offsets for top-level sections and headlines. Tom Alexander 2023-04-11 19:16:04 -04:00
  • 276e8abb13 Pass the source through to child diff status so I can calculate offsets. Tom Alexander 2023-04-11 18:34:11 -04:00
  • 6e62bd5ff2 Initial return and printing of tree diff output. Tom Alexander 2023-04-11 18:27:01 -04:00
  • be2d0141a5 Iterate over argv for file paths. Tom Alexander 2023-04-11 17:41:23 -04:00
  • 287cc8dea3 Just barely starting to diff the two parsed forms. Tom Alexander 2023-04-11 17:35:09 -04:00
  • 5305ae7627 Fix ending atoms at end of list. Tom Alexander 2023-04-11 16:28:56 -04:00
  • 8df02fa8b9 Handle text with properties. Tom Alexander 2023-04-11 16:02:57 -04:00
  • 3bdb1e3841 Beginning of handling quoted strings. Tom Alexander 2023-04-11 15:23:16 -04:00
  • 5d7ca1b966 Fix handling of whitespace. Tom Alexander 2023-04-11 15:08:46 -04:00
  • 751a3beffd Implement a very basic first stab at lisp parser. Tom Alexander 2023-04-11 14:50:37 -04:00
  • 96d2cc7c6a Dump the elisp when running compare. Tom Alexander 2023-04-10 14:28:40 -04:00
  • 552ac974d5 Initial setup for a separate compare target. Tom Alexander 2023-04-10 13:45:36 -04:00
  • e59d1b8fde Add a feature for compare. Tom Alexander 2023-04-10 13:38:31 -04:00
  • e5f08beaca Merge branch 'footnote_definition' Tom Alexander 2023-04-10 13:34:08 -04:00
  • 4c920b9d3c Add an example showing footnote definitions and their associated trailing whitespace. Tom Alexander 2023-04-10 13:19:30 -04:00
  • 1ecdd61fed Do not consume trailing whitespace if the parent exit matcher is matching. Tom Alexander 2023-04-10 13:13:11 -04:00
  • 895ee9f3b6 Add a test showing the footnote exit matcher is not handling multiple blank lines properly. Tom Alexander 2023-04-10 12:16:49 -04:00
  • 6fdd613bed Cleanup. Tom Alexander 2023-04-10 12:13:31 -04:00
  • 9c832053d4 Remove parent exit matcher check from section. Tom Alexander 2023-04-10 12:08:03 -04:00
  • ea753ad33c Fix footnote definition end matcher to use trailing whitespace. Tom Alexander 2023-04-10 12:03:01 -04:00
  • 6578ddc100 Add a test for footnote definition. Tom Alexander 2023-04-10 11:54:05 -04:00
  • e5bc4cb14b Footnote definitions are parsing on their own. Tom Alexander 2023-04-10 11:50:43 -04:00
  • 45db182421 Add comment about why we are not checking the parent exit matcher in paragraph. Tom Alexander 2023-04-10 11:34:29 -04:00
  • df9265c2af Updated paragraph to handle the new consumption of trailing whitespace. Tom Alexander 2023-04-10 11:29:14 -04:00
  • e417e86bd4 Add a simple test for paragraphs. Tom Alexander 2023-04-10 11:24:04 -04:00
  • 204f319a92 Simplify headline_end and section_end now that eof is a special case. Tom Alexander 2023-04-10 11:17:55 -04:00
  • cbe7ef4030 Update the section parser to handle the new whitespace-included element parsers. Tom Alexander 2023-04-10 11:16:32 -04:00
  • 54b0ff5036 Check for whitespace eof in exit matcher. Tom Alexander 2023-04-10 10:50:42 -04:00
  • 137815dbaf Only use a local context when checking exit matchers. Tom Alexander 2023-04-10 10:49:28 -04:00
  • 9a0172e1a4 Add a context element for tracking whether or not elements should consume their trailing whitespace. Tom Alexander 2023-04-10 10:36:16 -04:00
  • 6813c7c991 Identified the problem as being the handling of the trailing whitespace. Tom Alexander 2023-04-10 09:49:24 -04:00
  • 9b3fbe6d26 Add footnotes to the test file. Tom Alexander 2023-04-07 17:16:12 -04:00
  • 716f80b0ec Add initial implementation of footnote definition. Tom Alexander 2023-04-07 17:14:44 -04:00
  • d249e7c93e Merge branch 'greater_block' Tom Alexander 2023-04-07 16:20:31 -04:00
  • 42fca12e41 Add support for indenting greater blocks. Tom Alexander 2023-04-07 16:18:13 -04:00
  • ab329f367f Add an exmaple showing that greater blocks begin can be indented different from end. Tom Alexander 2023-04-07 16:14:57 -04:00
  • 352532b759 Add an example showing greater blocks can be nested if they are different types. Tom Alexander 2023-04-07 16:14:08 -04:00
  • 7023fb4617 Add a comment about a shortcoming. Tom Alexander 2023-04-03 19:37:51 -04:00