Commit Graph

513 Commits

Author SHA1 Message Date
Tom Alexander 54b0ff5036
Check for whitespace eof in exit matcher. 2023-04-10 10:50:42 -04:00
Tom Alexander 137815dbaf
Only use a local context when checking exit matchers.
This prevents context tree from deeper in the parse impacting exit checks for earlier in the parse. This is needed due to the trailing whitespace context element.
2023-04-10 10:49:28 -04:00
Tom Alexander 9a0172e1a4
Add a context element for tracking whether or not elements should consume their trailing whitespace. 2023-04-10 10:36:16 -04:00
Tom Alexander 6813c7c991
Identified the problem as being the handling of the trailing whitespace. 2023-04-10 09:49:24 -04:00
Tom Alexander 9b3fbe6d26
Add footnotes to the test file. 2023-04-07 17:16:12 -04:00
Tom Alexander 716f80b0ec
Add initial implementation of footnote definition. 2023-04-07 17:14:44 -04:00
Tom Alexander d249e7c93e
Merge branch 'greater_block' 2023-04-07 16:20:31 -04:00
Tom Alexander 42fca12e41
Add support for indenting greater blocks. 2023-04-07 16:18:13 -04:00
Tom Alexander ab329f367f
Add an exmaple showing that greater blocks begin can be indented different from end. 2023-04-07 16:14:57 -04:00
Tom Alexander 352532b759
Add an example showing greater blocks can be nested if they are different types. 2023-04-07 16:14:08 -04:00
Tom Alexander 7023fb4617
Add a comment about a shortcoming. 2023-04-03 19:40:20 -04:00
Tom Alexander d7f0a02bb8
Fix plain list ending with another element. 2023-04-03 19:30:17 -04:00
Tom Alexander 9257420c83
Add comment defining problem. 2023-04-03 19:19:33 -04:00
Tom Alexander ddea313401
Ensure the final span is shipped to jaeger before exiting. 2023-04-03 18:57:31 -04:00
Tom Alexander d4887ec311
Disable stdout for traces.
Frankly the stdout traces are pretty useless if you have anything more than the most trivial amount of entries.
2023-04-03 18:52:11 -04:00
Tom Alexander 559f6e6173
Greater block breaking parsing. 2023-04-03 18:44:05 -04:00
Tom Alexander 70225a668b
Do not match lesser blocks. 2023-04-03 18:38:35 -04:00
Tom Alexander 6e6ec56d1f
Basic implementation of greater block parser. 2023-04-03 18:33:07 -04:00
Tom Alexander 9e0bea4c3e
Starting the greater block source. 2023-04-03 17:36:56 -04:00
Tom Alexander 9ad428bb20
Standardize on the children name instead of contents. 2023-04-03 17:33:01 -04:00
Tom Alexander 11f127b545
Minor cleanup. 2023-04-03 17:25:30 -04:00
Tom Alexander 85f9d42677
Merge branch 'paragraph_issue' 2023-04-03 16:38:41 -04:00
Tom Alexander c7c922a4df
Do not allow plain lists to start with an asterisk with no indent. 2023-04-03 16:38:26 -04:00
Tom Alexander b5b335b9b0
Fix handling of whitespace at the end of paragraphs and mandatory whitespace in list items. 2023-04-03 16:30:58 -04:00
Tom Alexander 0e070f2d4c
Merge branch 'plain_list' 2023-04-03 15:15:30 -04:00
Tom Alexander 2d1df18544
Cleanup. 2023-04-03 15:15:16 -04:00
Tom Alexander b65ed28462
Merge branch 'tracing' into plain_list 2023-04-03 15:07:33 -04:00
Tom Alexander 2552ba28d1
Correctly parsing plain list items. 2023-04-03 15:06:12 -04:00
Tom Alexander 942b486078
Add a test file showing lists where the earlier one is indented. 2023-03-31 13:32:07 -04:00
Tom Alexander e681f8fdff
Remove the exit matcher block.
I'm not sure this is a problem, but while I'm debugging I want this removed to be safe.
2023-03-31 13:22:30 -04:00
Tom Alexander 2b0e88dc01
The current problem is plain_list_item_end is not taking into account depth. 2023-03-31 13:08:53 -04:00
Tom Alexander 68156f3667
Consume line break at the end of paragraph. 2023-03-31 11:42:04 -04:00
Tom Alexander 707eac5bf8
Move trailing whitespace parsing to a separate element.
I still need to parse the line break at the end of elements.
2023-03-31 11:16:37 -04:00
Tom Alexander 602cf4c374
Removing regurgitate calls.
This hacky solution ends up with whitespace getting captured twice so I will need to either use context or a separate parser.
2023-03-31 09:54:48 -04:00
Tom Alexander 775e703ade
Not sure whats going on. 2023-03-27 19:19:51 -04:00
Tom Alexander 9545990b52
Regurgitate seems to have made all text a paragraph. 2023-03-27 19:12:20 -04:00
Tom Alexander 3643f91bac
The current problem is whitespace at the end of a list item should not be consumed. 2023-03-27 18:50:25 -04:00
Tom Alexander 3d8fe253c9
Check for exit matcher between elements in a plain list item. 2023-03-27 18:22:08 -04:00
Tom Alexander 2c7a559869
Fix the line break consumption issue.
This leaves us with an issue of lists becoming needlessly nested.
2023-03-27 18:10:14 -04:00
Tom Alexander 028946ec90
Identified the problem.
The issue is plain text is eating the line break so paragraph is failing since it expects a line break at the end.
2023-03-27 18:08:17 -04:00
Tom Alexander e1fbe36297
Exporting traces to jaeger. 2023-03-27 17:06:22 -04:00
Tom Alexander cddefdb963
Remove unnecessary exit matcher check. 2023-03-27 16:53:38 -04:00
Tom Alexander a77d2655bd
Instrument the code. 2023-03-27 16:36:43 -04:00
Tom Alexander 5db4e07c99
Expand the sample text. 2023-03-27 14:03:52 -04:00
Tom Alexander 22a2ed29f1
Integrate plain list parser into the parser tree. 2023-03-27 13:06:41 -04:00
Tom Alexander 81a9a754de
I seem to have solved the infinite loop issue by moving the exit check into the plain list parser. 2023-03-27 12:52:49 -04:00
Tom Alexander e7397f818d
Adding some notes on the exit matcher loop issue. 2023-03-27 12:33:58 -04:00
Tom Alexander 188fdaacbc
Remove dead line of code. 2023-03-27 12:07:40 -04:00
Tom Alexander e7b95ea59c
Add more jaeger commands to the Makefile. 2023-03-25 17:00:56 -04:00
Tom Alexander d2923bfc0f
Add a special case exit matcher for end of file. 2023-03-25 14:45:35 -04:00