Tom Alexander
|
1ab7d2f2d7
|
Add a test showing we are not handling exports flags properly.
|
2023-10-04 17:32:51 -04:00 |
|
Tom Alexander
|
a548c7e170
|
Exclude language from the switches property.
|
2023-10-04 17:11:13 -04:00 |
|
Tom Alexander
|
b556f4617f
|
Add src block properties.
These are largely the same as example blocks but with a :language property.
|
2023-10-04 16:58:45 -04:00 |
|
Tom Alexander
|
13163f2468
|
Retain labels stays a boolean without -r.
|
2023-10-04 16:37:15 -04:00 |
|
Tom Alexander
|
da5dcd4c1b
|
Support multiple commas when escaping lines.
|
2023-10-04 16:03:45 -04:00 |
|
Tom Alexander
|
bcade66e68
|
Retain labels is actually either a boolean or a number.
|
2023-10-04 15:43:09 -04:00 |
|
Tom Alexander
|
301a6db83e
|
Fix retain labels.
This is a numeric value based on the character offset of -k from the beginning of the switches.
|
2023-10-04 15:21:27 -04:00 |
|
Tom Alexander
|
32da06776c
|
Handle matching no switches.
|
2023-10-04 15:21:27 -04:00 |
|
Tom Alexander
|
169bf69f5e
|
Preserve the leading whitespace before an escape.
|
2023-10-04 15:21:27 -04:00 |
|
Tom Alexander
|
7ee48ff65c
|
Switch to handling the unescaping during the initial parsing.
This preserves the line ending characters unlike the rust .lines() iterator.
|
2023-10-04 15:21:27 -04:00 |
|
Tom Alexander
|
b56d847cfa
|
Compare label format, retain labels, and use labels.
|
2023-10-04 15:21:27 -04:00 |
|
Tom Alexander
|
1503054994
|
Make an argument for the line number switch optional.
|
2023-10-04 11:46:02 -04:00 |
|
Tom Alexander
|
03028889bd
|
Fix capturing trailing whitespace for switches.
|
2023-10-04 11:34:01 -04:00 |
|
Tom Alexander
|
317293f0f2
|
Extract the line number from the switches.
|
2023-10-04 11:31:45 -04:00 |
|
Tom Alexander
|
3d7f411cf9
|
Compare number lines for example blocks.
|
2023-10-04 10:31:01 -04:00 |
|
Tom Alexander
|
1d7770e590
|
Rename data to switches in example and src block.
|
2023-10-04 09:59:11 -04:00 |
|
Tom Alexander
|
4cdf88a632
|
Switches are not stored for comment blocks, but they are allowed to appear.
|
2023-10-04 09:51:28 -04:00 |
|
Tom Alexander
|
f7690ff64b
|
Remove an allocation for lesser block end.
|
2023-09-22 00:55:10 -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
|
c4d7e646fc
|
Support spaces after the end of a lesser block.
|
2023-09-06 18:54:01 -04:00 |
|
Tom Alexander
|
84edd10864
|
Change lesser block exit class to Alpha.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rustfmt Build rustfmt has succeeded
When an example block is nested inside a list, this change allows for the contents of the example block to be on lines less indented than before.
|
2023-09-06 14:14:02 -04:00 |
|
Tom Alexander
|
df79cbd0b7
|
Give global options their own lifetime.
|
2023-09-03 16:22:40 -04:00 |
|
Tom Alexander
|
0b009511ff
|
Fixing more errors.
|
2023-09-03 12:28:45 -04:00 |
|
Tom Alexander
|
cd69e08516
|
Fixing more errors.
|
2023-09-03 11:05:34 -04:00 |
|
Tom Alexander
|
74a6101de7
|
Update RefContext to three lifetimes.
|
2023-09-02 22:45:46 -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
|
ae3510abd5
|
Do not cast lesser block name to lowercase at runtime.
This reduced the runtime of my problematic test case from 6.9 seconds to 6 seconds.
|
2023-08-24 20:10:43 -04:00 |
|
fluxcdbot
|
ad3f47864a
|
CI: autofix rust code.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has failed
|
2023-08-24 23:43:41 +00: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
|
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
|
a7b298eeec
|
Fix lesser block exit priority.
The paragraph end was matching text inside lesser blocks.
|
2023-08-14 17:32:10 -04:00 |
|
Tom Alexander
|
1bbfbc3164
|
Add additional tracing to lesser block.
|
2023-08-14 17:32:09 -04:00 |
|
Tom Alexander
|
cd1b4ba785
|
Make the tracing macros optional.
|
2023-08-10 20:22:34 -04:00 |
|
Tom Alexander
|
1044625acb
|
Clean up import.
|
2023-04-22 22:58:10 -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
|
0b989b53a6
|
Fix warnings.
|
2023-04-21 23:55:18 -04:00 |
|
Tom Alexander
|
e97cf6630f
|
Move consuming the trailing whitespace up to the element matchers.
|
2023-04-21 23:54:54 -04:00 |
|
Tom Alexander
|
18323a2b43
|
Solve the rest of the compiler warnings.
|
2023-04-21 18:42:31 -04:00 |
|
Tom Alexander
|
a1724dae52
|
Combine the error types.
|
2023-04-21 18:36:01 -04:00 |
|
Tom Alexander
|
6fce666983
|
Add test case for invalid src block.
|
2023-04-21 18:13:23 -04:00 |
|
Tom Alexander
|
cdcaae11c4
|
Add tests for broken export blocks.
|
2023-04-21 18:11:26 -04:00 |
|
Tom Alexander
|
fa4766b64e
|
Add comments about data parameter in lesser blocks.
|
2023-04-21 18:08:10 -04:00 |
|
Tom Alexander
|
1006576a69
|
Modernize the verse block parser.
|
2023-04-21 18:01:06 -04:00 |
|
Tom Alexander
|
dbb04dcba6
|
Defining new structs for each type of lesser block.
|
2023-04-21 17:55:10 -04:00 |
|
Tom Alexander
|
cf6c4bc122
|
Write a parser specifically for comment lesser blocks.
|
2023-04-21 17:32:53 -04:00 |
|
Tom Alexander
|
86e0833033
|
Make the end check work with multiple block names using allocation.
|
2023-04-21 17:16:57 -04:00 |
|