Tom Alexander
0d579263cb
Remove affiliated keyword non-exit for paragraph.
2023-10-12 14:07:57 -04:00
Tom Alexander
9523365090
Update all elements to the new AffiliatedKeywords.
2023-10-11 14:44:25 -04:00
Tom Alexander
ee1d8ca321
Text markup uses confine context.
2023-10-09 20:36:38 -04:00
Tom Alexander
df4daa0e16
Do not include context in tracing.
2023-10-09 18:02:36 -04:00
Tom Alexander
13b95cd0a1
Fix handling of text markup at the start/end of regular link descriptions and radio targets.
2023-10-09 18:02:36 -04:00
Tom Alexander
6bd8d9efd7
Cleanup.
2023-10-05 04:04:18 -04:00
Tom Alexander
da2d7535e8
Add synonyms for name.
2023-10-05 00:30:33 -04:00
Tom Alexander
1351577c5a
Fix handling affiliated keywords before invalid paragraphs.
2023-10-04 23:40:38 -04:00
Tom Alexander
b82d4c0eca
Fix finding name keyword in affiliated keywords list.
2023-10-04 21:32:10 -04:00
Tom Alexander
5b308ea76f
Implement a function to read the name from the affiliated keywords.
2023-10-04 21:12:06 -04:00
Tom Alexander
c1de001786
Require a space after colon instead of tab for fixed width area.
2023-09-19 20:22:29 -04:00
Tom Alexander
d443dbd468
Introduce the tab_width setting and give tabs a greater value when counting indentation level.
2023-09-15 21:59:48 -04:00
Tom Alexander
c9ce32c881
Remve redundant org_spaces functions.
...
Turns out the nom space0/space1 parsers accept tab characters already.
2023-09-15 21:28:40 -04:00
Tom Alexander
44e9f708c9
Handle the possibility of a title-less headline.
2023-09-14 02:01:24 -04:00
Tom Alexander
84953c1669
Put back in needed pubs.
2023-09-11 14:59:23 -04:00
Tom Alexander
7650a9edff
Remove all pub.
2023-09-11 13:11:08 -04:00
Tom Alexander
21c60d1036
Do not consume trailing whitespace on the footnote definition's final element.
2023-09-08 21:30:03 -04:00
Tom Alexander
a8fbf01124
Handle tabs for plain list descriptions.
...
This bug probably exists in hundreds of places across the code base. I am going to have to write a "fuzzer" that replaces random whitespace with tabs to find them all.
2023-09-08 20:02:49 -04:00
Tom Alexander
ceb722e476
Check exit matcher after each space consumed for object trailing whitespace.
...
Since description list tags need to end with a space unconsumed for " ::", we need to check the exit matcher after each space consumed.
2023-09-08 19:38:49 -04:00
Tom Alexander
b0930df788
Support zero skipped text in OrgSource slicing.
2023-09-07 04:16:00 -04:00
Tom Alexander
ba291c6776
Unify two places checking if text was preceded by whitespace.
2023-09-07 04:16:00 -04:00
Tom Alexander
6b82b46e09
Prevent nesting of text markup of the same type.
...
This greatly reduces the amount of detect element calls that are occurring.
2023-09-07 04:15:59 -04:00
Tom Alexander
3fc3a5d1ef
Add support for empty lesser blocks.
2023-09-06 18:11:57 -04:00
Tom Alexander
728a79f9a4
Handle zero-width space in text markup.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rustfmt Build rustfmt has succeeded
2023-09-06 13:56:27 -04:00
Tom Alexander
df79cbd0b7
Give global options their own lifetime.
2023-09-03 16:22:40 -04:00
Tom Alexander
b54c6d366c
Fixing more errors.
2023-09-03 00:27:50 -04:00
Tom Alexander
74a6101de7
Update RefContext to three lifetimes.
2023-09-02 22:45:46 -04:00
Tom Alexander
0d728510d7
Implement iterator for context.
2023-09-02 20:46:17 -04:00
Tom Alexander
564104f1e8
Switch to RefContext.
2023-09-02 19:16:44 -04:00
Tom Alexander
eabffe5ecc
Move over the rest of the types.
2023-09-02 19:08:01 -04:00
Tom Alexander
466716881e
Fix macros consuming whitespace even when the exit matcher is calling for an exit.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-08-31 15:11:29 -04:00
Tom Alexander
f21385a901
Add a helper function for logging during debugging.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-08-29 14:03:14 -04:00
Tom Alexander
cf37bc4111
Remove unnecessary context from some util functions.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-08-24 19:29:00 -04:00
Tom Alexander
e5224cda63
Removing dead code.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-08-24 18:40:25 -04:00
Tom Alexander
64e3481660
Update get_consumed to use the new wrapped input type.
2023-08-24 18:33:40 -04:00
Tom Alexander
e84e2b5147
Update tests to compile again.
2023-08-24 17:15:24 -04:00
Tom Alexander
720afa5d32
Update getting the previous character and previous line.
...
This can be done a lot more efficiently now that we are keeping track of this information in the wrapped input type instead of having to fetch to the original document out of the context tree.
2023-08-24 16:56:07 -04:00
Tom Alexander
dab598e5e7
Convert all functions to using the wrapped input type.
rust-test Build rust-test has failed
rust-build Build rust-build has failed
2023-08-24 16:06:29 -04:00
Tom Alexander
6d1675fa00
Lifetime issue.
2023-08-22 22:57:44 -04:00
Tom Alexander
cd1b4ba785
Make the tracing macros optional.
2023-08-10 20:22:34 -04:00
Tom Alexander
5c1d913c99
Check that the preceding line for a line break is non-empty.
2023-07-22 00:43:02 -04:00
Tom Alexander
ec889bc868
Clean up old unused code.
2023-04-24 20:25:49 -04:00
Tom Alexander
a5585eb01f
Add a not yet implemented function.
...
This helps when creating new parsers since todo!()s will panic the whole parser.
2023-04-24 20:11:13 -04:00
Tom Alexander
9968aedd74
Make sure text markup doesn't have interior spaces.
2023-04-22 22:34:37 -04:00
Tom Alexander
f964481544
Switch to using plain text with no additional exit matcher added.
2023-04-22 22:06:34 -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
1ecdd61fed
Do not consume trailing whitespace if the parent exit matcher is matching.
2023-04-10 13:13:11 -04:00
Tom Alexander
e5bc4cb14b
Footnote definitions are parsing on their own.
2023-04-10 11:50:43 -04:00