Commit Graph

33 Commits

Author SHA1 Message Date
Tom Alexander
23d587c699 Implement parser for subscript/superscript with braces. 2023-07-24 16:29:31 -04:00
Tom Alexander
e8979513aa Implement parser for inline source blocks. 2023-07-21 22:51:19 -04:00
Tom Alexander
45b01012b3 Implement the parser for inline babel calls. 2023-07-21 21:39:53 -04:00
Tom Alexander
339ff5cd26 Implement key parser and begin key_suffix parser. 2023-07-20 01:13:49 -04:00
Tom Alexander
5fb66a586d Implement a function to detect the end of a footnote reference definition with balanced brackets. 2023-07-19 20:52:09 -04:00
Tom Alexander
bd04451d58 Implement the second parsing pass. 2023-07-14 19:06:58 -04:00
Tom Alexander
3fc3ba58aa Defining the RadioTarget context element. 2023-07-14 12:28:52 -04:00
Tom Alexander
0ca6ce504f Simulate trailing whitespace in empty greater blocks just like drawers. 2023-04-22 21:45:18 -04:00
Tom Alexander
a1724dae52 Combine the error types. 2023-04-21 18:36:01 -04:00
Tom Alexander
04dfffc000 Cleaning up compiler warnings. 2023-04-21 18:22:17 -04:00
Tom Alexander
c75f4ebcff Format the code. 2023-04-21 14:35:34 -04:00
Tom Alexander
a2051aca4f Remove ChainBehavior. 2023-04-18 20:44:58 -04:00
Tom Alexander
35eff51d1b First implementation moving over to the new exit matcher class system. 2023-04-18 20:33:01 -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
6fdd613bed Cleanup. 2023-04-10 12:13:31 -04:00
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
6e6ec56d1f Basic implementation of greater block parser. 2023-04-03 18:33:07 -04:00
Tom Alexander
2d1df18544 Cleanup. 2023-04-03 15:15:16 -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
3d8fe253c9 Check for exit matcher between elements in a plain list item. 2023-03-27 18:22:08 -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
d2923bfc0f Add a special case exit matcher for end of file. 2023-03-25 14:45:35 -04:00
Tom Alexander
e6752b9d83 Building the plain list item context. 2023-03-25 14:10:22 -04:00
Tom Alexander
e3f6dd497a Test cases showing headings handling nesting properly. 2023-03-25 12:01:50 -04:00
Tom Alexander
5c8a064eca Start writing the parser for headings. 2023-03-23 19:35:32 -04:00
Tom Alexander
36210c2d7f Add a DocumentRoot context element storing the original full document.
This might be used for look-behind instead of storing previous element nodes in the context tree.
2023-03-23 16:40:39 -04:00
Tom Alexander
f060e7189b Minor cleanup. 2023-03-23 14:13:21 -04:00
Tom Alexander
cee12b7512 Allow IgnoreParent to be dead code. 2023-03-21 13:44:22 -04:00
Tom Alexander
88c974f8e4 Record the list item indent depth in the context tree. 2023-03-18 13:26:35 -04:00
Tom Alexander
46672b40b2 Cleanup. 2022-12-18 03:04:31 -05:00
Tom Alexander
6352f92ebc Rename nom context to parser context. 2022-12-18 02:16:28 -05:00