You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RFC #3503 adds support for a new frontmatter syntax. The contained content format is defined by the calling tool with a tool identifier.
In RFC #3502, the cargo infostring identifier would be used to signify the block uses the Cargo.toml format/schema. Cargo will assume that an empty infostring is meant to be used with it.
Note: These are not stable. Stabilization is being tracked in:
Thanks for the heads-up. Note that we generally err on the side of caution for supporting unstable/experimental syntax, depending on how much it breaks the rest of highlighting, and seeing how your example snippet does not seem to break, we will most likely hold off on supporting it for a while.
A potentially larger issue is that the frontmatter uses TOML and that we do not currently have a TOML syntax in the default packages. This is something that I have had on my radar for a while but I never rose to action since the third-party syntax was decent enough. However, TOML usage is spreading more and more, with it being for Python and Rust packaging metadata, so I personally feel pretty strongly about having a syntax in the default packages anyway, after which it will also be possible to embed it into Rust for frontmatter highlighting. (See also #453.)
That said, TOML is a different issue and an initial support of frontmatter in Rust is not blocked by it.
I fully understand not supporting it yet. I'm opening issues like this on different rust grammar repos more as a heads up that this is coming than wanting it now.
What happened?
RFC #3503 adds support for a new frontmatter syntax. The contained content format is defined by the calling tool with a tool identifier.
In RFC #3502, the
cargo
infostring identifier would be used to signify the block uses theCargo.toml
format/schema. Cargo will assume that an empty infostring is meant to be used with it.Note: These are not stable. Stabilization is being tracked in:
frontmatter
rust-lang/rust#136889e.g.
The text was updated successfully, but these errors were encountered: