This helper tool uses BBEdit's Preview Windows to preview Markdown syntax in your rustdocs. It has the following components:
- A binary Preview Filter
- The source for the filter, written in Rust, as a binary in the toolbox
- The Preview CSS that uses the classes outputted by the filter
This will start transitioning the impl generator to be a more generic helper tool, with the impl generator as one of its component.
Also, drop the "-bin" from the name, because what else is it going to be?
- Now it properly handles strings and numbers (without underscores) and dates and comments
- Sections are now in the function dropdown thing in the navigation bar
- Whitespace!
- Add whitespace to make it readable
- Add BBLMIsSourceKind and BBLMIsHeaderKind to the BBLMSuffixMap, which I don't think actually do anything but they're there now
- Add BBLMReferenceSearchURLTemplate to search the libstd docs
This makes it possible for users to upgrade with a simple `git pull`,
rather than having to re-download the latest release from GitHub each
time - after checking that there is one, first!
It also converts it from just a `.bblm` file to an entire `.bbprojectd`
file, allowing me to add things like Clippings and Text Filters in the
future. (Planned!)
This is actually achieved by making the parsing *more lenient* instead of more strict. The view looks more cluttered as a result, but at least it's *correct*. Nothing I can do about the clutter, as far as I know - BBEdit only allows us to use substrings of the document in the menu, so I can't strip out the lifetimes.