diff options
| author | Florian Gilcher <florian.gilcher@asquera.de> | 2014-06-01 00:33:32 +0200 |
|---|---|---|
| committer | Florian Gilcher <florian.gilcher@asquera.de> | 2014-06-02 00:16:48 +0200 |
| commit | 3fef7a74ca9a642f51cdf8ec4f148916580b34ce (patch) | |
| tree | 4bf285d2deb05d0cf8dcc85672a9b4bd24920cc6 /src/rustllvm/RustWrapper.cpp | |
| parent | 1527dab9980bf1f94419dcb8482ff1f0228a6f4b (diff) | |
| download | rust-3fef7a74ca9a642f51cdf8ec4f148916580b34ce.tar.gz rust-3fef7a74ca9a642f51cdf8ec4f148916580b34ce.zip | |
rustdoc: make langstring parsing more robust
This changes the parsing of the language string in code examples so that unrecognized examples are not considered Rust code. This was, for example, the case when a code example was marked `sh` for shell code. This relieves authors of having to mark those samples as `notrust`. Also adds recognition of the positive marker `rust`. By default, unmarked examples are still considered rust. If any rust-specific tags are seen, code is considered rust unless marked as "notrust". Adds test cases for the detection logic.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
