Tom Alexander
84b8ddb582
Merge branch 'add_jump_to_line_number'
2025-02-01 21:55:43 -05:00
Tom Alexander
113bb5888a
Add a test with a tramp link.
rust-test Build rust-test has started
format Build format has succeeded
clippy Build clippy has failed
2025-02-01 19:19:05 -05:00
Tom Alexander
bf5fe6920b
Add a test for jump to line number.
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has failed
2025-02-01 18:42:10 -05:00
Tom Alexander
4b52ed0d2a
Fix clippy lint.
format Build format has succeeded
clippy Build clippy has failed
foreign-document-test Build foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2024-10-21 00:25:45 -04:00
Tom Alexander
d2c558ccfa
Merge branch 'buildkit'
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has succeeded
foreign-document-test Build foreign-document-test has succeeded
2024-10-21 00:13:02 -04:00
Tom Alexander
a01f78b510
Update dockerfiles to take advantage of BuildKit.
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has succeeded
2024-10-20 23:13:07 -04:00
Tom Alexander
d80b473fae
Switch to using BuiltKit instead of Kaniko to build docker images.
2024-10-20 22:55:22 -04:00
Tom Alexander
e6b4bc3d94
Merge branch 'webhook_bridge'
format Build format has succeeded
clippy Build clippy has succeeded
foreign-document-test Build foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2024-09-30 17:34:52 -04:00
Tom Alexander
c6cde8db74
Switch to using webhook_bridge instead of lighthouse for triggering the CI.
2024-09-30 17:33:54 -04:00
Tom Alexander
841a348dd0
Publish version 0.1.16.
format Build format has succeeded
rust-test Build rust-test has succeeded
build-organic Build build-organic has succeeded
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2024-04-11 21:34:22 -04:00
Tom Alexander
b46fae331b
Fix clippy errors.
format Build format has succeeded
clippy Build clippy has succeeded
build-organic Build build-organic has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2024-04-11 21:03:50 -04:00
Tom Alexander
7223e08df3
Merge branch 'fix_docker'
format Build format has failed
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
build-organic Build build-organic has succeeded
2024-04-11 20:24:06 -04:00
Tom Alexander
8321f83dac
Inline the foreign document test.
2024-04-11 20:21:50 -04:00
Tom Alexander
bd441a0293
Serialize the build job to try to reduce disruption on the cluster.
rust-test Build rust-test has failed
format Build format has succeeded
clippy Build clippy has failed
build-organic Build build-organic has succeeded
2024-04-10 23:41:47 -04:00
Tom Alexander
f5a07e0d70
Reduce memory requests to make builds less disruptive.
rust-test Build rust-test has failed
format Build format has succeeded
clippy Build clippy has failed
build-organic Build build-organic has succeeded
2024-04-10 23:25:06 -04:00
Tom Alexander
9d750ed5e1
Fix workflows for new targets.
rust-test Build rust-test has failed
format Build format has succeeded
clippy Build clippy has failed
build-organic Build build-organic has succeeded
2024-04-10 22:48:04 -04:00
Tom Alexander
9f111fe445
Rework the makefiles.
clippy Build clippy has failed
build-organic Build build-organic has failed
format Build format has failed
2024-04-10 20:48:11 -04:00
Tom Alexander
a4e433dab1
Inline build pipeline.
2024-04-06 21:44:54 -04:00
Tom Alexander
4e9f1e4fac
Inline the format pipeline.
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
rust-build Build rust-build has failed
format Build format has succeeded
clippy Build clippy has failed
2024-04-06 12:00:07 -04:00
Tom Alexander
4dee130873
Add cranelift.
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has failed
clippy Build clippy has failed
2024-04-06 11:45:28 -04:00
Tom Alexander
8e712532e1
Add a organic_development image.
...
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
rust-build Build rust-build has failed
clippy Build clippy has failed
This image will be shared by CI jobs rather than having a separate image for each, mirroring the developments I've done in natter.
2024-04-06 11:39:47 -04:00
Tom Alexander
4b85236c5f
Inline clippy pipeline spec.
clippy Build clippy has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
2024-04-06 11:17:54 -04:00
Tom Alexander
66f003e6fd
Update docker images to latest alpine.
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
clippy Build clippy has failed
rust-build Build rust-build has failed
2024-04-06 10:25:22 -04:00
Tom Alexander
b35a2d5f5a
Fix debug assert.
rustfmt Build rustfmt has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
clippy Build clippy has failed
rust-build Build rust-build has failed
2024-04-06 10:12:06 -04:00
Tom Alexander
320b5f8568
Publish version 0.1.15.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2024-01-28 17:12:45 -05:00
Tom Alexander
99b2af6c99
Fix clippy.
2024-01-28 17:11:18 -05:00
Tom Alexander
6e71acdb7d
Update README.
clippy Build clippy has failed
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2024-01-28 14:25:57 -05:00
Tom Alexander
8406d37991
Switch to using JSON for wasm.
...
rust-build Build rust-build has failed
clippy Build clippy has failed
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
serde_wasm_bindgen was silently dropping many attributes (I suspect it is triggered by serde flatten) so this switches to serializing to JSON for passing values from wasm to js.
2024-01-27 16:13:17 -05:00
Tom Alexander
64bb597908
Build bundler wasm target by default.
2024-01-26 21:17:40 -05:00
Tom Alexander
068864ea87
Publish version 0.1.14.
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2024-01-03 23:59:51 -05:00
Tom Alexander
03a3ddbd63
Merge branch 'wasm'
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2024-01-03 23:56:35 -05:00
Tom Alexander
122adee23b
Hide the wasm module.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2024-01-03 23:38:04 -05:00
Tom Alexander
556afecbb8
Hide the util module.
2024-01-03 23:04:47 -05:00
Tom Alexander
e4407cbdd1
Hide the event_count module.
...
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
By placing the code for the parse executable inside a module inside the organic library, we only need to expose the entrypoint publicly rather than all functions it calls. This hides the event_count module, but I will be expanding the practice to the rest of the code base shortly. This is important for not inadvertently promising stability w.r.t. semver for essentially internal functions for development tools.
It was the parse binary, not compare.
2024-01-03 21:17:44 -05:00
Tom Alexander
f57d60dab0
Add a doc target to the Makefile.
2024-01-03 19:55:22 -05:00
Tom Alexander
0aa3939a75
Format.
2024-01-01 18:34:10 -05:00
Tom Alexander
52cb81e75e
Cleanup.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-31 12:02:02 -05:00
Tom Alexander
945121202d
Remove wasm_test's dependency on compare module.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-31 11:11:25 -05:00
Tom Alexander
f4e0dddd9d
Fix clippy.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-30 23:14:40 -05:00
Tom Alexander
6b62176fd0
Run cargo fix.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-30 22:22:32 -05:00
Tom Alexander
44483b4d54
Break util up into modules.
2023-12-30 22:19:16 -05:00
Tom Alexander
48d3de77fe
Move elisp fact to util.
2023-12-30 21:37:25 -05:00
Tom Alexander
680b176501
Fix src block value.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has succeeded
2023-12-30 21:30:08 -05:00
Tom Alexander
dc0338e978
Handle nil in object tree.
2023-12-30 21:28:25 -05:00
Tom Alexander
ff3e0a50af
Implement dynamic block.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-30 20:56:35 -05:00
Tom Alexander
03c8c07fe0
Implement quote block.
2023-12-30 20:53:20 -05:00
Tom Alexander
3a6fc5b669
Support noop on all token types.
2023-12-30 20:50:28 -05:00
Tom Alexander
d258cdb839
Support null vs noop comparison.
2023-12-30 20:47:17 -05:00
Tom Alexander
aa5629354e
Implement special block.
2023-12-30 20:43:01 -05:00
Tom Alexander
efc4a04829
Implement center block.
2023-12-30 20:38:08 -05:00
Tom Alexander
dd611ea64a
Fix plain list item.
2023-12-30 20:35:27 -05:00
Tom Alexander
4bd5f3bec7
Implement node property.
2023-12-30 19:01:07 -05:00
Tom Alexander
c2b3509b6a
Implement property drawer.
2023-12-30 18:59:52 -05:00
Tom Alexander
7f3f5fb889
Implement table cell.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-30 18:52:52 -05:00
Tom Alexander
e0fbf17226
Implement table row.
2023-12-30 18:52:51 -05:00
Tom Alexander
4e18cbafba
Implement table.
2023-12-30 18:52:51 -05:00
Tom Alexander
46c36d7f3e
Implement babel call.
2023-12-30 18:15:58 -05:00
Tom Alexander
c46a935cfc
Implement clock.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-30 18:12:09 -05:00
Tom Alexander
f50415cb32
Implement drawer.
2023-12-30 18:05:46 -05:00
Tom Alexander
4f1a151e97
Implement diary sexp.
2023-12-30 18:03:57 -05:00
Tom Alexander
c8e3fdba51
Implement horizontal rule.
2023-12-30 18:02:38 -05:00
Tom Alexander
4b3fc20c62
Fix order of reading optional pair values from elisp.
2023-12-30 18:00:26 -05:00
Tom Alexander
3131f8ac64
Implement example block and export block.
2023-12-30 17:55:56 -05:00
Tom Alexander
60a4835590
Implement comment block.
2023-12-30 17:44:32 -05:00
Tom Alexander
172d72aa46
Implement src block.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-30 17:40:15 -05:00
Tom Alexander
b4fcc6500b
Implement verse block.
2023-12-30 16:47:24 -05:00
Tom Alexander
ddb6f31562
Implement angle link.
2023-12-30 16:41:55 -05:00
Tom Alexander
dc080b30fc
Implement citation reference.
2023-12-30 16:35:01 -05:00
Tom Alexander
9901e17437
Implement citation.
2023-12-30 16:33:02 -05:00
Tom Alexander
ea000894f0
Implement entity.
2023-12-30 16:24:51 -05:00
Tom Alexander
e7742b529a
Implement export snippet.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-30 16:18:08 -05:00
Tom Alexander
8eba0c4923
Implement footnote definition.
2023-12-30 16:13:54 -05:00
Tom Alexander
e0c0070a13
Implement footnote reference.
2023-12-30 16:05:41 -05:00
Tom Alexander
65ce116998
Implement inline babel call.
2023-12-30 15:52:48 -05:00
Tom Alexander
e348e7d4e3
Implement inline source block.
2023-12-30 13:13:35 -05:00
Tom Alexander
492090470c
Implement latex environment.
2023-12-30 13:07:16 -05:00
Tom Alexander
3ec900c8df
Implement latex fragment.
clippy Build clippy has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has failed
2023-12-30 13:00:07 -05:00
Tom Alexander
d0a008ed22
Implement org macro.
2023-12-30 13:00:07 -05:00
Tom Alexander
f2292f1c07
Implement target.
2023-12-30 12:22:23 -05:00
Tom Alexander
44392cfcca
Implement radio target.
2023-12-30 12:17:04 -05:00
Tom Alexander
110630d230
Implement radio link and regular link.
2023-12-30 12:14:03 -05:00
Tom Alexander
ebe12d96c1
Implement subscript and superscript.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-29 23:46:47 -05:00
Tom Alexander
24c8ac8e21
Implement all the text markup.
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
clippy Build clippy has failed
2023-12-29 23:41:15 -05:00
Tom Alexander
259ad6e242
Implement line break.
2023-12-29 23:27:37 -05:00
Tom Alexander
dd1f7c7777
Support a no-op for headline pre-blank.
clippy Build clippy has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has failed
2023-12-29 23:21:30 -05:00
Tom Alexander
c1b471208d
Implement plain list item.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-29 23:06:45 -05:00
Tom Alexander
606bab9e6d
Fix handling of optval.
2023-12-29 22:58:32 -05:00
Tom Alexander
0edf5620a2
Implement plain list.
2023-12-29 22:04:34 -05:00
Tom Alexander
cdf87641c5
Implement comment.
2023-12-29 21:59:45 -05:00
Tom Alexander
eb2995dd3b
Support list with empty string as only element for empty list.
2023-12-29 21:56:31 -05:00
Tom Alexander
cd6a64c015
Implement keyword.
2023-12-29 21:36:52 -05:00
Tom Alexander
a4a83d047d
Fix node name getting chopped off.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-12-29 21:33:17 -05:00
Tom Alexander
a4414369ce
Remove unnecessary additional properties in the already-implemented types.
2023-12-29 21:04:31 -05:00
Tom Alexander
83e4b72307
Implement timestamp.
2023-12-29 20:55:01 -05:00
Tom Alexander
34b3e4fa7b
Implement statistics cookie.
2023-12-29 20:26:12 -05:00
Tom Alexander
c0e879dc1e
Implement headline.
2023-12-29 20:26:11 -05:00
Tom Alexander
fa31b001f4
Implement fixed width area.
2023-12-29 19:21:35 -05:00
Tom Alexander
0897061ff6
Add wasm tests to the CI.
2023-12-29 19:07:07 -05:00
Tom Alexander
28a3e1bc7b
Implement bold.
2023-12-29 18:56:29 -05:00
Tom Alexander
3fd3d20722
Merge branch 'test_wasm_json' into wasm
clippy Build clippy has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-12-29 18:54:58 -05:00
Tom Alexander
90735586b5
Add special case for object trees.
2023-12-29 18:54:41 -05:00
Tom Alexander
78befc7665
Remove old code.
2023-12-29 17:31:14 -05:00
Tom Alexander
ef549d3b19
Compare quoted strings.
2023-12-29 17:29:13 -05:00
Tom Alexander
777c756a7f
Compare plain text AST nodes.
2023-12-29 17:24:38 -05:00
Tom Alexander
037caf369c
Standardize parameter order.
2023-12-29 16:56:02 -05:00
Tom Alexander
54085b5833
Implement compare optional pair.
2023-12-29 16:51:52 -05:00
Tom Alexander
2bfa8e59e7
Add code to compare children.
2023-12-29 16:06:07 -05:00
Tom Alexander
5d31db39a4
Remove some underscores from wasm schema to match elisp.
2023-12-29 15:41:41 -05:00
Tom Alexander
adcd0de7e4
Compare standard properties.
2023-12-29 15:38:18 -05:00
Tom Alexander
c2f9789a64
Placeholder for comparing quoted strings.
2023-12-29 15:09:54 -05:00
Tom Alexander
579cbb5d11
Switch everything over to the new to_wasm macro.
2023-12-29 15:03:36 -05:00
Tom Alexander
cad2be43bf
Implement a new to_wasm macro that uses the WasmAstNodeWrapper.
2023-12-29 14:06:10 -05:00
Tom Alexander
a0a4f0eb90
Remove lifetimes from wasm ast nodes.
2023-12-29 12:49:43 -05:00
Tom Alexander
9f4f8e79ce
Implement a wrapper type for AST nodes.
...
This is to make it impossible to have a collision for attribute names that are real attributes vs attributes I've added for structure (like children and ast_node).
2023-12-29 11:58:46 -05:00
Tom Alexander
77e0dbb42e
Start working on a version of compare based on json values.
...
This will be a better test because it will be testing that what we export to json is equivalent to the elisp AST generated from emacs. Because of these tests, we could also confidently use the wasm structure to elisp.
2023-12-29 11:37:30 -05:00
Tom Alexander
eff5cdbf40
Flatten some structures.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-29 10:04:59 -05:00
Tom Alexander
eef3571299
Add compare logic for optional pair.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-27 21:23:06 -05:00
Tom Alexander
f227d8405e
Implement compare for list of quoted strings.
clippy Build clippy has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-12-27 21:00:12 -05:00
Tom Alexander
9520e5814b
Add conversion for affiliated keywords to wasm additional properties.
2023-12-27 20:36:35 -05:00
Tom Alexander
28ad4fd046
Add conversion to WasmAstNode for wasm Objects.
2023-12-27 19:53:07 -05:00
Tom Alexander
7626a69fa1
Add default implementations for WasmElispCompare.
2023-12-27 19:42:45 -05:00
Tom Alexander
121c0ce516
Move the logic functions into their own module.
2023-12-27 19:22:43 -05:00
Tom Alexander
5a64db98fe
Move wasm diff structs to their own module.
2023-12-27 19:15:39 -05:00
Tom Alexander
abfae9c6c0
Compare section.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-12-27 19:10:43 -05:00
Tom Alexander
5272e2f1b4
Start adding paragraph.
2023-12-27 18:47:59 -05:00
Tom Alexander
90d4b11922
Switch to a formatted print of the wasm compare status.
clippy Build clippy has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-12-27 18:39:10 -05:00
Tom Alexander
d552ef6569
Compare the additional properties.
2023-12-27 18:20:23 -05:00
Tom Alexander
f050e9b6a8
Taking into account additional property names but not comparing their values.
2023-12-27 18:01:56 -05:00
Tom Alexander
a5e108bc37
Compare the standard properties.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-27 17:07:42 -05:00
Tom Alexander
58290515b5
Enable child checking.
2023-12-27 16:47:02 -05:00
Tom Alexander
423f65046e
Record the property comparisons.
2023-12-27 16:40:55 -05:00
Tom Alexander
badeaf8246
Add compare for document category.
2023-12-27 16:34:04 -05:00
Tom Alexander
d38100581c
Add a script to run the wasm test inside docker.
2023-12-27 16:32:06 -05:00
Tom Alexander
f4eff5ca56
Fix wasm build.
clippy Build clippy has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-12-27 16:00:16 -05:00
Tom Alexander
5b02c21ebf
Progress on comparing properties in the wasm_compare macro.
2023-12-27 15:58:31 -05:00
Tom Alexander
5f1668702a
Starting the wasm_compare macro.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has succeeded
2023-12-27 15:38:30 -05:00
Tom Alexander
1faaeeebf1
Simplify wasm diff result types.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-27 14:19:25 -05:00
Tom Alexander
20a7c89084
Improving WasmElispCompare.
2023-12-27 13:21:20 -05:00
Tom Alexander
e83417b243
Introducing a trait for running compares.
...
This should enable us to invoke compares without needing a reference ast node type.
2023-12-27 12:38:21 -05:00
Tom Alexander
36b80dc093
Separate out rust parsing step to support references to values stored in the parsed state.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-27 12:24:21 -05:00
Tom Alexander
1812b1a56e
Remove phantom data.
2023-12-27 12:24:21 -05:00
Tom Alexander
1a70b3d2c0
Add a lifetime for data in the parsed result but not from the source.
2023-12-27 12:24:21 -05:00
Tom Alexander
abf066701e
Add category and path to WasmDocument.
2023-12-27 11:31:35 -05:00
Tom Alexander
4984ea4179
More of the test structure.
2023-12-27 11:10:40 -05:00
Tom Alexander
3cb251ea6c
Move terminal colors to the shared util module.
2023-12-27 10:57:40 -05:00
Tom Alexander
4bfea41291
Add more structure to the wasm compare.
2023-12-27 10:52:59 -05:00
Tom Alexander
99376515ef
Invoking wasm_compare_document.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-27 09:31:54 -05:00
Tom Alexander
23f4ba4205
Serialize to wasm during wasm compare.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has succeeded
2023-12-27 08:57:56 -05:00
Tom Alexander
55ad136283
Fix imports for wasm.
2023-12-27 08:49:34 -05:00
Tom Alexander
c717541099
Move the parsing of the elisp to the util module.
2023-12-27 08:46:18 -05:00
Tom Alexander
c2e921c2dc
Move wasm test to a top-level module.
...
For some unknown reason, this makes rust-analyzer not angry.
2023-12-27 08:42:13 -05:00
Tom Alexander
e499169f0e
Fix imports for wasm_test.
clippy Build clippy has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-12-27 08:37:34 -05:00
Tom Alexander
84c088df67
Add wasm targets to the build test in the CI.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-27 08:04:03 -05:00
Tom Alexander
f210f95f99
Use a temporary folder for the builds.
2023-12-26 21:23:20 -05:00
Tom Alexander
17b81c7c72
Add a script to build every possible feature combination.
2023-12-26 21:05:40 -05:00
Tom Alexander
2911fce7cc
Put util under the library.
2023-12-26 20:18:41 -05:00
Tom Alexander
e622d9fa6b
Remove the old implementation of print_versions.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-26 19:15:02 -05:00
Tom Alexander
8186fbb8b3
Move print_versions into a util crate.
2023-12-26 19:06:12 -05:00
Tom Alexander
68ccff74fa
Outline for the wasm compare function.
2023-12-26 18:55:28 -05:00
Tom Alexander
9a13cb72c6
Make the wasm test binary async.
2023-12-25 14:32:01 -05:00
Tom Alexander
65abaa332f
Separate out the wasm test into its own feature/binary.
2023-12-25 13:12:32 -05:00
Tom Alexander
67e5829fd9
Populating document's children.
2023-12-25 12:55:48 -05:00
Tom Alexander
995b41e697
Remove deserialize to support borrows.
2023-12-25 12:42:38 -05:00
Tom Alexander
eb51bdfe2f
Add original field name to wasm macro.
2023-12-25 12:32:35 -05:00
Tom Alexander
bbb9ec637a
Add code to test the wasm code path without actually dropping into wasm.
2023-12-25 12:14:50 -05:00
Tom Alexander
dc012b49f5
Add a generic WasmAstNode enum.
2023-12-25 11:51:39 -05:00
Tom Alexander
13863a68f7
Add placeholders for all the wasm ast nodes.
2023-12-25 11:33:43 -05:00
Tom Alexander
2962f76c81
Add lifetime to wasm objects.
2023-12-25 11:19:09 -05:00
Tom Alexander
b9b3ef6e74
Populate standard properties.
2023-12-25 10:47:10 -05:00
Tom Alexander
310ab2eab2
Add standard properties to wasm.
2023-12-24 15:26:45 -05:00
Tom Alexander
53320070da
Define a wasm document.
2023-12-24 15:17:41 -05:00
Tom Alexander
2d5593681f
Start defining the return type.
2023-12-24 13:02:34 -05:00
Tom Alexander
b3f97dbb40
Add wasm-bindgen.
2023-12-24 00:59:41 -05:00
Tom Alexander
a48d76321e
Building basic wasm.
2023-12-24 00:47:32 -05:00
Tom Alexander
59222c58b1
Publish version 0.1.13.
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-12-15 21:10:21 -05:00
Tom Alexander
4d95a7f244
Merge branch 'post_blank'
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-15 20:11:20 -05:00
Tom Alexander
5a8159eed7
Fix clippy.
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-12-15 19:57:35 -05:00
Tom Alexander
e24fcb9ded
Add dummy values for new fields for plaintext.
2023-12-15 19:54:03 -05:00
Tom Alexander
4b94dc60d2
Fix handling of documents containing only whitespace.
2023-12-15 19:49:12 -05:00
Tom Alexander
2046603d01
Fix handling post blank for org documents.
2023-12-15 19:42:43 -05:00
Tom Alexander
30412361e1
Fix handling fixed width area post-blank inside a list.
2023-12-15 19:37:33 -05:00
Tom Alexander
e846c85188
Fix handling fixed width areas with empty lines in the middle.
2023-12-15 19:17:16 -05:00
Tom Alexander
99b74095e6
Fix heading post-blank.
2023-12-15 19:10:14 -05:00
Tom Alexander
6b802d36bf
Implement the new fields for target.
2023-12-15 18:57:19 -05:00
Tom Alexander
33ca43ca40
Remove the old Paragraph::of_text function.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-12-15 18:06:48 -05:00
Tom Alexander
f5280a3090
Implement the new fields for bullshitium broken dynamic block.
2023-12-15 18:04:42 -05:00
Tom Alexander
c28d8ccea4
Fix post-blank for headlines containing only whitespace.
2023-12-15 17:59:47 -05:00
Tom Alexander
9690545901
Fix setting contents for broken end bullshitium when there is a paragraph present.
clippy Build clippy has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
2023-12-15 17:40:08 -05:00
Tom Alexander
eba4fb94cf
Implement the new fields for dynamic block.
2023-12-15 17:26:01 -05:00
Tom Alexander
565978225a
Implement the new fields for table.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-15 17:16:49 -05:00
Tom Alexander
cce9ca87fa
Fix handling of leading blank lines in greater blocks.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-15 16:55:47 -05:00
Tom Alexander
683c523ece
Implement the new fields for greater block.
2023-12-15 16:15:22 -05:00
Tom Alexander
7a4dc20dc9
Implement the new fields for plain list.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-15 15:59:00 -05:00
Tom Alexander
022dda06eb
Implement the new fields for plain list item.
2023-12-15 15:52:53 -05:00
Tom Alexander
7b88a2d248
Implement the new fields for broken end bullshitium.
2023-12-15 15:40:17 -05:00
Tom Alexander
fce5b92091
Remove leading blank lines from document contents.
2023-12-15 15:30:46 -05:00
Tom Alexander
45a506334c
Remove leading blank lines from heading contents.
2023-12-15 15:20:31 -05:00
Tom Alexander
e47901a67f
Implement the new fields for node property.
clippy Build clippy has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
2023-12-15 15:05:03 -05:00
Tom Alexander
7430daa768
Fix handling of property drawers containing only whitespace.
2023-12-15 15:05:03 -05:00
Tom Alexander
6ce25c8a3b
Update property drawer empty test to include a variety of whitespace.
2023-12-15 14:25:01 -05:00
Tom Alexander
7b8fa1eb4a
Fix get_contents for sections.
2023-12-15 13:21:58 -05:00
Tom Alexander
ffa5349f25
Fix get_contents for headlines.
2023-12-15 13:14:49 -05:00
Tom Alexander
bb472b63cc
Implement the new fields for property drawer.
2023-12-15 13:03:42 -05:00
Tom Alexander
57f566a7a1
Implement the new fields for planning.
2023-12-15 12:55:05 -05:00
Tom Alexander
2181993246
Implement the new fields for horizontal rule.
2023-12-15 12:50:01 -05:00
Tom Alexander
60d1ecfa75
Fix fixed width area to not consume trailing line break so it can be part of the post-blank.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-15 12:45:51 -05:00
Tom Alexander
3962db12a8
Implement the new fields for fixed width area.
2023-12-15 12:29:46 -05:00
Tom Alexander
f192507cd9
Implement the new fields for diary sexp.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-15 12:10:34 -05:00
Tom Alexander
252be3e001
Fix post blank for timestamp date ranges.
2023-12-15 11:38:52 -05:00
Tom Alexander
28f12a04f7
Implement the new fields for drawer.
rust-test Build rust-test has failed
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
2023-12-15 11:22:27 -05:00
Tom Alexander
d6232dc49c
Implement the new fields for clock.
2023-12-15 10:49:04 -05:00
Tom Alexander
68a220aa1c
Implement the new fields for babel call.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-15 10:45:16 -05:00
Tom Alexander
2e7db0f8bd
Implement the new fields for lesser block.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
rust-build Build rust-build has succeeded
2023-12-11 15:59:56 -05:00
Tom Alexander
175ff1e6c4
Implement the new fields for LaTeX environment.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-11 14:49:18 -05:00
Tom Alexander
0b42139393
Implement the new fields for inline babel call and inline source block.
2023-12-11 14:47:22 -05:00
Tom Alexander
67a9103b07
Implement the new fields for export snippet.
2023-12-11 14:41:49 -05:00
Tom Alexander
f141a4e186
Implement the new fields for citation.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-11 14:38:14 -05:00
Tom Alexander
aba29df34c
Implement the new fields for org macro.
2023-12-11 14:22:56 -05:00
Tom Alexander
87ce7d7432
Implement the new fields for timestamp.
2023-12-11 14:18:04 -05:00
Tom Alexander
68dccd54b1
Implement the new fields for radio link.
2023-12-11 14:10:27 -05:00
Tom Alexander
4753f4c7c6
Implement the new fields for plain link.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-11 13:08:53 -05:00
Tom Alexander
13c62bf29f
Implement the new fields for angle link.
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
clippy Build clippy has failed
2023-12-11 13:00:43 -05:00
Tom Alexander
670209e9fc
Fix post blank for comment.
2023-12-11 12:58:05 -05:00
Tom Alexander
4af0d3141f
Implement the new fields for statistics cookie.
2023-12-11 12:51:07 -05:00
Tom Alexander
ab281de3c6
Implement the new fields for latex fragment.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-11 12:46:20 -05:00
Tom Alexander
d556d28f49
Implement the new fields for entity.
2023-12-11 12:44:42 -05:00
Tom Alexander
9cfb2fa052
Implement the new fields for keywords.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-11 12:38:13 -05:00
Tom Alexander
30c03b5529
Implement the new fields for radio target.
2023-12-11 12:27:35 -05:00
Tom Alexander
b943f90766
Implement the new fields for regular link.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-11 12:19:49 -05:00
Tom Alexander
0108f5b0b1
Implement the new fields for subscript and superscript.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-11 12:04:59 -05:00
Tom Alexander
50145c6cf2
Implement the new fields for line break.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-12-08 16:20:58 -05:00
Tom Alexander
4a8607726c
Implement the new fields for comment.
2023-12-08 16:20:58 -05:00
Tom Alexander
9bcba4020d
Implement the new fields for verbatim and code.
2023-12-08 16:20:58 -05:00
Tom Alexander
8fd9ff3848
Implement the new fields for bold, italic, underline, and strike-through.
2023-12-08 15:51:38 -05:00
Tom Alexander
3fb7cb82cd
Implement get_contents for document.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-11-01 01:22:43 -04:00
Tom Alexander
e0ec5c115f
Need a constant value for generic numbers.
2023-11-01 00:49:22 -04:00
Tom Alexander
f0868ba3ed
Add a post blank implementation to document.
2023-10-31 23:56:40 -04:00
Tom Alexander
425bc12353
Add implementations to calculate the new fields for heading.
2023-10-31 23:46:53 -04:00
Tom Alexander
03754be71e
Implement the new fields for section.
2023-10-31 23:16:57 -04:00
Tom Alexander
70002800c2
Implement the new fields for footnote definitions.
2023-10-31 23:12:04 -04:00
Tom Alexander
281c35677b
Implement the new fields for paragraph.
2023-10-31 23:06:43 -04:00
Tom Alexander
92d15c3d91
Fix clippy.
2023-10-31 22:58:17 -04:00
Tom Alexander
b1773ac90e
Get post blank for footnote references.
2023-10-31 22:58:17 -04:00
Tom Alexander
645d9abf9c
Support nil contents.
2023-10-31 22:58:17 -04:00
Tom Alexander
d2f2bdf88d
Implement get_contents for footnote references.
2023-10-31 22:58:17 -04:00
Tom Alexander
90ba17b68c
Switch to a numeric post-blank.
...
Turns out post-blank has different meanings to different object types so we need to return a number to properly do the compare.
2023-10-31 22:32:01 -04:00
Tom Alexander
31406fd520
Fix clippy.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-10-31 22:19:39 -04:00
Tom Alexander
49bc51ba89
Compare post-blank.
2023-10-31 22:18:28 -04:00
Tom Alexander
92592104a4
Compare contents begin/end.
2023-10-31 22:11:38 -04:00
Tom Alexander
33f4614d28
Make get_rust_byte_offsets more generic so it can be used for contents.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-31 21:59:58 -04:00
Tom Alexander
6c197c376a
Add todo implementations of the new standard property functions.
2023-10-31 21:49:33 -04:00
Tom Alexander
bcf1b49db2
Remove the GetStandardProperties trait.
...
This was using dynamic dispatch to deal with enums to avoid the repetitive typing.
2023-10-31 21:26:00 -04:00
Tom Alexander
49f6e70a19
Use RPIT to get static dispatch GetStandardProperties.
2023-10-31 21:20:46 -04:00
Tom Alexander
31fb815681
Add a function for getting the post blank.
2023-10-31 21:20:46 -04:00
Tom Alexander
7dfe24ff98
Merge branch 'lazy_parse_lesser_block_contents'
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-31 20:54:01 -04:00
Tom Alexander
a5627d0cee
Do not parse the lesser block contents during parsing, but rather only if the contents are requested.
...
rust-test Build rust-test has failed
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
This seemed like an unnecessary allocation during parsing, especially considering we throw away some parses based on whether or not we found radio targets in the source.
2023-10-31 20:43:08 -04:00
Tom Alexander
93cfa71df2
Merge branch 'foreign_document_literate_build_emacs'
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-31 19:49:15 -04:00
Tom Alexander
78320d3265
Fix clippy errors.
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-31 18:32:01 -04:00
Tom Alexander
9e908935f8
Add special case to delete invalid org-mode file.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-31 17:26:13 -04:00
Tom Alexander
b18a703529
Handle nil values for compare_property_object_tree.
2023-10-31 17:20:35 -04:00
Tom Alexander
ea52dc60be
Add a literate tutorial for building emacs to the foreign documents test.
2023-10-31 16:33:11 -04:00
Tom Alexander
f5699ce830
Remove PartialEq from Object.
rustfmt Build rustfmt has succeeded
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-10-31 16:33:10 -04:00
Tom Alexander
10aa0956ee
Merge branch 'lesser_block_memory_optimization'
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-27 22:13:25 -04:00
Tom Alexander
816c164996
Only allocate memory if removing text for lesser blocks.
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-27 21:50:08 -04:00
Tom Alexander
ee201e1336
Merge branch 'explicit_all_node_iter'
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-23 18:39:16 -04:00
Tom Alexander
4897952330
Make creating AllAstNodeIter explicit.
...
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
This is to remove the ambiguity between calling iter on the specific structs like Document and calling iter on an AstNode by having an explicitly-named function to create the iterator.
2023-10-23 18:25:59 -04:00
Tom Alexander
e1d85c6dc2
Merge branch 'remove_set_source'
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-23 18:06:56 -04:00
Tom Alexander
c420ccd029
Fix clippy errors.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-23 17:43:43 -04:00
Tom Alexander
a880629831
Make clippy not write to the host git repo.
2023-10-23 17:43:32 -04:00
Tom Alexander
5e2dea1f28
Remove the SetSource trait.
...
It was only being used for creating paragraphs of specific text, so I just adjusted the of_text function to handle it.
2023-10-23 17:43:32 -04:00
Tom Alexander
f47d688be4
Remove owned String from CustomError.
...
rustfmt Build rustfmt has failed
rust-test Build rust-test has failed
clippy Build clippy has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
This is a 15% performance improvement.
2023-10-21 14:29:37 -04:00
Tom Alexander
acfc5e5e68
Only allocate memory when unquoting sexp string that contains escapes.
...
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
If the quoted string contains no escape sequences, then unquoting the string can be done by simply shaving off the leading and trailing quotation marks which can be a slice operation. By returning Cow, we can return either a borrowed slice or an owned String.
2023-10-20 12:53:27 -04:00
Tom Alexander
503db94b2c
Publish version 0.1.12.
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-18 19:01:43 -04:00
Tom Alexander
a4381e5e39
Merge branch 'keyword_constants'
2023-10-18 18:48:52 -04:00
Tom Alexander
e11de60def
Clippy fixes.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-18 18:39:04 -04:00
Tom Alexander
b2479e9de8
Remove Debug from the context variables.
...
Now that entities are stored in the settings struct, these variables are massive which makes them balloon trace sizes while being mostly unreadable. This removes Debug from them to serve as a static-analysis check that context is ALWAYS ignored in tracing calls.
2023-10-18 18:36:25 -04:00
Tom Alexander
49d1cef7ae
Remove context from functions that no longer need it.
2023-10-18 18:28:24 -04:00
Tom Alexander
ba72cc1b29
The variables for keywords are actually constants.
...
These settings do not need to exist in GlobalSettings because they are actually constants in upstream Org-Mode.
2023-10-18 18:22:01 -04:00
Tom Alexander
c58b0e7c35
Add a script to dump an AST using docker.
rust-test Build rust-test has succeeded
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
2023-10-18 15:39:52 -04:00
Tom Alexander
f19d262825
Merge branch 'bullshitium'
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-18 13:04:16 -04:00
Tom Alexander
68f3f2e159
Clippy fixes.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-18 12:42:09 -04:00
Tom Alexander
269e23c1b1
No more expect-fail tests!
2023-10-18 12:41:12 -04:00
Tom Alexander
e111b8b9b8
Performance optimization.
2023-10-18 12:39:08 -04:00
Tom Alexander
353ff07420
Handle bullshitium for broken dynamic blocks.
2023-10-18 12:32:48 -04:00
Tom Alexander
94dec31130
Consuming trailing whitespace for 🔚 bullshitium.
2023-10-18 12:17:57 -04:00
Tom Alexander
cf5d3ed745
Add tests for the 🔚 bullshitium.
2023-10-18 11:59:55 -04:00
Tom Alexander
b0b287cd47
Handle bullshitium for 🔚 .
2023-10-18 11:57:39 -04:00
Tom Alexander
bcdf1f5e9d
Merge branch 'entity_special_case'
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-18 08:53:57 -04:00
Tom Alexander
17d8e76e05
Do not match POST for entities that end with a space.
...
This is a special case for en-spaces.
2023-10-18 08:52:18 -04:00
Tom Alexander
8db9038c53
Merge branch 'list_perf_improvement'
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
2023-10-18 08:40:19 -04:00
Tom Alexander
a276ba70e0
Fix empty content items with final item whitespace cut-off before headlines.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-17 15:56:02 -04:00
Tom Alexander
b7442c1e92
Do not match headlines as plain list items.
2023-10-17 15:35:43 -04:00
Tom Alexander
364ba79517
It actually worked on trailing whitespace ownership test case 2.
2023-10-17 15:22:31 -04:00
Tom Alexander
47408763e5
A first stab at a final item whitespace cut-off exit matcher.
2023-10-17 15:08:36 -04:00
Tom Alexander
bd187ebfe7
Remove re-parsing of the final list child.
2023-10-17 14:17:47 -04:00
Tom Alexander
59cb3c2bbf
Remove unnecessary closures in plain lists.
2023-10-17 13:59:33 -04:00
Tom Alexander
44f7412a5c
Merge branch 'perf_improvement'
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-17 13:54:44 -04:00
Tom Alexander
01464057ad
Remove unused event types.
2023-10-17 13:43:33 -04:00
Tom Alexander
0208020e3e
Also print byte offset.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-17 13:35:40 -04:00
Tom Alexander
a2f53361eb
Record element start events and report them when the event_count feature is enabled.
2023-10-17 13:32:01 -04:00
Tom Alexander
17db05c2c7
Unify more error handling.
2023-10-17 12:42:34 -04:00
Tom Alexander
6139ea328d
Unify some more error handling.
2023-10-17 12:22:52 -04:00
Tom Alexander
d20b4a410b
Remove pointless map_err calls.
2023-10-17 11:56:36 -04:00
Tom Alexander
05c64f53b1
Remove boxed error from CustomError.
2023-10-17 11:40:11 -04:00
Tom Alexander
f65d0bb82d
Remove redundant call to space0.
2023-10-17 11:33:26 -04:00
Tom Alexander
50d2831081
Cleanup.
2023-10-17 11:30:23 -04:00
Tom Alexander
bc9bd4f97b
Eliminate some closures.
2023-10-17 11:10:18 -04:00
Tom Alexander
369d3e8c50
Add a full-document parse benchmark.
2023-10-17 10:57:04 -04:00
Tom Alexander
7d73eb6bd4
Merge branch 'error_rework'
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has failed
rustfmt Build rustfmt has failed
rust-test Build rust-test has succeeded
2023-10-17 10:40:46 -04:00
Tom Alexander
f59f153ee7
Clean up.
2023-10-17 10:39:21 -04:00
Tom Alexander
20c4a0f8f7
Continue removing MyError.
2023-10-17 10:35:33 -04:00
Tom Alexander
e776a051ad
Continue removing MyError.
2023-10-17 10:13:00 -04:00
Tom Alexander
77e6c22ad8
Continue removing MyError.
2023-10-17 10:09:37 -04:00
Tom Alexander
c9d7251e3b
Begin removing the MyError type.
2023-10-17 09:45:18 -04:00
Tom Alexander
8417b5fc9d
Add an owned string entry for CustomError.
2023-10-17 09:27:15 -04:00
Tom Alexander
acc29e7977
Publish version 0.1.11.
rustfmt Build rustfmt has succeeded
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-16 19:53:46 -04:00
Tom Alexander
ebc0a30035
Merge branch 'clippy_ci_job'
2023-10-16 19:50:01 -04:00
Tom Alexander
e2d55e13d3
Fix some clippy errors that didn't appear on my host version of clippy.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-16 19:43:15 -04:00
Tom Alexander
e4d9c5f467
Add makefile command to run clippy through docker.
2023-10-16 19:38:45 -04:00
Tom Alexander
d8e3a85ef7
We need to add dependencies so we are now building a container.
2023-10-16 19:34:53 -04:00
Tom Alexander
464685b52b
Use a cargo cache for the clippy CI job.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-16 19:27:15 -04:00
Tom Alexander
5fed4e80a7
Add a CI job to run clippy for every push.
2023-10-16 19:22:59 -04:00
Tom Alexander
e53140426f
Merge branch 'clippy'
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-16 19:14:19 -04:00
Tom Alexander
9a4d290cf8
Apply more suggestions.
2023-10-16 19:12:25 -04:00
Tom Alexander
acd24d6198
Apply more suggestions.
2023-10-16 19:02:34 -04:00
Tom Alexander
880b00ef3f
Apply more suggestions.
2023-10-16 18:54:41 -04:00
Tom Alexander
3069711447
Apply more suggestions.
2023-10-16 18:29:21 -04:00
Tom Alexander
4b6c717812
Apply more suggestions.
2023-10-16 17:58:52 -04:00
Tom Alexander
1d329cc310
Apply more suggestions.
2023-10-16 17:28:28 -04:00
Tom Alexander
b4f9a3b9b6
Apply more suggestions.
2023-10-16 17:14:44 -04:00
Tom Alexander
2dd5246506
Apply more suggestions.
2023-10-16 17:03:39 -04:00
Tom Alexander
4ba0e3611b
Apply more suggestions.
2023-10-16 17:03:39 -04:00
Tom Alexander
728f79b86c
Apply more suggestions.
2023-10-16 17:03:39 -04:00
Tom Alexander
192a4a2891
Remove unnecessary lifetimes.
2023-10-16 17:03:39 -04:00
Tom Alexander
fafd85fb30
Apply some clippy fixes.
2023-10-16 17:03:39 -04:00
Tom Alexander
1c23065329
Add a clippy command to the makefile.
2023-10-16 17:03:39 -04:00
Tom Alexander
ed105b04ad
Merge branch 'cargo_bench'
2023-10-16 16:03:56 -04:00
Tom Alexander
f10efec21d
No performance change switching affiliated_key to using element macro.
2023-10-16 15:57:18 -04:00
Tom Alexander
72b4cf8e71
Add the first use of the rust benchmark tests.
2023-10-16 15:50:08 -04:00
Tom Alexander
547fc40dbe
No measurable performance improvement with native builds over LTO release builds.
...
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
Leaving the code for this commented out because it involved an unstable cargo feature without showing any benefit. I would like to revisit this later.
2023-10-16 15:21:36 -04:00
Tom Alexander
9f1671658d
Merge branch 'object_parser_perf'
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-16 15:04:04 -04:00
Tom Alexander
18d0676fad
Clean up.
2023-10-16 15:03:23 -04:00
Tom Alexander
7833a58461
Apply a similar optimization to the detect element parser but also unify detection of affiliated keywords.
2023-10-16 14:55:40 -04:00
Tom Alexander
0020d71089
Extend that optimization to more object parsers.
2023-10-16 14:41:12 -04:00
Tom Alexander
cfdf39d1fa
Significantly reduce the use of closures in the object parsers.
2023-10-16 14:25:02 -04:00
Tom Alexander
26f1eae9a1
Merge branch 'planning_before_property_drawer'
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-16 13:48:03 -04:00
Tom Alexander
3eff85059a
Add support for planning before property drawer when calculating additional properties for headlines.
2023-10-16 13:35:03 -04:00
Tom Alexander
d2d0e9e5dd
Merge branch 'optval_affiliated_keywords'
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-16 13:16:44 -04:00
Tom Alexander
c86d1000c0
Do not clear values in lists of strings.
...
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
This is a hold-over from when I had list of single string which was a misunderstanding of the optional pair type.
2023-10-16 12:58:20 -04:00
Tom Alexander
911634cb42
Attr_ affiliated keywords should be lists of strings.
2023-10-16 12:55:18 -04:00
Tom Alexander
0aa746fb1e
Implement comparison for object tree.
2023-10-16 12:50:53 -04:00
Tom Alexander
33800c4a88
Implement comparison for optional pair.
2023-10-16 12:05:36 -04:00
Tom Alexander
909ccadfa1
Beginning update to compare_affiliated_keywords.
2023-10-16 11:45:54 -04:00
Tom Alexander
e352deb989
Update parse_affiliated_keywords for handling optional pairs.
2023-10-16 11:42:20 -04:00
Tom Alexander
f5a6a26c43
Disable the existing handling of affiliated keywords.
2023-10-15 20:31:14 -04:00
Tom Alexander
dd7184da54
Add analysis from test.
2023-10-15 20:22:46 -04:00
Tom Alexander
1168ddb1fe
Start an investigation into affiliated keyword behavior.
2023-10-15 17:38:56 -04:00
Tom Alexander
77ab636e6a
Merge branch 'unify_keyword_constants'
2023-10-15 15:59:21 -04:00
Tom Alexander
f5dcacc79d
Do not match keyword name if a longer keyword name would match.
2023-10-15 15:55:19 -04:00
Tom Alexander
e7c3c7aab6
Switch the keyword parsers over to using the settings from GlobalSettings.
2023-10-15 15:17:08 -04:00
Tom Alexander
7603b0a1cc
Add a test showing we are not handling optval properly.
2023-10-15 15:16:23 -04:00
Tom Alexander
dea3721b1c
Fix reporting errors in tests.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-15 15:16:06 -04:00
Tom Alexander
4b54f95087
Publish version 0.1.10.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-14 19:31:41 -04:00
Tom Alexander
17c2e9fefe
Add a build of compare and foreign document test without tracing.
2023-10-14 19:31:41 -04:00
Tom Alexander
d2d8c1ffcf
Fix build for compare with tracing.
2023-10-14 19:20:49 -04:00
Tom Alexander
b9c638c280
Fix tracing.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-14 19:02:35 -04:00
Tom Alexander
8ac8f9fe6e
Merge branch 'foreign_document_test'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-14 18:53:52 -04:00
Tom Alexander
ddb3144e66
Fix the tests.
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-14 18:25:26 -04:00
Tom Alexander
ad5efc4b0f
Only require sync on FileAccessInterface when compiling for compare utilities.
...
rust-test Build rust-test has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
Otherwise async compatibility would impact sync users of the plain library.
2023-10-14 18:09:50 -04:00
Tom Alexander
2de33b8150
Enable release-lto profile on foreign document test.
2023-10-14 18:00:20 -04:00
Tom Alexander
e1fde88a60
Switch to using tokio too invoke emacs async.
2023-10-14 17:58:50 -04:00
Tom Alexander
123da9cca3
Make the compare functions async.
2023-10-14 17:51:12 -04:00
Tom Alexander
c20e7b5f2f
Make compare an always-async program.
...
This program is used as a development tool, so it is more valuable that we make it simple by only supporting one mode of operation (async) than making it widely compatible by supporting both.
2023-10-14 17:50:53 -04:00
Tom Alexander
74a3512038
Report whether all the tests passed.
2023-10-14 17:50:53 -04:00
Tom Alexander
ff04c4a131
Sort files in a compare_all_org_document.
2023-10-14 17:50:53 -04:00
Tom Alexander
00611e05c2
Remove old bash script.
2023-10-14 15:32:36 -04:00
Tom Alexander
3e7e54a1bd
Add the foreign_document_test to the build tests.
2023-10-14 15:26:04 -04:00
Tom Alexander
aa35d1dc03
Copy over the rest of the foreign document test config.
2023-10-14 15:18:57 -04:00
Tom Alexander
92afdc0ea6
Strip prefix from file path.
2023-10-14 15:18:57 -04:00
Tom Alexander
f43920fc7c
Add a silent mode for running the diff.
2023-10-14 15:18:57 -04:00
Tom Alexander
dde4bc7920
Add code for structured printing of test results.
2023-10-14 14:30:24 -04:00
Tom Alexander
3d68e1fd00
Switch the docker container over to invoking the rust-based foreign document test.
2023-10-13 13:28:24 -04:00
Tom Alexander
8271f6b44a
Start invoking the tests.
2023-10-13 13:20:21 -04:00
Tom Alexander
8a26965e14
Write a function to compare all org-mode files in a directory.
2023-10-13 13:02:17 -04:00
Tom Alexander
3927889e66
Change test status to pass/fail.
2023-10-13 12:14:46 -04:00
Tom Alexander
5ecd7b8bef
Launch tests in parallel.
2023-10-13 12:07:52 -04:00
Tom Alexander
b0b795d13b
Limit concurrency of running tests.
2023-10-13 11:41:49 -04:00
Tom Alexander
182c2737cd
Add futures.
2023-10-13 11:27:43 -04:00
Tom Alexander
5f93cabff5
Hit recursive async.
2023-10-13 11:27:42 -04:00
Tom Alexander
a1f8cbe079
Working on invoking the tests.
2023-10-13 11:27:42 -04:00
Tom Alexander
d7e870cba1
Starting to make result structs.
2023-10-13 11:27:42 -04:00
Tom Alexander
591b5ed382
Starting to define a TestConfig enum.
2023-10-13 11:27:42 -04:00
Tom Alexander
fd141762f0
Start a rust-based foreign document test.
...
Instead of using a simple bash script, this will use async rust to run multiple tests in parallel.
2023-10-13 11:27:42 -04:00
Tom Alexander
d59bbfa7d2
Update org-mode.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-13 11:26:41 -04:00
Tom Alexander
1d9f91cdd2
Merge branch 'paragraph_without_affiliated_keyword'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-12 17:46:56 -04:00
Tom Alexander
68f8e04ee8
Add tests for affiliated keywords before elements that cannot have affiliated keywords.
2023-10-12 17:46:25 -04:00
Tom Alexander
c039e0d62c
Keywords without affiliated keywords should be lower priority than paragraphs with affiliated keywords.
2023-10-12 17:32:29 -04:00
Tom Alexander
e6e3783ec6
Support parsing affiliated keywords as keywords.
2023-10-12 17:23:54 -04:00
Tom Alexander
5ae19e455d
Remove unused imports.
2023-10-12 17:14:18 -04:00
Tom Alexander
f475754a71
Port the rest of the element parsers over.
2023-10-12 17:12:55 -04:00
Tom Alexander
767f44f94d
Port comment.
2023-10-12 16:52:49 -04:00
Tom Alexander
1411aca7b5
Port footnote definition.
2023-10-12 16:48:50 -04:00
Tom Alexander
9ccdcaac24
Port dynamic block.
2023-10-12 16:46:15 -04:00
Tom Alexander
d1223dcdb7
Port paragraph parser to use ak_element.
2023-10-12 16:37:31 -04:00
Tom Alexander
59448a4f2c
Port greater blocker over to ak_element!().
2023-10-12 16:27:57 -04:00
Tom Alexander
5136880532
Fix tests.
2023-10-12 16:14:23 -04:00
Tom Alexander
8654cf5507
Fully port over the first parser.
2023-10-12 16:09:35 -04:00
Tom Alexander
6ca4dc8ffc
Add a macro for calling parsers that take in the affiliated keywords.
2023-10-12 16:06:59 -04:00
Tom Alexander
a6f36ba679
Create a template for new element functions that will take in the affiliated keywords instead of re-parsing them multiple times.
2023-10-12 15:47:06 -04:00
Tom Alexander
176e37874e
Remove the parser to parse affiliated keywords as regular keywords.
2023-10-12 15:25:26 -04:00
Tom Alexander
3208a04f7a
Update project status in the README.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-12 14:13:54 -04:00
Tom Alexander
0d579263cb
Remove affiliated keyword non-exit for paragraph.
2023-10-12 14:07:57 -04:00
Tom Alexander
c022b30110
Update org-mode.
2023-10-12 13:38:11 -04:00
Tom Alexander
7da4e4a29b
Merge branch 'optional_value'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-11 19:14:46 -04:00
Tom Alexander
8bc942a26f
Create artificial scopes for the optional value and mandatory value.
2023-10-11 19:14:32 -04:00
Tom Alexander
dff7550038
Remove prints.
2023-10-11 19:09:51 -04:00
Tom Alexander
c4edcb8c24
Fix parsing the optional value.
2023-10-11 19:07:47 -04:00
Tom Alexander
4a44d88461
Better error messages.
2023-10-11 19:05:39 -04:00
Tom Alexander
efc6bd11d9
Do not exit on first loop.
2023-10-11 18:59:13 -04:00
Tom Alexander
51429e3155
Handle optval when translating names.
2023-10-11 18:50:22 -04:00
Tom Alexander
b1a0fa4acf
Compare optional value.
2023-10-11 18:44:21 -04:00
Tom Alexander
aeb2b6fe68
Parse out the optional value objects.
2023-10-11 18:29:07 -04:00
Tom Alexander
6679db98a8
Add comments.
2023-10-11 17:53:32 -04:00
Tom Alexander
5363324bbf
Add a test showing we are not handling optional values properly.
2023-10-11 17:37:39 -04:00
Tom Alexander
dc9188dffc
Better error logging when emacs errors out.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-11 17:22:01 -04:00
Tom Alexander
bd620ccd0d
Format.
2023-10-11 16:32:08 -04:00
Tom Alexander
1947ae9f22
Merge branch 'document_properties'
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-10-11 16:28:53 -04:00
Tom Alexander
3fcf1b3864
Compare Document additional properties.
2023-10-11 16:27:25 -04:00
Tom Alexander
d965dd6fd1
Implement get_additional_properties for Document.
2023-10-11 16:14:03 -04:00
Tom Alexander
42dcd41e48
Add tests for document properties.
2023-10-11 16:02:44 -04:00
Tom Alexander
68fac7cfe8
Merge branch 'affiliated_keywords_properties'
rustfmt Build rustfmt has failed
rust-build Build rust-build has failed
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-11 15:31:23 -04:00
Tom Alexander
a9f067e25a
Update name tests to use all the affiliated keywords.
2023-10-11 15:25:09 -04:00
Tom Alexander
41b4b1015e
Update all comparisons to handle affiliated keywords.
2023-10-11 14:57:32 -04:00
Tom Alexander
9523365090
Update all elements to the new AffiliatedKeywords.
2023-10-11 14:44:25 -04:00
Tom Alexander
aa33fe42a8
Update compare_properties to handle affiliated keywords.
2023-10-11 14:14:33 -04:00
Tom Alexander
78a9b93f22
Nevermind, it did work.
2023-10-11 14:03:42 -04:00
Tom Alexander
a89339e472
Using owned string did not solve it.
2023-10-11 14:00:18 -04:00
Tom Alexander
f3307a8159
Lifetime issue.
2023-10-11 13:55:43 -04:00
Tom Alexander
4bfa25dcb3
Comparing lists of quoted strings.
2023-10-11 13:04:33 -04:00
Tom Alexander
441a240c33
Comparing single string values.
2023-10-11 13:00:21 -04:00
Tom Alexander
e767892dd5
Add capitalization.
2023-10-11 12:42:42 -04:00
Tom Alexander
8e0a7dea0f
A very simple GetAffiliatedKeywords trait.
2023-10-11 12:19:27 -04:00
Tom Alexander
c4cc40f5e1
Parsing the affiliated keywords.
2023-10-11 12:16:35 -04:00
Tom Alexander
a5129199c7
I need to parse the affiliated keywords during parsing because it relies on the global settings.
2023-10-11 12:16:35 -04:00
Tom Alexander
c0e462944d
Comment out the broken stuff.
2023-10-11 12:16:35 -04:00
Tom Alexander
63614841e8
Trait lifetime issues.
2023-10-11 12:16:35 -04:00
Tom Alexander
bc4c09c546
Add constants for affiliated keyword settings.
2023-10-11 12:16:35 -04:00
Tom Alexander
0d1ab0e75a
Add a debug assert for org entities being sorted.
2023-10-11 12:16:35 -04:00
Tom Alexander
6e39029f91
Store the affiliated keywords on the plainlist.
2023-10-10 18:10:34 -04:00
Tom Alexander
d550966516
Add a test with all the affiliated keyword types.
2023-10-10 18:02:23 -04:00
Tom Alexander
32d6b3d1ee
Merge branch 'compare_additional_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-10 17:40:40 -04:00
Tom Alexander
7cb71a5a0a
Compare the additional properties on headlines.
2023-10-10 17:40:27 -04:00
Tom Alexander
6b90a9bfa8
Add TODO.
2023-10-10 17:15:51 -04:00
Tom Alexander
83d939bdc0
Update org-mode.
2023-10-10 17:00:13 -04:00
Tom Alexander
0e1ace78f4
Merge branch 'headline_extra_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-10 16:57:14 -04:00
Tom Alexander
6d4db60688
Support ("") as being equal to None in compare_property_list_of_ast_nodes.
2023-10-10 16:35:16 -04:00
Tom Alexander
3aca01891d
Remove the old implementation of comparing headlines.
2023-10-10 16:12:29 -04:00
Tom Alexander
275ed87c3f
Add a compare_properties variant with support for additional properties.
2023-10-10 16:10:12 -04:00
Tom Alexander
b385270d7b
Implement a function to get the additional properties on a headline.
2023-10-10 15:54:44 -04:00
Tom Alexander
fb412bc2cd
Merge branch 'compare_properties_document'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-10 15:31:21 -04:00
Tom Alexander
585b1d2b74
compare_properties for document.
2023-10-10 15:30:27 -04:00
Tom Alexander
c578bb45af
Implement ExactSizeIterator for the other node types.
2023-10-10 15:27:03 -04:00
Tom Alexander
b7f7876706
Impl ExactSizeIterator for multi_field_iter.
2023-10-10 15:23:04 -04:00
Tom Alexander
ee5ed17c20
Implement ExactSizeIterator for DocumentIter.
2023-10-10 15:19:42 -04:00
Tom Alexander
a873794068
Starting a compare properties document function.
2023-10-10 14:58:18 -04:00
Tom Alexander
360b2d963d
Merge branch 'compare_properties_the_other_nodes'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-10 02:10:09 -04:00
Tom Alexander
534c5ded3c
Fix table type is required.
2023-10-10 02:07:36 -04:00
Tom Alexander
bdaf90af03
compare_properties timestamp.
2023-10-10 02:05:31 -04:00
Tom Alexander
1a67aac502
compare_properties latex environment.
2023-10-10 01:39:47 -04:00
Tom Alexander
9f166278f4
compare_properties babel call.
2023-10-10 01:36:48 -04:00
Tom Alexander
c2222c9102
compare_properties keyword.
2023-10-10 01:32:36 -04:00
Tom Alexander
fc104680eb
compare_properties horizontal rule.
2023-10-10 01:29:00 -04:00
Tom Alexander
e40e3ff553
compare_properties fixed width area.
2023-10-10 01:27:37 -04:00
Tom Alexander
0b465fe290
compare_properties planning.
2023-10-10 01:24:44 -04:00
Tom Alexander
d5396e311b
compare_properties diary sexp.
2023-10-10 01:22:16 -04:00
Tom Alexander
384242af87
compare_properties clock.
2023-10-10 01:19:14 -04:00
Tom Alexander
ec755bae8b
compare_properties src block.
2023-10-10 01:13:09 -04:00
Tom Alexander
0b1e06f0d5
compare_properties export block.
2023-10-10 01:07:41 -04:00
Tom Alexander
bdfa050ee3
compare_properties example block.
2023-10-10 01:02:45 -04:00
Tom Alexander
ec98e1c3c5
compare_properties comment block.
2023-10-10 00:15:04 -04:00
Tom Alexander
0d0b1b2051
compare_properties verse block.
2023-10-10 00:12:40 -04:00
Tom Alexander
2215c32e57
compare_properties table cell.
2023-10-10 00:11:05 -04:00
Tom Alexander
cf257443b0
compare_properties table row.
2023-10-10 00:07:34 -04:00
Tom Alexander
62815621e4
compare_properties table.
2023-10-10 00:05:34 -04:00
Tom Alexander
7af5359e00
compare_properties node property.
2023-10-09 22:45:32 -04:00
Tom Alexander
d1184fa1d0
compare_properties property drawer.
2023-10-09 22:42:02 -04:00
Tom Alexander
5b146d7c07
compare_properties drawer.
2023-10-09 22:37:53 -04:00
Tom Alexander
926682d513
compare_properties comment.
2023-10-09 22:36:15 -04:00
Tom Alexander
4c89d6c813
compare_properties footnote definition.
2023-10-09 22:32:25 -04:00
Tom Alexander
62926bb91d
compare_properties dynamic block.
2023-10-09 22:28:32 -04:00
Tom Alexander
9ab649ebd4
compare_properties special block.
2023-10-09 22:20:20 -04:00
Tom Alexander
ca1b633a9f
compare_properties quote block.
2023-10-09 21:57:11 -04:00
Tom Alexander
f543caee00
compare_properties plain list item.
2023-10-09 21:55:29 -04:00
Tom Alexander
409a92333e
compare_properties plain list.
2023-10-09 21:55:28 -04:00
Tom Alexander
7a38d1ead3
compare_properties paragraph.
2023-10-09 21:55:28 -04:00
Tom Alexander
33c53a14ab
Switch back to the old compare heading function until we support additional properties.
2023-10-09 21:32:29 -04:00
Tom Alexander
65615c64d2
Implement a new compare_properties implementation of the heading comparison.
2023-10-09 21:27:18 -04:00
Tom Alexander
166e59b922
Implement a compare_property_numeric.
2023-10-09 21:04:41 -04:00
Tom Alexander
8e357ed3b6
compare_properties section.
2023-10-09 20:54:31 -04:00
Tom Alexander
45074e3be3
Add a test.
2023-10-09 20:50:19 -04:00
Tom Alexander
ee1d8ca321
Text markup uses confine context.
2023-10-09 20:36:38 -04:00
Tom Alexander
25531cc443
Accept eof as a disallowed character for plain links.
2023-10-09 20:24:43 -04:00
Tom Alexander
47a440147f
Fix formatting.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-09 19:52:32 -04:00
Tom Alexander
8a91b9a074
Merge branch 'subscript_and_superscript_properties'
2023-10-09 19:52:05 -04:00
Tom Alexander
d1ef83afca
Compare properties of subscript and superscript.
2023-10-09 19:51:31 -04:00
Tom Alexander
86dd526dde
Merge branch 'statistics_cookie_properties'
2023-10-09 19:40:39 -04:00
Tom Alexander
4d88256394
Compare statistics cookies properties.
2023-10-09 19:40:13 -04:00
Tom Alexander
c49455e9ce
Merge branch 'target_properties'
2023-10-09 19:37:54 -04:00
Tom Alexander
a588da2c4a
Compare target properties.
2023-10-09 19:37:47 -04:00
Tom Alexander
869c98d8b2
Compare line break properties.
2023-10-09 19:33:51 -04:00
Tom Alexander
0374743cad
Merge branch 'inline_source_block_properties'
2023-10-09 19:32:04 -04:00
Tom Alexander
4bc2f48738
Compare inline source block properties.
2023-10-09 19:31:57 -04:00
Tom Alexander
69500837f2
Merge branch 'inline_babel_properties'
2023-10-09 19:25:33 -04:00
Tom Alexander
0d0b9863c3
Populate inline babel call fields.
2023-10-09 19:25:00 -04:00
Tom Alexander
6bc6fdc87b
Compare properties for inline babel calls.
2023-10-09 19:21:58 -04:00
Tom Alexander
53b9deff10
Merge branch 'citation_properties'
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-10-09 19:14:05 -04:00
Tom Alexander
627f16e3a0
Update text markup tests with failure cases.
2023-10-09 19:10:55 -04:00
Tom Alexander
bf1a281c29
Footnote reference description is in a confined context.
2023-10-09 18:23:13 -04:00
Tom Alexander
df4daa0e16
Do not include context in tracing.
2023-10-09 18:02:36 -04:00
Tom Alexander
5cd34ba3a2
Create a new context tree when calling into confine_context.
...
The parent exit matchers were causing an issue.
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
876d042c37
Fix tests.
2023-10-09 15:54:30 -04:00
Tom Alexander
81c0b7079f
Do not include leading slash in citation style.
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
2023-10-09 15:48:43 -04:00
Tom Alexander
4a367dd7e0
Include closing semicolon in citation reference.
2023-10-09 15:45:10 -04:00
Tom Alexander
8a0f9d4540
Fix comparing key and mark prefix/suffix as optional.
2023-10-09 15:41:21 -04:00
Tom Alexander
f6155ecf93
Switch to returning ComparePropertiesResult.
...
This is to support returning lists of child results for properties that contain lists of ast nodes.
2023-10-09 15:33:33 -04:00
Tom Alexander
c077d34933
Populate citation reference properties.
2023-10-09 15:33:33 -04:00
Tom Alexander
1ecc3ecf9d
Fill citation fields.
2023-10-09 15:33:33 -04:00
Tom Alexander
ced35e1694
Merge branch 'footnote_reference_properties'
2023-10-09 15:33:13 -04:00
Tom Alexander
840dc0a750
Support text markup at the start of a regular link description.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-09 14:02:27 -04:00
Tom Alexander
adc5a383c3
Allow text markup at the start of a radio target.
2023-10-09 13:47:36 -04:00
Tom Alexander
5ac12229f4
Fix footnote reference type.
2023-10-09 13:23:08 -04:00
Tom Alexander
9565435526
Compare footnote reference properties.
2023-10-09 13:14:35 -04:00
Tom Alexander
e39562c85d
Roll out the new children functions to all compare functions using the new compare_properties macro.
...
We will roll it out to the rest of them when we move them over to the new compare_properties macro.
2023-10-09 13:08:45 -04:00
Tom Alexander
c49556bd5d
Merge branch 'export_snippet_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-09 13:02:07 -04:00
Tom Alexander
84ec2f2023
Introduce functions to compare children and assert there are no children.
2023-10-09 13:01:55 -04:00
Tom Alexander
00ed63dcaa
Compare properties for export snippets.
2023-10-09 13:01:55 -04:00
Tom Alexander
8dde8ce4e1
Merge branch 'latex_fragment_properties'
2023-10-09 13:01:29 -04:00
Tom Alexander
4e551e6d7e
Compare latex fragment properties.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-09 12:30:59 -04:00
Tom Alexander
ea29ad8667
Merge branch 'entity_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-09 10:33:20 -04:00
Tom Alexander
085e728c34
Add an all entities test without escaping braces.
2023-10-09 10:33:07 -04:00
Tom Alexander
99318f39e3
Do not accept escaping {} for entities ending in whitespace.
2023-10-09 10:33:07 -04:00
Tom Alexander
c679a85e77
Fix sorting of entity names.
2023-10-09 10:33:07 -04:00
Tom Alexander
fc17fc224c
Update definitions to the version of entities used in the org-mode in the docker container.
2023-10-09 10:33:07 -04:00
Tom Alexander
7fe7e7a6ea
Add use_brackets.
2023-10-09 10:33:07 -04:00
Tom Alexander
ef591556fe
Populate entity fields.
2023-10-08 18:06:56 -04:00
Tom Alexander
c150aa4dea
Add support for an org-entities global setting.
2023-10-08 18:01:42 -04:00
Tom Alexander
1df6777b0b
Starting to compare entity properties.
2023-10-08 17:24:03 -04:00
Tom Alexander
8a109276df
Merge branch 'macro_properties'
2023-10-08 17:17:51 -04:00
Tom Alexander
f07d041eb9
Fix handling capitalization in macro names.
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-08 16:51:44 -04:00
Tom Alexander
9bdec391f1
Do not capture trailing whitespace on the final macro arg.
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-08 16:39:22 -04:00
Tom Alexander
b9ead09dde
Add test showing we are not handling trailing whitespace in macro args properly.
2023-10-08 16:34:28 -04:00
Tom Alexander
dd009498dd
Switch to using coalesce_whitespace_escaped for macro args.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-08 16:19:25 -04:00
Tom Alexander
17c745ee71
Improve coalesce_whitespace_escaped to borrow when single spaces are used.
2023-10-08 16:15:49 -04:00
Tom Alexander
41aa0349a0
Add tests for coalesce_whitespace_escaped.
2023-10-08 16:06:52 -04:00
Tom Alexander
a6adeee40b
Handle escaping the characters in org macro arguments.
2023-10-08 15:54:56 -04:00
Tom Alexander
a32cea8139
Coalesce whitespace in macro args.
2023-10-08 15:08:21 -04:00
Tom Alexander
37bc5ef712
Do not include whitespace at the end of value.
2023-10-08 14:48:29 -04:00
Tom Alexander
1a2f0856da
Compare macro properties.
2023-10-08 14:40:01 -04:00
Tom Alexander
3f707149e3
Merge branch 'angle_link_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-08 14:18:25 -04:00
Tom Alexander
e9276e35ca
Add comments.
2023-10-08 14:18:17 -04:00
Tom Alexander
3041a575f9
Fix lifetimes.
2023-10-08 14:13:02 -04:00
Tom Alexander
42dbda494a
Switch to using a similar optimized Cow function for regular link.
2023-10-08 14:11:46 -04:00
Tom Alexander
0e791e67ab
Move the angle link string processing functions to a util file.
...
Since I bothered to do the right thing and implement these as returning Cow so I can avoid unnecessary allocations, I figure I should move them to a util file so they can be re-used.
2023-10-08 13:36:57 -04:00
Tom Alexander
ba55e0df4f
Remove all whitespace from search option if it contains any line breaks and handle triple+ slashes for file links.
2023-10-08 13:23:12 -04:00
Tom Alexander
d987b9b75b
Remove line breaks from path and do not allow search option for protocol links.
2023-10-08 13:02:09 -04:00
Tom Alexander
aa253c38dd
Parse out the angle link properties.
2023-10-08 12:46:18 -04:00
Tom Alexander
ceb5376b21
Fix handling of search option for plain links when parenthesis are involved.
2023-10-08 10:57:05 -04:00
Tom Alexander
b64c1c944b
Allow :: to end links regardless of parenthesis.
2023-10-08 10:57:05 -04:00
Tom Alexander
8bc79f9ef3
Add tests for angle links.
2023-10-08 10:57:04 -04:00
Tom Alexander
488372b070
Merge branch 'plain_link_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-08 10:04:44 -04:00
Tom Alexander
120a06055f
Handle 3 or more slashes in the path for regular links.
2023-10-08 09:54:10 -04:00
Tom Alexander
bbcafef8bf
Handle 3 or more slashes in the path for plain links.
2023-10-08 09:51:12 -04:00
Tom Alexander
038535174b
Do not allow empty path in plain links and do not remove "//" in regular links.
2023-10-08 09:34:47 -04:00
Tom Alexander
1bbe8fc688
Do not strip "//" from plain link path.
2023-10-08 09:28:09 -04:00
Tom Alexander
ba8115c648
Remove "//" from file paths.
2023-10-08 09:16:48 -04:00
Tom Alexander
0030ef4459
Parse application and handle parenthesis in regular links.
2023-10-08 09:10:47 -04:00
Tom Alexander
20a8683894
Handle puncuation-only search options.
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-07 03:25:37 -04:00
Tom Alexander
3aa84c1743
Add test showing we are not handling puncutation-only search options properly.
2023-10-07 03:23:45 -04:00
Tom Alexander
7196e10b69
Set up regular links for adding application.
2023-10-07 03:14:16 -04:00
Tom Alexander
0c34df159f
Add test showing we are not handling application in regular links properly.
2023-10-07 03:03:57 -04:00
Tom Alexander
ddb09a1805
Add support for application in plain links.
2023-10-07 03:00:40 -04:00
Tom Alexander
c58b850570
Add support for search options.
2023-10-07 02:42:07 -04:00
Tom Alexander
a55694176c
Compare the properties of plain links.
2023-10-07 02:22:36 -04:00
Tom Alexander
6973d5a2c0
Since value and path are always the same for radio links, I removed the extra value.
2023-10-07 01:48:16 -04:00
Tom Alexander
592e773920
Add tests for plain link search options and relative paths.
2023-10-07 01:44:31 -04:00
Tom Alexander
be553aefb1
Add test showing plain links cannot be templates.
2023-10-07 01:44:31 -04:00
Tom Alexander
5694f80f41
Merge branch 'radio_target_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-07 01:43:58 -04:00
Tom Alexander
36327e92d7
Radio link did not need Cow.
...
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
I was only using Cow because regular links can use templates which would require owned data. Radio links do not share this feature.
2023-10-07 01:26:52 -04:00
Tom Alexander
c70eb69ed6
Compare radio target properties.
2023-10-07 01:24:32 -04:00
Tom Alexander
8d9ff77799
Merge branch 'radio_link_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-07 01:14:12 -04:00
Tom Alexander
029791e0b2
Fix tests.
2023-10-07 01:01:04 -04:00
Tom Alexander
8d621b32dc
Compare radio link properties.
rust-test Build rust-test has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-07 00:57:55 -04:00
Tom Alexander
dfad7b7888
Merge branch 'regular_link_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-07 00:34:14 -04:00
Tom Alexander
56348a6d54
Actually absolute paths are files too.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-07 00:15:37 -04:00
Tom Alexander
65e142a215
Link templates support single-colons and inject the value at the end if no %s is found.
2023-10-06 23:55:21 -04:00
Tom Alexander
aa0a0b890e
Relative paths are file links, absolute paths are fuzzy.
2023-10-06 23:48:55 -04:00
Tom Alexander
ab33730830
Search option also supports regex.
...
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
As seen on the list of possible search options at https://orgmode.org/manual/Search-Options.html .
2023-10-06 23:33:09 -04:00
Tom Alexander
4c8828b91b
Apply the link templates.
2023-10-06 23:33:09 -04:00
Tom Alexander
2ba5156ee1
Add a global setting for link templates.
2023-10-06 20:34:13 -04:00
Tom Alexander
ae3a6ff919
Turns out links can have templates.
2023-10-06 20:23:19 -04:00
Tom Alexander
4716e1ce5b
Switch to using AsRef<str> to make compare_property_quoted_string generic.
2023-10-06 20:23:19 -04:00
Tom Alexander
89fcf6cb54
Restrict protocol links to org-link-parameters.
2023-10-06 19:18:58 -04:00
Tom Alexander
f220fd63e5
Add org-link-parameters to the GlobalSettings.
2023-10-06 19:14:11 -04:00
Tom Alexander
7cf1f7b7bb
Only orgify the link text if there are line breaks present.
2023-10-06 19:05:56 -04:00
Tom Alexander
135ca133ea
Add tests for search option.
2023-10-06 18:56:11 -04:00
Tom Alexander
d126488891
Handle orgifying text in regular link path and raw-link.
2023-10-06 18:30:08 -04:00
Tom Alexander
51748afd41
Compare pathreg.
2023-10-06 17:28:26 -04:00
Tom Alexander
e84135985e
Parse out the pathreg on regular links.
2023-10-06 17:21:43 -04:00
Tom Alexander
448902bb05
Add regular link tests for all the types.
2023-10-06 16:52:45 -04:00
Tom Alexander
65df18171a
Add field list for regular link.
2023-10-06 16:42:31 -04:00
Tom Alexander
e2bc58a469
Merge branch 'compare_fields_macro'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-06 16:36:19 -04:00
Tom Alexander
fbe3c76ab7
Cleanup.
2023-10-06 16:32:49 -04:00
Tom Alexander
368c6a457e
Wrap the parameter sets in parenthesis.
2023-10-06 16:19:43 -04:00
Tom Alexander
c7dbe596b3
Switch to more generic implementation.
2023-10-06 16:03:41 -04:00
Tom Alexander
3da52a0826
Make a more generic version of compare_property_quoted_string.
...
This allows for the rust value to be determined by a function rather than hard-coded.
2023-10-06 14:07:25 -04:00
Tom Alexander
ae11e390d1
Add a default case for tokens which do not have any expected properties except for :standard-properties.
2023-10-06 13:45:19 -04:00
Tom Alexander
45dd38ac2d
Assume :standard-properties is an expected field.
2023-10-06 13:40:11 -04:00
Tom Alexander
7af18e2312
Move the EmacsField enum since it has nothing to do with ElispFact.
2023-10-06 13:32:39 -04:00
Tom Alexander
1b603f3a05
Implement the comparison.
2023-10-06 13:29:46 -04:00
Tom Alexander
d06e4de7b0
Starting a new macro for comparing fields.
...
This will help us assert that all fields are tested and that only expected fields are present.
2023-10-06 13:08:15 -04:00
Tom Alexander
e686666ea0
Merge branch 'text_markup_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-06 12:32:05 -04:00
Tom Alexander
672848d06a
Compare the properties of text markup.
2023-10-06 12:12:24 -04:00
Tom Alexander
627c785e24
Merge branch 'latex_environment_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-06 12:02:29 -04:00
Tom Alexander
758e224e6d
Move consuming trailing element whitespace inside the parsers.
...
This ensures the parsers can take into account the affiliated keywords when setting their source without needing the SetSource trait.
2023-10-06 12:02:14 -04:00
Tom Alexander
f79606047e
Compare value.
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
2023-10-05 20:13:10 -04:00
Tom Alexander
dd3de67a8c
Merge branch 'babel_call_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-05 20:07:30 -04:00
Tom Alexander
823426a4f1
Cleanup.
2023-10-05 20:04:52 -04:00
Tom Alexander
fa97124186
Handle nesting of brackets.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-05 19:51:13 -04:00
Tom Alexander
885fefd060
Implement generic function for balanced brackets text.
2023-10-05 19:51:13 -04:00
Tom Alexander
efac73798f
Add a test showing we need to count brackets.
2023-10-05 18:44:57 -04:00
Tom Alexander
68e392811e
Parse the babel call.
2023-10-05 18:44:56 -04:00
Tom Alexander
343af41f78
Separate babel call out to its own parser.
2023-10-05 16:27:36 -04:00
Tom Alexander
f49a1853ad
Merge branch 'fixed_width_area_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-05 04:14:35 -04:00
Tom Alexander
6bd8d9efd7
Cleanup.
2023-10-05 04:04:18 -04:00
Tom Alexander
18ad80e018
Compare value.
2023-10-05 03:58:42 -04:00
Tom Alexander
34a0858473
Merge branch 'diary_sexp'
2023-10-05 03:58:19 -04:00
Tom Alexander
4ba9d7439a
Compare value.
2023-10-05 03:46:14 -04:00
Tom Alexander
6f0439bb6d
Merge branch 'clock_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-05 03:41:02 -04:00
Tom Alexander
b478b6f5d7
Compare value, duration, and status.
2023-10-05 03:40:29 -04:00
Tom Alexander
02af3d0081
Merge branch 'lesser_block_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-05 02:37:58 -04:00
Tom Alexander
40685f05cc
Add a test for multiple names on a single element.
2023-10-05 02:28:24 -04:00
Tom Alexander
e21701b97c
Cleanup.
2023-10-05 02:26:11 -04:00
Tom Alexander
ef8a6884fe
Remove outdated TODO.
2023-10-05 02:20:25 -04:00
Tom Alexander
ac7125d9b6
Only allow a single export type for export blocks.
2023-10-05 02:17:53 -04:00
Tom Alexander
58ca9569a6
Compare export type.
2023-10-05 02:15:32 -04:00
Tom Alexander
1da521b08a
Compare value for export block.
2023-10-05 02:06:26 -04:00
Tom Alexander
386ad5091d
End switches at the first unrecognized word in src blocks.
2023-10-05 01:55:33 -04:00
Tom Alexander
5f84cd974d
Add test showing the first unrecognized word is the end of the switches for src blocks.
2023-10-05 01:10:50 -04:00
Tom Alexander
d8ea450a46
Add TODOs for comparing caption to elems that can have affiliated keywords.
2023-10-05 01:06:30 -04:00
Tom Alexander
3742f4fa08
Remove double option.
2023-10-05 00:53:11 -04:00
Tom Alexander
11a7234900
Handle empty parameters with whitespace preceding.
2023-10-05 00:49:15 -04:00
Tom Alexander
50a3631b79
Handle whitespace after parameters in src blocks.
2023-10-05 00:43:03 -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
65eda08843
Re-work the element parser to handle affiliated keywords before elements that cannot have affiliated keywords.
2023-10-04 22:47:13 -04:00
Tom Alexander
b82d4c0eca
Fix finding name keyword in affiliated keywords list.
2023-10-04 21:32:10 -04:00
Tom Alexander
93fe46e4e7
Populate the name field on elements.
2023-10-04 21:27:55 -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
ab4a0c1224
Clean up.
2023-10-04 21:05:20 -04:00
Tom Alexander
786521ad4a
Add affiliated keyword matching to the detect_* functions.
2023-10-04 21:03:32 -04:00
Tom Alexander
d8102b7bc2
Move the affiliated keywords parser inside the specific element parsers.
...
We need access to the affiliated keywords to do things like set the name of the element, and only half the element parsers are allowed to have affiliated keywords, so it makes sense to move it inside the specific parsers.
2023-10-04 20:55:48 -04:00
Tom Alexander
a26640355c
Add check for name on paragraph.
2023-10-04 19:58:09 -04:00
Tom Alexander
057c8a1387
Compare name.
2023-10-04 19:43:34 -04:00
Tom Alexander
4fc81e983a
Add tests for names for lesser blocks.
2023-10-04 19:39:50 -04:00
Tom Alexander
258e9485de
Add tests for names and references in src and example blocks.
2023-10-04 19:34:10 -04:00
Tom Alexander
87ac18e6b2
Add real handling for preserve indent.
...
Now that I know which flag changes this setting, we can handle it properly.
2023-10-04 19:23:47 -04:00
Tom Alexander
e1e4ac75e4
Add a test for preserve indent.
2023-10-04 19:05:28 -04:00
Tom Alexander
c877116540
Fix handling of spaces between language, switches, and parameters.
2023-10-04 18:57:51 -04:00
Tom Alexander
8e70773b15
Fix handling cases where only language is specified before parameters.
2023-10-04 18:11:38 -04:00
Tom Alexander
f046b16c11
Compare src block parameters.
2023-10-04 18:02:50 -04:00
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
d059afef07
Add a setting for coderef_label_format.
2023-10-04 15:48:57 -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
afb43ff34f
Switch to getting the contents with a function to handle the escaped lines.
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
650cbc17db
Compare switches for example block.
2023-10-04 10:04:11 -04:00
Tom Alexander
1d7770e590
Rename data to switches in example and src block.
2023-10-04 09:59:11 -04:00
Tom Alexander
bf038db31c
Add test showing trailing whitespace is captured in the switches.
2023-10-04 09:53:33 -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
2eaef82fdb
Organize lesser block tests into subfolders.
2023-10-04 09:46:09 -04:00
Tom Alexander
00dc7b636c
Add more tests.
2023-10-04 09:42:36 -04:00
Tom Alexander
e6c809ab03
Compare value for comment block.
2023-10-04 09:35:19 -04:00
Tom Alexander
e673aa862e
Publish version 0.1.9.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-03 00:18:00 -04:00
Tom Alexander
3b6659c5fd
Merge branch 'table_properties'
rust-build Build rust-build has succeeded
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-03 00:14:21 -04:00
Tom Alexander
68a3f8b87e
Fix table rule row detection.
2023-10-03 00:13:15 -04:00
Tom Alexander
b1244de1dc
Compare row type.
2023-10-03 00:03:58 -04:00
Tom Alexander
e5a402ee1b
Compare type and value.
...
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
Since we only support org-mode tables, type is always org. Value seems to always be nil, not sure why.
2023-10-02 23:57:17 -04:00
Tom Alexander
d4a2ad4a7f
Merge branch 'node_property_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 23:47:11 -04:00
Tom Alexander
3d1b2713ed
Compare key and value.
2023-10-02 23:45:31 -04:00
Tom Alexander
60bec4695b
Merge branch 'drawer_properties'
2023-10-02 23:38:34 -04:00
Tom Alexander
d992947ff1
Compare name.
2023-10-02 23:34:06 -04:00
Tom Alexander
76fb24d1d1
Merge branch 'comment_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 23:30:29 -04:00
Tom Alexander
b56318fbe4
Add TODO comment.
2023-10-02 23:29:58 -04:00
Tom Alexander
8169499de3
Compare value.
2023-10-02 23:28:32 -04:00
Tom Alexander
29d9e76545
Merge branch 'footnote_definition_properties'
2023-10-02 22:50:26 -04:00
Tom Alexander
4d356b855e
Compare label.
2023-10-02 22:48:54 -04:00
Tom Alexander
ae66d1bd89
Fix tracing build.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 22:45:25 -04:00
Tom Alexander
c551938904
Merge branch 'dynamic_block_properties'
2023-10-02 22:43:26 -04:00
Tom Alexander
0fb80e3fee
Compare name and parameters.
2023-10-02 22:41:56 -04:00
Tom Alexander
590e7fba0e
Merge branch 'greater_block_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 22:37:11 -04:00
Tom Alexander
4a72747dc9
Compare name and parameters.
2023-10-02 22:33:00 -04:00
Tom Alexander
2352636672
Split GreaterBlock into CenterBlock, QuoteBlock, and SpecialBlock.
...
Center and quote blocks do not have parameters nor do they store their name so I am separating them out.
2023-10-02 22:33:00 -04:00
Tom Alexander
36217f5704
Do not capture trailing whitespace in parameters.
2023-10-02 21:14:07 -04:00
Tom Alexander
0654b676f7
Merge branch 'planning_properties'
rust-build Build rust-build has failed
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 21:00:08 -04:00
Tom Alexander
a80d171e4d
Bubble up planning variables to the headline.
2023-10-02 20:37:46 -04:00
Tom Alexander
2e1a946ac9
Compare scheduled, deadline, and closed.
2023-10-02 20:25:08 -04:00
Tom Alexander
01c2f1bf66
Add a test for a timestamp with a malformed repeater.
2023-10-02 20:04:39 -04:00
Tom Alexander
be483110ef
Merge branch 'timestamp_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 20:00:29 -04:00
Tom Alexander
94401dcf00
Allow REST despite no TIME.
2023-10-02 19:51:29 -04:00
Tom Alexander
2b5df83956
Format the code.
2023-10-02 19:24:47 -04:00
Tom Alexander
d53b9e1e1f
Fix get_property.
...
This was returning the error when a token was not an atom whereas we only wanted to check to see if it was the atom nil.
2023-10-02 19:22:35 -04:00
Tom Alexander
5c929ffc13
Fix repeater type.
...
I had Cumulative and CatchUp backwards.
2023-10-02 19:18:25 -04:00
Tom Alexander
bc3224be7a
Revert the rest_end functions.
2023-10-02 19:09:20 -04:00
Tom Alexander
54c66fb4d6
Change get_property to allow absent values.
...
We're returning an Option<> anyway so might as well handle absent values.
2023-10-02 19:07:12 -04:00
Tom Alexander
6a8ae9d838
Compare warning delay and repeater.
2023-10-02 18:58:30 -04:00
Tom Alexander
512432c5f0
Do not allow time range timestamps with REST on the first TIME.
2023-10-02 17:51:33 -04:00
Tom Alexander
890cd3e4fd
Compare start/end time.
2023-10-02 17:17:05 -04:00
Tom Alexander
9846cde2f0
Trim whitespace from raw value.
2023-10-02 16:32:33 -04:00
Tom Alexander
dec3242e72
Implement the Time struct.
2023-10-02 16:24:51 -04:00
Tom Alexander
a8a34e2d9c
Compare date start/end.
2023-10-02 16:16:19 -04:00
Tom Alexander
c55fae86f8
Improve lifetimes for get_property_numeric.
2023-10-02 15:51:29 -04:00
Tom Alexander
e7ec23af3d
Move the Date struct into types and implement a get_property_numeric.
2023-10-02 15:49:51 -04:00
Tom Alexander
10ae36a419
Implement date types with basic validation.
2023-10-02 15:10:39 -04:00
Tom Alexander
ecdfd7087f
Compare raw-value.
2023-10-02 14:45:20 -04:00
Tom Alexander
3ed9b552e2
Compare range type.
2023-10-02 14:35:45 -04:00
Tom Alexander
d04c8c832c
Compare timestamp type.
2023-10-02 13:40:37 -04:00
Tom Alexander
9575ef30ac
Fix compilation.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 13:19:43 -04:00
Tom Alexander
06ecf41663
Add notes about the fields for timestamps.
2023-10-02 13:19:43 -04:00
Tom Alexander
10d03fd432
Merge branch 'standard_ast_node'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-02 13:14:22 -04:00
Tom Alexander
a62c3fc522
Move AstNode into the types crate.
...
Now that it is used for more than just iteration, it makes sense to promote it to the types crate.
2023-10-02 13:10:45 -04:00
Tom Alexander
25f664e69e
Fix warnings.
2023-10-02 13:05:51 -04:00
Tom Alexander
52e0d305aa
Remove compare_element and compare_object.
2023-10-02 13:05:29 -04:00
Tom Alexander
418c5c1ce8
Implement the traits for all ast node types.
2023-10-02 12:53:23 -04:00
Tom Alexander
ecd523fa8f
Fix lifetimes in the compare functions.
2023-10-02 12:36:09 -04:00
Tom Alexander
c0555dec0b
Fix lifetimes for DiffEntry/DiffResult.
2023-10-02 12:28:48 -04:00
Tom Alexander
1b788f3f21
Fix lifetimes on StandardProperties.
2023-10-02 12:11:05 -04:00
Tom Alexander
b3382c66cd
Fix lifetimes on ElispFact.
...
This was listed as a yellow flag on https://quinedot.github.io/rust-learning/pf-shared-nested.html .
2023-10-02 12:11:05 -04:00
Tom Alexander
2a003b85fd
Merge branch 'headline_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has failed
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 11:41:04 -04:00
Tom Alexander
270ba53150
Set is_footnote_section during parsing.
2023-10-02 11:20:43 -04:00
Tom Alexander
de5788d8f3
Introduce a struct for the partially-parsed headline.
...
We are returning so many fields from that parser that managing a tuple is becoming unreadable. The struct should add some structure 😉 to the code.
2023-10-02 11:16:05 -04:00
Tom Alexander
5a254392cb
Add more tests.
2023-10-02 10:53:52 -04:00
Tom Alexander
178894680b
Compare footnote section.
2023-10-02 10:48:34 -04:00
Tom Alexander
599b3b8f0a
Apply category even if there are radio targets.
rustfmt Build rustfmt has failed
rust-build Build rust-build has failed
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-02 10:26:57 -04:00
Tom Alexander
d78ce10a0b
Compare raw-value.
2023-10-02 10:26:57 -04:00
Tom Alexander
12ab9beada
Merge branch 'document_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-30 16:06:05 -04:00
Tom Alexander
186201a4b5
Remove category from global settings.
...
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
This setting does not impact parsing so we can iterate over the final document to find the keywords.
2023-09-30 14:35:22 -04:00
Tom Alexander
d38b0a84f6
Fix handling file names with periods before the file extension.
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-30 01:26:24 -04:00
Tom Alexander
6ed35f4674
Minor cleanup.
2023-09-30 00:16:19 -04:00
Tom Alexander
846a8b3729
Support reading category from in-buffer-settings.
2023-09-30 00:14:26 -04:00
Tom Alexander
896250836b
Add support for parsing quoted strings containing escaped octals.
2023-09-29 23:59:33 -04:00
Tom Alexander
6c77586960
Improve error message.
2023-09-29 23:59:32 -04:00
Tom Alexander
fc7d4bd949
Set Document path and category based on file path.
2023-09-29 23:59:32 -04:00
Tom Alexander
f1e35e317b
Compare document path.
2023-09-29 21:20:23 -04:00
Tom Alexander
3fb2b5d31c
Undo the getters change.
...
The getters were a good idea, but if we are going to support editing later, we will need to expose the fields or write A LOT of boiler-plate. The getters also would prevent people from moving values out of the AST without even more boiler-plate. It is simply not worth it at this stage, so we will need to tolerate frequently changing semver versions as the public interface changes since *every* field in the AST is public.
2023-09-29 21:14:55 -04:00
Tom Alexander
d1dac0b8de
Compare document category.
2023-09-29 20:57:09 -04:00
Tom Alexander
93f1bcd744
Add getters for Document.
2023-09-29 20:57:09 -04:00
Tom Alexander
47674a6907
Merge branch 'initial_getters'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-29 20:40:45 -04:00
Tom Alexander
5d1582be4d
Remove multi_field_getter_iter.
...
This was written because I originally intended to make the fields of the ast node types entirely private, but that made constructing them tedious so they are pub(crate) which coincidentally also allows them to be used by the iterator.
2023-09-29 20:40:31 -04:00
Tom Alexander
dae10c2eef
Initial work for exposing getters and hiding the fields of the ast nodes.
...
Ultimately this is about semver and exposing a stable interface while allowing the internal representation to change. The fields are still pub(crate) to make constructing the types easier inside this crate, which should be fine because we can refactor the code inside this crate whenever the internal structure changes.
2023-09-29 20:40:31 -04:00
Tom Alexander
5e127fec11
Merge branch 'plain_list_item_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-29 19:30:32 -04:00
Tom Alexander
064a4eeee7
Compare plain list item pre blank.
2023-09-29 19:30:02 -04:00
Tom Alexander
7727b5ef47
Compare plain list item counter.
2023-09-29 18:45:38 -04:00
Tom Alexander
967e74c147
Compare plain list item bullets.
2023-09-29 17:28:50 -04:00
Tom Alexander
13697df7ea
Merge branch 'test_combinations'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-29 16:39:02 -04:00
Tom Alexander
07e11e359a
Add tests for odd headline levels.
2023-09-29 16:37:22 -04:00
Tom Alexander
0c363c8dd6
Add tests for tab width.
2023-09-29 16:03:55 -04:00
Tom Alexander
9a479b33e0
Make the same changes we did for stdin compare to comparing files.
2023-09-29 15:42:07 -04:00
Tom Alexander
7a854838ef
Clean up code duplication.
2023-09-29 15:35:57 -04:00
Tom Alexander
2012e5a6d5
Test org_mode_samples both with and without alphabetical lists enabled.
2023-09-29 15:30:38 -04:00
Tom Alexander
f1261ddce8
Remove "org_" prefix from list_allow_alphabetical.
...
These settings are exclusively for parsing org-mode so the prefix is redundant.
2023-09-29 14:33:52 -04:00
Tom Alexander
3a422e6435
Counter set always allows alphabetic values regardless of org-list-allow-alphabetical.
2023-09-29 14:32:41 -04:00
Tom Alexander
6670f8c768
Add tests for alphabetic counter sets.
2023-09-29 14:26:39 -04:00
Tom Alexander
d7a36c8aca
Merge branch 'plain_list_properties'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-29 13:05:03 -04:00
Tom Alexander
f820e27b17
Compare plain list type in diff.rs.
2023-09-29 13:03:25 -04:00
Tom Alexander
a4b1d462c3
Parse out the plain list type.
2023-09-29 12:49:10 -04:00
Tom Alexander
1b7326eafe
Use static strings for CustomError.
...
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
This resulted in a 20% speedup.
2023-09-29 12:02:26 -04:00
Tom Alexander
90433aa55f
Update callgrind script to build with optimizations.
2023-09-29 12:02:25 -04:00
Tom Alexander
a5b4eb40f6
Merge branch 'reduce_heap_iter'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-27 19:48:07 -04:00
Tom Alexander
48d550e1fc
Remove old implementation of iteration.
2023-09-27 19:45:40 -04:00
Tom Alexander
9ce042d5b6
Replace old iteration with new iteration.
2023-09-27 19:44:06 -04:00
Tom Alexander
8784da5179
Implement all ast node iteration.
2023-09-27 19:30:21 -04:00
Tom Alexander
875a50ae46
Finish implementing AstNodeIter for all types.
2023-09-27 19:02:33 -04:00
Tom Alexander
c4ea3fbf88
Implement the rest of the elements.
2023-09-27 18:55:50 -04:00
Tom Alexander
95fa834420
Switch to using the multi field macro for document and heading.
2023-09-27 18:38:51 -04:00
Tom Alexander
32a7ce3f36
Implement a macro for iterators with multiple fields.
2023-09-27 18:36:29 -04:00
Tom Alexander
d8c52568db
Add PlainListItem to ast nodes.
2023-09-27 18:21:42 -04:00
Tom Alexander
c5be75ee8d
Implement DocumentIter and SectionIter.
2023-09-27 18:05:53 -04:00
Tom Alexander
282417ee94
Implementing HeadingIter but I do not think it can be generic enough for a macro.
...
Hopefully most types won't need so much care.
2023-09-27 18:00:30 -04:00
Tom Alexander
ab46a9e5c6
Ran into issue with heading, naming this type is going to be a nightmare.
2023-09-27 15:56:45 -04:00
Tom Alexander
4359fc9266
Introduce a macro for empty iterators.
2023-09-27 15:47:01 -04:00
Tom Alexander
7419b75d76
Implement empty iterator for types with no ast node children.
2023-09-27 15:38:33 -04:00
Tom Alexander
e4cfc296e5
Introduce macro to simplify this.
2023-09-27 15:28:43 -04:00
Tom Alexander
9a1d91ae45
Manual implementation of BoldIter.
2023-09-27 15:17:56 -04:00
Tom Alexander
df5d699a39
Implement Into for AstNode.
2023-09-27 15:07:26 -04:00
Tom Alexander
9111408d83
Introduce AstNode and AstNodeIter enums.
2023-09-27 14:24:08 -04:00
Tom Alexander
35f058a354
Starting a new iteration implementation.
...
This implementation will reduce the use of heap by elimininating Box<> from the individual iterators but it will still need heap for maintaining a vector of iterators from nodes.
2023-09-27 13:48:17 -04:00
Tom Alexander
dd91e506bd
Merge branch 'scan_optimization'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-24 03:11:46 -04:00
Tom Alexander
cd781a7dcf
Add simple test to prove the scan for in-buffer settings is still working.
2023-09-24 03:09:51 -04:00
Tom Alexander
8cd0e4ec63
Optimize scanning for in-buffer settings by scanning forward for possible keywords.
...
Previously we stepped through the document character by character which involved a lot of extra processing inside OrgSource. By scanning for possible keywords, we can skip many of the intermediate steps.
2023-09-24 02:58:32 -04:00
Tom Alexander
f9460b88d7
Add a TODO for a performance optimization.
2023-09-24 01:59:26 -04:00
Tom Alexander
0b2a5f4fbf
Change all runtime asserts in private functions to debug_assert.
...
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
These functions aren't exposed to the public so we can confidently say that if they work in dev then they will work in production. Removing these asserts theoretically should result in a speedup.
2023-09-23 21:17:58 -04:00
Tom Alexander
6097e4df18
Merge branch 'standard_properties'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-23 21:12:40 -04:00
Tom Alexander
d5b1014fe4
Unify the standard properties checks in diff.
...
Instead of copy+pasting them into each compare function, we now call a shared function from a handful of places.
2023-09-23 21:05:56 -04:00
Tom Alexander
dd8a8207ce
Move assert bounds for elements and objects (except PlainText) to the compare element/object functions.
2023-09-23 19:35:12 -04:00
Tom Alexander
b4c985071c
Add a GetStandardProperties trait.
2023-09-23 19:13:01 -04:00
Tom Alexander
d4f27ef297
Remove only use of Source trait.
2023-09-23 17:59:13 -04:00
Tom Alexander
f25246556c
Rename the existing StandardProperties struct to EmacsStandardProperties.
2023-09-23 17:44:54 -04:00
Tom Alexander
3fe56e9aa3
Implement StandardProperties for all the AST nodes and restrict the Source trait to this crate.
...
Currently this is a copy of the Source trait but it will grow to more functions. The Source trait is restricted to this crate in anticipation of its removal in favor of StandardProperties.
2023-09-23 17:42:27 -04:00
Tom Alexander
f180412ff3
Introduce a StandardProperties trait.
2023-09-23 17:33:46 -04:00
Tom Alexander
f0e28206ff
Add a supported versions section to the README.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-23 14:54:56 -04:00
Tom Alexander
1f64e289a2
Add TODOs for all of the properties that need to be compared.
rust-foreign-document-test Build rust-foreign-document-test has started
rustfmt Build rustfmt has failed
rust-build Build rust-build has failed
rust-test Build rust-test has failed
2023-09-23 14:46:36 -04:00
Tom Alexander
f7690ff64b
Remove an allocation for lesser block end.
2023-09-22 00:55:10 -04:00
Tom Alexander
bd5e50d558
Remove TODO.
...
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
I tested and we cannot nest different types of dynamic blocks.
2023-09-21 23:58:41 -04:00
Tom Alexander
de87b7df93
Publish version 0.1.8.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-21 23:47:48 -04:00
Tom Alexander
a267d13fd7
Merge branch 'worg'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-21 23:38:07 -04:00
Tom Alexander
a29973a110
Add a "format" makefile target.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-21 23:20:22 -04:00
Tom Alexander
31c782499e
Do not match text markup end with empty contents.
2023-09-21 23:20:21 -04:00
Tom Alexander
b7c7057095
Add a test for double tilde.
2023-09-21 22:52:21 -04:00
Tom Alexander
49e3c90a3a
Add a test showing a text markup condition we are not handling and significantly reduce allocations by using references for the captured marker for text markup.
2023-09-21 22:35:09 -04:00
Tom Alexander
129228c5c5
Require either eof or whitespace to line ending for valueless items.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-21 22:06:30 -04:00
Tom Alexander
f0a7493a89
Support blank lines for descriptive list with empty value before final list item.
2023-09-21 22:03:21 -04:00
Tom Alexander
dc5695ec9f
Update description list test to ensure we match blank values properly for both final and non-final items.
2023-09-21 21:47:42 -04:00
Tom Alexander
4ff62fbfae
Support backslash as a post character for text markup.
2023-09-21 21:25:33 -04:00
Tom Alexander
c892d406c3
Do not parse the tag for a plain list item if it is an ordered plain list item.
2023-09-21 20:58:03 -04:00
Tom Alexander
1a41cfc6c7
Support detecting line indentation when checking for contentless plain list items.
2023-09-21 20:08:04 -04:00
Tom Alexander
4f34ab9089
Support subscript/superscript wrapped in parenthesis.
2023-09-21 19:21:47 -04:00
Tom Alexander
9b2348c0ef
Allow matched parenthesis inside plain links.
2023-09-21 18:51:11 -04:00
Tom Alexander
5716cbccea
Remove unnecessary peak.
2023-09-21 16:34:24 -04:00
Tom Alexander
124cd50243
Add more test cases.
2023-09-21 15:36:55 -04:00
Tom Alexander
bac5d6e1d9
Add a test for parenthesis in regular links for good measure.
...
We are properly handling this currently, but it is good to have more test coverage.
2023-09-21 14:34:51 -04:00
Tom Alexander
ba15999534
Add a test showing we are not handling parenthesis in links properly.
rust-test Build rust-test has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-21 14:31:13 -04:00
Tom Alexander
61c3e6c10e
Require table formulas have a value.
2023-09-21 14:12:18 -04:00
Tom Alexander
a7e130838d
Add a test showing that table formulas with no value do not get associated with the table.
2023-09-21 14:10:20 -04:00
Tom Alexander
853adadf91
Do not allow unescaped opening bracket in path for link.
2023-09-21 13:41:48 -04:00
Tom Alexander
7b61329889
Add test showing we are not parsing links wrapped in brackets correctly.
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-20 03:48:22 -04:00
Tom Alexander
9bcfb2f1da
Decide headline nesting by star count, not headline level.
...
It is possible to have two headlines that have the same level but different star counts when set to Odd because of rounding. Deciding nesting by star count instead of headline level avoids this issue.
2023-09-20 03:22:25 -04:00
Tom Alexander
4c8d9a3063
Do not require a colon to close dynamic blocks.
2023-09-20 02:37:26 -04:00
Tom Alexander
48cb3c4a02
Move the post-colon check into the item_tag_divider parser.
2023-09-19 23:57:40 -04:00
Tom Alexander
9e60ff6683
Support rematching on italic, underline, and strike-through.
2023-09-19 23:25:49 -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
716af5bb45
Update org-mode version.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-16 14:45:52 -04:00
Tom Alexander
6137a46231
Default to the release-lto profile for running compare in docker.
...
Since we're using docker volumes to cache the build, the extra build cost will only be paid once but the extra speed will be nice while investigating.
2023-09-16 14:15:19 -04:00
Tom Alexander
bdd04f4d5c
Do not allow '<' as a pre-character for text-markup but do allow start of file.
2023-09-16 14:06:31 -04:00
Tom Alexander
36bdc54703
Update bisect script to work with any depth relative path for setupfile.
...
This also switches to using stdin rather than writing the file slices to the filesystem.
2023-09-16 13:34:33 -04:00
Tom Alexander
3031b6edd4
Support arbitrary relative paths for setupfiles in run_docker_compare script.
2023-09-16 12:51:38 -04:00
Tom Alexander
1a704dd312
Honor the odd startup setting from org-mode files.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-15 22:54:49 -04:00
Tom Alexander
a74ea730f4
Read the odd startup option from org-mode files.
2023-09-15 22:31:15 -04:00
Tom Alexander
8450785186
Add test showing we are not handling the odd startup option for headline depth.
rust-test Build rust-test has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-15 22:08:42 -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
85454a0a27
Fix footnote reference function label matcher.
...
Previously when a label started with a number but contained other characters, this parser would fail because it would not match the entire label.
2023-09-15 21:14:44 -04:00
Tom Alexander
fdebf6dec5
Delete already solved TODO.
2023-09-15 21:08:52 -04:00
Tom Alexander
444d6758aa
Handle leading blank lines in greater blocks.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-15 21:03:35 -04:00
Tom Alexander
6c7203410e
Add a test showing we're not handling leading blank lines in greater blocks.
2023-09-15 17:02:41 -04:00
Tom Alexander
bfe67b1f75
Parse plain list item checkboxes.
2023-09-15 16:09:57 -04:00
Tom Alexander
fd41ad9c29
Pretend dos line endings do not exist.
2023-09-15 14:13:17 -04:00
Tom Alexander
7f751d4f28
Allow no digit in repeater in timestamp.
2023-09-15 13:12:54 -04:00
Tom Alexander
52a4dab67c
Use the timestamp parser in planning.
...
Previously we did not support inactive timestamps in planning. This fixes that.
2023-09-15 12:45:19 -04:00
Tom Alexander
3d86e75059
Always match the entire entity name.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-14 04:29:50 -04:00
Tom Alexander
ca6fdf1924
Support different cases in radio links.
2023-09-14 04:04:21 -04:00
Tom Alexander
66d16d89ed
Support interchangeable whitespace in re-matching plain text.
2023-09-14 04:00:34 -04:00
Tom Alexander
ee5e0698b1
Add an optimization idea.
2023-09-14 03:25:12 -04:00
Tom Alexander
22681b6a58
Support trailing whitespace in fixed-width areas.
2023-09-14 03:20:44 -04:00
Tom Alexander
876d33239e
Allow any character to be escaped in the path for links.
2023-09-14 03:05:11 -04:00
Tom Alexander
87941271a4
Handle headlines with trailing spaces without tags.
2023-09-14 02:43:40 -04:00
Tom Alexander
32b19d68d0
Support todo keywords with fast access.
2023-09-14 02:24:06 -04:00
Tom Alexander
830097b0a9
Add a test showing we are not handling fast access states in todo keywords.
2023-09-14 02:18:49 -04:00
Tom Alexander
44e9f708c9
Handle the possibility of a title-less headline.
2023-09-14 02:01:24 -04:00
Tom Alexander
fc4ff97c14
Add a test showing we are not handling empty headlines properly.
2023-09-14 00:50:31 -04:00
Tom Alexander
33372429dd
Add a config option for org-list-allow-alphabetical.
...
This fixes an issue where lines in a paragraph were incorrectly getting identified as lists because I had defaulted to assuming alphabetical bullets were allowed.
2023-09-14 00:27:54 -04:00
Tom Alexander
ac0db64081
Add cargo directive to rebuild the auto-generated tests when files under org_mode_samples get updated.
rust-test Build rust-test has failed
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-13 21:28:44 -04:00
Tom Alexander
b8a4876779
Disable auto-aligning tables when Emacs loads Org-mode.
...
Emacs will auto-align tables when org-mode is loaded if the document contains "#+STARTUP: align". Since Organic is just a parser, it has no business editing the input it receives so we are disabling this auto-align in Emacs to make the tests work properly.
2023-09-13 21:02:38 -04:00
Tom Alexander
925c42c8fb
Add test showing we currently are letting emacs align tables at startup.
2023-09-13 21:02:38 -04:00
Tom Alexander
7d4100d956
Add worg to the foreign document test.
...
A lot of the documents are failing so there are going to be a lot of bug fixes in this branch.
2023-09-13 20:10:50 -04:00
Tom Alexander
53d90a2949
Update the README to have instructions on running the tests and development programs.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-13 20:10:14 -04:00
Tom Alexander
26f41b83aa
Publish version 0.1.7.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-12 16:15:53 -04:00
Tom Alexander
e4c0e32536
Change public interface to return boxed dynamic error instead of String.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-12 15:52:01 -04:00
Tom Alexander
37e85158ea
Reduce the exposed functions when compare feature is enabled.
2023-09-12 15:48:37 -04:00
Tom Alexander
6589a755a6
Merge branch 'reduce_pub'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-11 15:37:33 -04:00
Tom Alexander
a651b79e77
Move sexp into compare.
2023-09-11 15:37:20 -04:00
Tom Alexander
98de5e4ec5
Remove unused sexp parser entry point.
2023-09-11 15:07:52 -04:00
Tom Alexander
cf383fa394
Only include sexp module if compare feature is enabled.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-11 14:59: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
a74319d381
Add TODO.
2023-09-11 13:09:46 -04:00
Tom Alexander
7e57285ea7
Merge branch 'additional_detects'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-11 12:59:18 -04:00
Tom Alexander
f103d168d5
Update diary sexp parser to match org-mode's behavior.
2023-09-11 12:34:57 -04:00
Tom Alexander
f54081437a
Add detect element functions for all elements that can be reasonably detected more efficiently than just parsing normally.
2023-09-11 12:28:15 -04:00
Tom Alexander
aa5988bc2f
Re-enable a test.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-11 11:18:25 -04:00
Tom Alexander
76ca2b9762
Merge branch 'description_list_colon_in_tag'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-11 10:42:25 -04:00
Tom Alexander
1561e1e580
Update plain list item tag parser to allow double colon as long as its not the last one on that line.
2023-09-11 10:29:15 -04:00
Tom Alexander
1f11bfa2ec
Join the plain list item tag end matchers again.
2023-09-11 10:13:22 -04:00
Tom Alexander
8440a3b256
Update test to show that we are not parsing description lists with double colon inside the tag correctly.
2023-09-11 10:01:50 -04:00
Tom Alexander
de7ad182b3
Make parse and compare their own binaries.
...
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
This ensures that both code paths are capable of being parsed by rust-analyzer simultaneously and I think it will be less confusing to newcomers.
2023-09-09 04:21:34 -04:00
Tom Alexander
b75d9f5c91
Remove an outdated comment.
2023-09-09 00:00:12 -04:00
Tom Alexander
612744ebd0
Publish version 0.1.6.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-08 23:28:59 -04:00
Tom Alexander
1b4b8b4bdb
Merge branch 'howard_abrams'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-08 23:19:19 -04:00
Tom Alexander
5587e19f16
Cleanup.
2023-09-08 23:19:08 -04:00
Tom Alexander
80f7098f9b
Compare table formulas.
2023-09-08 23:05:04 -04:00
Tom Alexander
84d2babda9
Parse table formulas.
2023-09-08 22:47:07 -04:00
Tom Alexander
cc56b79683
Add a test showing we're not handling table formulas.
2023-09-08 22:42:24 -04:00
Tom Alexander
0105b49d0d
Handle empty statistics cookies.
2023-09-08 22:21:49 -04:00
Tom Alexander
d79035e14d
Add a test showing we are not handling empty statistics cookies.
2023-09-08 22:21:19 -04:00
Tom Alexander
7545fb7e1a
Support keywords with colons in the key and without a space between the colon and value.
2023-09-08 22:17:10 -04:00
Tom Alexander
f30069efe7
Add a test showing we're not handling colons in keyword keys correctly.
2023-09-08 21:59:02 -04:00
Tom Alexander
d1fe2f6b09
Update the rest of the scripts to work with relative paths.
2023-09-08 21:50:32 -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
6a1bdd5fee
Support blank lines before content in footnote definitions.
2023-09-08 21:11:47 -04:00
Tom Alexander
5d20d3e99b
Add a test showing we are not handling empty space for footnote definitions correctly.
2023-09-08 20:28:21 -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
344ef04453
Add tests showing we are not handling tabs appropriately for description list tags.
2023-09-08 19:53:58 -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
b04341882c
Add test showing that we are not handling trailing spaces in description list tags correctly.
2023-09-08 19:24:03 -04:00
Tom Alexander
494fe5cceb
Handle contentless list items mid-document.
2023-09-08 19:01:46 -04:00
Tom Alexander
0110d23387
Update empty list test to show that we're not handling trailing whitespace for empty list items properly.
2023-09-08 18:41:57 -04:00
Tom Alexander
0d7a15bfeb
Handle spaces after statistics cookies.
2023-09-08 18:35:33 -04:00
Tom Alexander
352c20d1d8
Fix run_docker_compare_bisect with relative paths.
2023-09-08 18:05:10 -04:00
Tom Alexander
f82d2aada1
Fix run_docker_compare with relative paths.
2023-09-08 18:03:50 -04:00
Tom Alexander
669da4073e
Accept the end condition as a parameter to the plain text parser so it can adapt to the context.
2023-09-08 17:54:49 -04:00
Tom Alexander
0056657b65
Add a test showing the plain text parser is not handling subsets of objects like inside a table cell.
2023-09-08 17:27:02 -04:00
Tom Alexander
8780976c15
Consume trailing whitespace after planning.
2023-09-08 16:30:40 -04:00
Tom Alexander
dc8b8d08ab
Add test showing we break on empty sections that contain a planning.
2023-09-08 16:25:18 -04:00
Tom Alexander
93d3d9471f
Compare priority, archived, and commented in headlines.
2023-09-08 16:00:16 -04:00
Tom Alexander
c7c0deed74
Parse priority cookie and COMMENT from headlines.
2023-09-08 16:00:16 -04:00
Tom Alexander
b32c21eb1d
Add a test for a comment heading.
2023-09-08 16:00:16 -04:00
Tom Alexander
2e6e6fdd2b
Move sections to their own source file.
2023-09-08 15:08:16 -04:00
Tom Alexander
3cc2294387
Move headlines into their own file.
2023-09-08 15:05:42 -04:00
Tom Alexander
40f22034da
Make the item tag exit matcher a lower class than all all others.
...
This is to allow for " :: " inside a description list item's tag if it is nested inside another object.
2023-09-08 14:37:30 -04:00
Tom Alexander
ab612f293f
Update org-mode version.
2023-09-08 13:11:58 -04:00
Tom Alexander
57c2922e4a
Add test showing problem is description list parser.
2023-09-08 12:50:51 -04:00
Tom Alexander
c2eb1f51c8
Support blank lines between nested headlines.
2023-09-08 12:41:48 -04:00
Tom Alexander
b0930df788
Support zero skipped text in OrgSource slicing.
2023-09-07 04:16:00 -04:00
Tom Alexander
69512f559a
Fix end conditions for subscript and superscript.
2023-09-07 04:16:00 -04:00
Tom Alexander
76a81b73ac
Add a detect object function similar to the detect element function.
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
6676012eb1
Change footnote reference class to Gamma.
2023-09-07 04:15:59 -04:00
Tom Alexander
facbe716e9
Cleanup
2023-09-07 01:23:26 -04:00
Tom Alexander
827f3e1c98
Add the rest of the relevant howard abrams repos.
2023-09-06 21:37:09 -04:00
Tom Alexander
fcea7e5a4b
Add howard abrams demo-it and the upstreeam doomemacs repo to compare.
2023-09-06 21:11:46 -04:00
Tom Alexander
dda2b1e69f
Compare howard abrams hamacs.
2023-09-06 20:56:36 -04:00
Tom Alexander
f79d07a7c8
Compare howard abrams dotfiles.
2023-09-06 19:49:04 -04:00
Tom Alexander
45283b48d9
Update performance scripts to support taking input file parameters.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-06 19:31:09 -04:00
Tom Alexander
08e4c646e5
Merge branch 'full_foreign_compare'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 19:17:35 -04:00
Tom Alexander
f8b99ed235
Support counter set in plain list items.
2023-09-06 19:09:20 -04:00
Tom Alexander
6fc607cfe0
Compare node properties.
2023-09-06 18:54:47 -04:00
Tom Alexander
49afcf0db6
Support property nodes with colons in their key.
2023-09-06 18:54:01 -04:00
Tom Alexander
c4d7e646fc
Support spaces after the end of a lesser block.
2023-09-06 18:54:01 -04:00
Tom Alexander
3fc3a5d1ef
Add support for empty lesser blocks.
2023-09-06 18:11:57 -04:00
Tom Alexander
6e2fc362ea
Add support for babel-call keywords.
2023-09-06 18:04:53 -04:00
Tom Alexander
90fa48661c
Prefer the longer version of affiliated keywords.
2023-09-06 17:41:00 -04:00
Tom Alexander
5cefcd5fac
Add in the emacs repository org-mode documents.
2023-09-06 17:06:17 -04:00
Tom Alexander
b83a103c17
Update the foreign document test to use all org-mode documents from the org-mode repository.
2023-09-06 17:02:56 -04:00
Tom Alexander
d90ff5891b
Publish version 0.1.5.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 16:19:42 -04:00
Tom Alexander
a3c01805b8
Merge branch 'foreign_document_test'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-09-06 16:17:52 -04:00
Tom Alexander
e3d755317d
Add a top-level makefile target for running the foreign document test.
2023-09-06 16:17:42 -04:00
Tom Alexander
b89607fc8b
Handle CARGO_TARGET_DIR not being set.
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 16:12:41 -04:00
Tom Alexander
51c4e2b62a
Only use local folder for docker context.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-09-06 16:03:59 -04:00
Tom Alexander
a6561d37fb
Add the foreign document test to the CI.
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 16:00:09 -04:00
Tom Alexander
4e8b3eb422
Introduce a foreign document test docker container.
...
This test will grab documents from external sources and compare Organic's parser vs the official org-mode parser to ensure they are parsing the same. This is so we do not introduce large irrelevant documents in the git history and so we do not introduce documents with restrictive licenses into the repository.
2023-09-06 15:54:25 -04:00
Tom Alexander
2c31590974
Add a script to bisect org-mode source to find the line that breaks the compare.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 15:08:58 -04:00
Tom Alexander
28b2d27054
Consume trailing whitespace after a plain link.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 14:39:31 -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
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
ad4ef50669
Merge branch 'setupfile'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 12:43:01 -04:00
Tom Alexander
12cbb89861
Compare todo-type on headlines.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 12:39:03 -04:00
Tom Alexander
7c471ab32e
Compare keyword keys and values.
2023-09-06 12:10:57 -04:00
Tom Alexander
400f53e440
Cleanup.
2023-09-06 11:53:21 -04:00
Tom Alexander
028aeb70aa
Use the global settings todo keywords when parsing headlines.
2023-09-06 11:45:35 -04:00
Tom Alexander
70fafd801e
Apply the TODO keyword settings.
2023-09-06 11:07:57 -04:00
Tom Alexander
bdba495f69
Add a parser for the todo keyword's value.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-06 09:24:59 -04:00
Tom Alexander
b0392ad6fb
Trim the trailing space off keywords with values.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-04 22:35:46 -04:00
Tom Alexander
1c142b68c6
Make the parse entry point call the parse_with_settings entry point.
2023-09-04 22:11:56 -04:00
Tom Alexander
9060f9b26d
Only do a single pre-pass on the full document pulling out both setupfile and all other in-buffer settings.
...
rust-test Build rust-test has failed
rust-build Build rust-build has failed
Previously we made a separate pass just to find setupfile and then we pulled the in-buffer settings from everything.
2023-09-04 22:05:59 -04:00
Tom Alexander
d3c733c5ad
Take into account the source directory when parsing org-mode in Organic.
...
Previously only the emacs code was doing this.
2023-09-04 21:46:40 -04:00
Tom Alexander
275b4b53d1
Use a single function for finding all keywords.
2023-09-04 19:19:23 -04:00
Tom Alexander
d38e198258
Add a parse_with_settings function.
2023-09-04 17:44:27 -04:00
Tom Alexander
27cf6c0462
Remove unnecessary map_err from main.rs.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-04 17:29:50 -04:00
Tom Alexander
c7d5c89a60
Passing the setupfile contents to the document parser.
2023-09-04 17:16:08 -04:00
Tom Alexander
ee02e07717
Read the setup file into memory.
2023-09-04 16:53:02 -04:00
Tom Alexander
a7330e38e4
Enable dynamic access to the file access interface.
2023-09-04 16:29:41 -04:00
Tom Alexander
08eb59acd3
Rename parser_context to context.
2023-09-04 13:26:11 -04:00
Tom Alexander
da1ce2717d
Introduce a file access interface for reading additional files.
2023-09-04 13:00:41 -04:00
Tom Alexander
a8f277efe5
Scan for setupfile at the beginning of a parse.
2023-09-04 12:48:59 -04:00
Tom Alexander
7f6f22717b
Add comment.
2023-09-04 12:31:43 -04:00
Tom Alexander
0ef141d65e
Switch to putting radio targets in the global settings instead of the context tree.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-04 12:28:33 -04:00
Tom Alexander
71180d19fb
Fix reading contents from stdin in parse script.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-04 11:45:10 -04:00
Tom Alexander
33091112a5
Remove OrgSource from the public document parser interface.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-04 11:38:12 -04:00
Tom Alexander
5997567233
Merge branch 'stack_based_context'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-03 16:22:54 -04:00
Tom Alexander
2915a81edc
Cleanup.
2023-09-03 16:22:41 -04:00
Tom Alexander
df79cbd0b7
Give global options their own lifetime.
2023-09-03 16:22:40 -04:00
Tom Alexander
a7b9eb9db4
Lifetime issue.
2023-09-03 12:58:46 -04:00
Tom Alexander
d262833f9b
Fixing more errors.
2023-09-03 12:52:09 -04:00
Tom Alexander
0d438a8e0f
Fixing more errors.
2023-09-03 12:45:12 -04:00
Tom Alexander
0b009511ff
Fixing more errors.
2023-09-03 12:28:45 -04:00
Tom Alexander
3bdb24ad88
Fixing more errors.
2023-09-03 12:23:18 -04:00
Tom Alexander
fdf35ba23c
Fixing more errors.
2023-09-03 12:07:51 -04:00
Tom Alexander
cd69e08516
Fixing more errors.
2023-09-03 11:05:34 -04:00
Tom Alexander
b54c6d366c
Fixing more errors.
2023-09-03 00:27:50 -04:00
Tom Alexander
15e8d1ab77
Implement check_exit_matcher.
2023-09-03 00:05:47 -04:00
Tom Alexander
8502a8830d
Fixing some errors.
2023-09-02 23:16:02 -04:00
Tom Alexander
74a6101de7
Update RefContext to three lifetimes.
2023-09-02 22:45:46 -04:00
Tom Alexander
ba57eb16fd
Fix using references for context elements.
2023-09-02 22:44:21 -04:00
Tom Alexander
c309d14776
Fix a reference to RefContext.
2023-09-02 20:52:02 -04:00
Tom Alexander
0d728510d7
Implement iterator for context.
2023-09-02 20:46:17 -04:00
Tom Alexander
22e9bc991f
Fixing up compiler errors.
2023-09-02 19:28:33 -04:00
Tom Alexander
564104f1e8
Switch to RefContext.
2023-09-02 19:16:44 -04:00
Tom Alexander
12ad3b09f0
Fixing imports.
2023-09-02 19:15:47 -04:00
Tom Alexander
eabffe5ecc
Move over the rest of the types.
2023-09-02 19:08:01 -04:00
Tom Alexander
b47029fdbb
Starting to separate the context and parsed tokens into their own modules.
2023-09-02 18:46:45 -04:00
Tom Alexander
25b8c80d4e
Add default constructors.
2023-09-02 18:40:01 -04:00
Tom Alexander
54825538e4
fixup
2023-09-02 18:21:43 -04:00
Tom Alexander
66d10a7a1b
Started switching over to a stack-based context tree with global settings.
...
This change should hopefully allow for matchers to have captured borrowed values, it should eliminate the use of heap-allocated reference counting on the context nodes, and it adds in a global settings struct for passing around values that do not change during parsing.
2023-09-02 18:20:10 -04:00
Tom Alexander
acf1205e75
Merge branch 'file_based_diff'
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-09-02 17:28:31 -04:00
Tom Alexander
2cd2f7570c
Update scripts to handle passing files as parameters.
2023-09-02 17:28:22 -04:00
Tom Alexander
f16a554154
Handle org-mode documents passed as args.
...
We were running into issues where the documents grew too large for being passed as a string to emacs, and we need to handle #+setupfile so we need to start handling org-mode documents as files and not just as anonymous streams of text.
The anonymous stream of text handling will remain because the automated tests use it.
2023-09-02 17:28:22 -04:00