Typescript importer improvements
- Create separate nodes for 'export' functions, 'export enum' and 'export const enum'.
Rust importer improvements
- Remove more cruft from headlines.
- Move trailing comments and macro lines from to the start of the next node in outline order.
The presence of @others prevents lines from being moved out of any node. In theory, comments and/or macros immediately preceding @others could be moved to the next node, but it would take AI to know whether that is really wanted. But there is a new workaround...
The move-lines-to-next-node command
For rust, you can search for @others. If you find lines that you think should be moved to the next node, select those lines and use Leo's new move-lines-to-next-node command. This command is undoable.
For nodes containing @others, trailing comment lines belong to the next sibling, if there is a next sibling. Comment lines immediately preceding @others belong to the next child (if the comment applies to a single node). Otherwise the comments preceding @others should not be moved. They apply to all child nodes.
Summary
I am studying mini_leo (a rust program) and leoInteg (a typescript program). Leo's importers now work well for both. All comments and suggestions welcome.
Edward