| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-15 | syntax::parse::sess -> syntax::sess | Mazdak Farrokhzad | -2/+2 | |
| 2019-08-05 | adapt rustdoc to infailable lexer | Aleksey Kladov | -13/+14 | |
| 2019-08-05 | add unknown token | Aleksey Kladov | -1/+1 | |
| 2019-07-04 | cleanup lexer constructors | Aleksey Kladov | -11/+11 | |
| 2019-07-04 | remove StringReader::peek | Aleksey Kladov | -9/+20 | |
| The reader itself doesn't need ability to peek tokens, so it's better if clients implement this functionality. This hopefully becomes especially easy once we use iterator interface for lexer, but this is not too easy at the moment, because of buffered errors. | ||||
| 2019-06-08 | syntax: Move most of the `TokenKind` methods to `Token` | Vadim Petrochenkov | -1/+1 | |
| 2019-06-06 | syntax: Remove duplicate span from `token::Ident` | Vadim Petrochenkov | -2/+2 | |
| 2019-06-06 | syntax: Use `Token` in `StringReader` and `TokenTreesReader` | Vadim Petrochenkov | -5/+5 | |
| 2019-06-06 | syntax: Use `Token` in `TokenTree::Token` | Vadim Petrochenkov | -2/+2 | |
| 2019-06-06 | syntax: Rename `TokenAndSpan` into `Token` | Vadim Petrochenkov | -15/+15 | |
| 2019-05-23 | syntax: Turn `token::Lit` into a struct | Vadim Petrochenkov | -7/+7 | |
| 2019-05-22 | Restore the old behavior of the rustdoc keyword check + Fix rebase | Vadim Petrochenkov | -7/+7 | |
| 2019-05-11 | Keep the original token in `ast::Lit` | Vadim Petrochenkov | -0/+2 | |
| 2019-02-23 | Transition librustdoc to 2018 edition | Hirokazu Hata | -1/+1 | |
| 2019-02-10 | rustc: doc comments | Alexander Regueiro | -1/+1 | |
| 2019-01-20 | Auto merge of #56884 - euclio:codeblock-diagnostics, r=QuietMisdreavus | bors | -37/+55 | |
| rustdoc: overhaul code block lexing errors Fixes #53919. This PR moves the reporting of code block lexing errors from rendering time to an early pass, so we can use the compiler's error reporting mechanisms. This dramatically improves the diagnostics in this situation: we now de-emphasize the lexing errors as a note under a warning that has a span and suggestion instead of just emitting errors at the top level. Additionally, this PR generalizes the markdown -> source span calculation function, which should allow other rustdoc warnings to use better spans in the future. Last, the PR makes sure that the code block is always emitted in the docs, even if it fails to highlight correctly. Of note: - The new pass unfortunately adds another pass over the docs to gather the doc blocks for syntax-checking. I wonder if this could be combined with the pass that looks for testable blocks? I'm not familiar with that code, so I don't know how feasible that is. - `pulldown_cmark` doesn't make it easy to find the spans of the code blocks, so the code that calculates the spans is a little nasty. It works for all the test cases I threw at it, but I wouldn't be surprised if an edge case would break it. Should have a thorough review. - This PR worsens the state of #56885, since those certain fatal lexing errors are now emitted before docs get generated at all. | ||||
| 2019-01-18 | Add token::Err | Yuki Okushi | -1/+1 | |
| 2019-01-14 | rustdoc: check code block syntax in early pass | Andy Russell | -37/+55 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-02 | Remove not used `DotEq` token | yui-knk | -1/+1 | |
| Currently libproc_macro does not use `DotEq` token. https://github.com/rust-lang/rust/pull/49545 changed libproc_macro to not generate `DotEq` token. | ||||
| 2018-10-26 | Rollup merge of #54921 - GuillaumeGomez:line-numbers, r=QuietMisdreavus | kennytm | -5/+8 | |
| Add line numbers option to rustdoc Fixes #22878. r? @QuietMisdreavus | ||||
| 2018-10-09 | Add line numbers option to rustdoc | Guillaume Gomez | -5/+8 | |
| 2018-09-29 | Add a sentence before rustc errors | Guillaume Gomez | -1/+1 | |
| 2018-09-29 | Improve error display for codeblocks in rustdoc | Guillaume Gomez | -7/+18 | |
| 2018-08-19 | fix tidy errors | Donato Sciarra | -2/+4 | |
| 2018-08-19 | mv codemap source_map | Donato Sciarra | -5/+5 | |
| 2018-08-19 | mv codemap() source_map() | Donato Sciarra | -2/+2 | |
| 2018-08-19 | mv (mod) codemap source_map | Donato Sciarra | -1/+1 | |
| 2018-08-19 | mv filemap source_file | Donato Sciarra | -1/+1 | |
| 2018-08-19 | mv CodeMap SourceMap | Donato Sciarra | -3/+3 | |
| 2018-08-07 | Avoid unnecessary pattern matching against Option and Result | ljedrz | -1/+1 | |
| 2018-07-31 | Add dyn to Write | Mark Rousskov | -1/+1 | |
| 2018-07-31 | Cleanup highlighting code | Mark Rousskov | -38/+22 | |
| Removes some unused code and de-publicizes structs | ||||
| 2018-07-30 | Delete unused code in rustdoc | Mark Rousskov | -14/+0 | |
| 2018-07-25 | Add missing dyn | Tatsuyuki Ishi | -2/+2 | |
| 2018-05-26 | Add `Ident::as_str` helper | Vadim Petrochenkov | -1/+1 | |
| 2018-05-20 | lexer: Fix span override for the first token in a string | Vadim Petrochenkov | -2/+2 | |
| 2018-05-15 | Represent lifetimes as two joint tokens in proc macros | Vadim Petrochenkov | -1/+1 | |
| 2018-03-18 | Initial implementation of RFC 2151, Raw Identifiers | Lymia Aluysia | -4/+4 | |
| 2018-03-17 | syntax: Make `_` an identifier | Vadim Petrochenkov | -1/+1 | |
| 2017-12-14 | Use PathBuf instead of String where applicable | Oliver Schneider | -3/+3 | |
| 2017-11-06 | tweak notes on ignore/compile_fail examples | QuietMisdreavus | -1/+1 | |
| 2017-09-22 | Add support for `..=` syntax | Alex Burka | -3/+3 | |
| Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book | ||||
| 2017-09-11 | Add arrow and improve display | Guillaume Gomez | -9/+2 | |
| 2017-09-11 | Add class for codeblocks | Guillaume Gomez | -2/+15 | |
| 2017-08-29 | Rollup merge of #43918 - mystor:rustdoc-pound, r=QuietMisdreavus | Ariel Ben-Yehuda | -15/+43 | |
| Don't highlight # which does not start an attribute in rustdoc Currently when we highlight some macros for rustdoc (e.g. `quote!` from https://github.com/dtolnay/quote), we get really bad syntax highlighting, because we assume that every token between a `#` character and the next `]` in the source must be an attribute. This patch improves that highlighting behavior to instead only highlight after finding the `[` token after the `#` token. (NOTE: I've only run this patch against https://github.com/nrc/rustdoc-highlight so if it doesn't build on travis that's why - I don't have a recent rustc build on this laptop) I'm guessing r? @steveklabnik | ||||
| 2017-08-17 | Rollup merge of #43891 - Fourchaux:master, r=steveklabnik | Corey Farwell | -1/+1 | |
| Fix typos & us spellings Fixing some typos and non en-US spellings. (Update of PR https://github.com/rust-lang/rust/pull/42812 ) | ||||
| 2017-08-16 | Don't highlight # which does not start an attribute in rustdoc | Michael Layzell | -15/+43 | |
| 2017-08-15 | use field init shorthand EVERYWHERE | Zack M. Davis | -2/+2 | |
| Like #43008 (f668999), but _much more aggressive_. | ||||
| 2017-08-15 | Fix typos & us spellings | Fourchaux | -1/+1 | |
