about summary refs log tree commit diff
path: root/src/libsyntax/parse/comments.rs
AgeCommit message (Collapse)AuthorLines
2014-06-04syntax: methodify the lexerCorey Richardson-457/+0
2014-05-30std: Rename {Eq,Ord} to Partial{Eq,Ord}Alex Crichton-1/+1
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
2014-05-27std: Rename strbuf operations to stringRicho Healey-19/+19
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-17/+17
[breaking-change]
2014-05-23Make most lexer errors non-fatalKevin Ballard-1/+1
Most errors that arise in the lexer can be recovered from. This allows for more than one syntax error to be reported at a time.
2014-05-08libsyntax: Remove uses of `~str` from libsyntax, and fix falloutPatrick Walton-46/+58
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-13/+13
2014-04-10libstd: Implement `StrBuf`, a new string buffer type like `Vec`, andPatrick Walton-9/+15
port all code over to use it.
2014-04-06De-~[] Reader and WriterSteven Fackler-1/+1
There's a little more allocation here and there now since from_utf8_owned can't be used with Vec.
2014-03-31syntax: Switch field privacy as necessaryAlex Crichton-5/+5
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-1/+1
2014-03-28Used inherited mutability in lexer::Reader.Eduard Burtescu-32/+30
2014-03-20syntax: Tidy up parsing the new attribute syntaxAlex Crichton-7/+5
2014-03-20Added new attribute syntax with backward compatibility.Daniel Fagnan-2/+6
Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
2014-03-20Removing imports of std::vec_ng::VecAlex Crichton-1/+0
It's now in the prelude.
2014-03-20rename std::vec_ng -> std::vecDaniel Micay-1/+1
Closes #12771
2014-03-17De-@ codemap and diagnostic.Eduard Burtescu-2/+2
2014-03-01libsyntax: Fix errors arising from the automated `~[T]` conversionPatrick Walton-5/+6
2014-03-01libsyntax: Mechanically change `~[T]` to `Vec<T>`Patrick Walton-18/+18
2014-02-27Fix a pretty printer crash on `/***`.Chris Morgan-1/+1
The pretty printer was treating block comments with more than two asterisks after the first slash (e.g. `/***`) as doc comments (which are attributes), whereas in actual fact they are just regular comments.
2014-02-14Refactored ast_map and friends, mainly to have Paths without storing them.Eduard Burtescu-2/+1
2014-02-08syntax: convert the lexer to use Option<char> over transmute(-1).Huon Wilson-22/+22
The transmute was unsound. There are many instances of .unwrap_or('\x00') for "ignoring" EOF which either do not make the situation worse than it was (well, actually make it better, since it's easy to grep for places that don't handle EOF) or can never ever be read. Fixes #8971.
2014-02-07Removed @self and @Trait.Eduard Burtescu-18/+18
2014-02-03syntax: Remove io_error usageAlex Crichton-1/+2
2014-02-02libsyntax: De-`@str` pathnamesPatrick Walton-1/+1
2014-02-02librustc: Stop using `@str` for source.Patrick Walton-1/+1
2014-02-02libsyntax: De-`@str` literal strings in the ASTPatrick Walton-1/+0
2014-01-25Uppercase numeric constantsChris Wong-2/+2
The following are renamed: * `min_value` => `MIN` * `max_value` => `MAX` * `bits` => `BITS` * `bytes` => `BYTES` Fixes #10010.
2014-01-21[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old ↵Simon Sapin-1/+1
from_utf8_owned() behavior
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-29/+29
2014-01-03librustc: De-`@mut` the span handlerPatrick Walton-1/+1
2014-01-03libsyntax: De-`@mut` `StringReader`, `TtReader`, and `reader`Patrick Walton-11/+11
2014-01-03libsyntax: De-`@mut` `StringReader::curr`Patrick Walton-22/+23
2014-01-03libsyntax: De-`@mut` `StringReader::col`Patrick Walton-2/+2
2014-01-03libsyntax: De-`@mut` `StringReader::last_pos`Patrick Walton-5/+9
2014-01-01syntax::diagnostic: Remove unnecessary traitsklutzy-1/+1
This removes trait `handler` and `span_handler`, and renames `HandlerT` to `Handler`, `CodemapT` to `SpanHandler`.
2013-12-04std::str: remove from_utf8.Huon Wilson-1/+1
This function had type &[u8] -> ~str, i.e. it allocates a string internally, even though the non-allocating version that take &[u8] -> &str and ~[u8] -> ~str are all that is necessary in most circumstances.
2013-11-26libsyntax: Remove all non-`proc` `do` syntax.Patrick Walton-5/+3
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-4/+4
2013-11-11Move std::rt::io to std::ioAlex Crichton-1/+1
2013-10-28Remove the extension traits for Readers/WritersAlex Crichton-2/+1
These methods are all excellent candidates for default methods, so there's no need to require extra imports of various traits.
2013-10-24Remove even more of std::ioAlex Crichton-3/+4
Big fish fried here: extra::json most of the compiler extra::io_util removed extra::fileinput removed Fish left to fry extra::ebml
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-16/+16
Who doesn't like a massive renaming?
2013-09-30syntax: Remove usage of fmt!Alex Crichton-16/+16
2013-09-25rustdoc: Improve comment strippingAlex Crichton-15/+40
There is less implicit removal of various comment styles, and it also removes extraneous stars occasionally found in docblock comments. It turns out that the bug for getops was just a differently formatted block. Closes #9425 Closes #9417
2013-09-20Implement a web backend for rustdoc_ngAlex Crichton-3/+1
This large commit implements and `html` output option for rustdoc_ng. The executable has been altered to be invoked as "rustdoc_ng html <crate>" and it will dump everything into the local "doc" directory. JSON can still be generated by changing 'html' to 'json'. This also fixes a number of bugs in rustdoc_ng relating to comment stripping, along with some other various issues that I found along the way. The `make doc` command has been altered to generate the new documentation into the `doc/ng/$(CRATE)` directories.
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-1/+1
2013-08-11libsyntax: Update from `@Object` to `@mut Object` as requiredNiko Matsakis-2/+2
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-1/+1
cc #5898
2013-08-03remove obsolete `foreach` keywordDaniel Micay-2/+2
this has been replaced by `for`