diff options
| author | Casey Rodarmor <casey@rodarmor.com> | 2020-10-26 19:08:42 -0700 |
|---|---|---|
| committer | Casey Rodarmor <casey@rodarmor.com> | 2021-02-12 00:02:52 -0800 |
| commit | 66f4883308d999c8b405fdfd442562b8600a462d (patch) | |
| tree | 86a5d6b52b22914633ca307b7739549f72b4f5e6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | e9920ef7749d11fc71cc32ca4ba055bcfeaab945 (diff) | |
| download | rust-66f4883308d999c8b405fdfd442562b8600a462d.tar.gz rust-66f4883308d999c8b405fdfd442562b8600a462d.zip | |
[librustdoc] Reform lang string token splitting
Only split doctest lang strings on `,`, ` `, and `\t`. Additionally, to
preserve backwards compatibility with pandoc-style langstrings, strip a
surrounding `{}`, and remove leading `.`s from each token.
Prior to this change, doctest lang strings were split on all
non-alphanumeric characters except `-` or `_`, which limited future
extensions to doctest lang string tokens, for example using `=` for
key-value tokens.
This is a breaking change, although it is not expected to be disruptive,
because lang strings using separators other than `,` and ` ` are not
very common
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
