diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-05-28 21:30:01 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-06-04 09:51:41 +0200 |
| commit | ebee483e248d11b88839db70d41c376c4f51b276 (patch) | |
| tree | cc6bc817898dd1d82e53a8457fb5d95588840cc0 /src/test/rustdoc | |
| parent | d024d6a51e05f0fa03d954d69f2863519922e00c (diff) | |
| download | rust-ebee483e248d11b88839db70d41c376c4f51b276.tar.gz rust-ebee483e248d11b88839db70d41c376c4f51b276.zip | |
Add doc keyword support
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/keyword.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/rustdoc/keyword.rs b/src/test/rustdoc/keyword.rs new file mode 100644 index 00000000000..5682fce7808 --- /dev/null +++ b/src/test/rustdoc/keyword.rs @@ -0,0 +1,19 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![crate_name = "foo"] + +// @has foo/index.html '//h2[@id="keywords"]' 'Keywords' +// @has foo/index.html '//a[@href="keyword.match.html"]' 'match' +// @has foo/keyword.match.html '//a[@class="keyword"]' 'match' +// @has foo/keyword.match.html '//section[@id="main"]//div[@class="docblock"]//p' 'this is a test!' +#[doc(keyword = "match")] +/// this is a test! +mod foo{} |
