summary refs log tree commit diff
path: root/src/rustdoc/attr_parser.rs
AgeCommit message (Collapse)AuthorLines
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-3/+4
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-1/+4
Conflicts: src/compiletest/errors.rs src/libsyntax/parse/attr.rs src/libsyntax/parse/comments.rs src/test/compile-fail/ambig_impl_unify.rs src/test/compile-fail/assign-super.rs src/test/compile-fail/bad-for-loop.rs src/test/compile-fail/bad-var-env-capture-in-block-arg.rs src/test/compile-fail/block-arg-as-stmt-with-value.rs src/test/compile-fail/borrowck-assign-comp-idx.rs src/test/compile-fail/borrowck-lend-flow.rs src/test/compile-fail/borrowck-loan-blocks-move-cc.rs src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs src/test/compile-fail/borrowck-loan-rcvr.rs src/test/compile-fail/borrowck-loan-vec-content.rs src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs src/test/compile-fail/cap-clause-with-stack-closure.rs src/test/compile-fail/do1.rs src/test/compile-fail/do2.rs src/test/compile-fail/empty-vec-trailing-comma.rs src/test/compile-fail/evec-subtyping.rs src/test/compile-fail/issue-1896.rs src/test/compile-fail/issue-2149.rs src/test/compile-fail/issue-2150.rs src/test/compile-fail/issue-2487-b.rs src/test/compile-fail/kindck-implicit-close-over-mut-var.rs src/test/compile-fail/liveness-issue-2163.rs src/test/compile-fail/liveness-use-in-index-lvalue.rs src/test/compile-fail/no-reuse-move-arc.rs src/test/compile-fail/no-send-res-ports.rs src/test/compile-fail/non-const.rs src/test/compile-fail/pure-higher-order.rs src/test/compile-fail/pure-loop-body.rs src/test/compile-fail/regions-addr-of-upvar-self.rs src/test/compile-fail/regions-escape-loop-via-vec.rs src/test/compile-fail/regions-scoping.rs src/test/compile-fail/seq-args.rs src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs src/test/compile-fail/tstate-unsat-in-fn-expr.rs src/test/compile-fail/vec-add.rs src/test/compile-fail/vec-concat-bug.rs src/test/compile-fail/vector-no-ann.rs
2012-07-01Convert to new closure syntaxBrian Anderson-2/+2
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-1/+4
1. make /// ... and //! ... and /** ... */ and /*! ... */ into sugar for #[doc = ...] attributes. 2. add a script in etc/ to help converting doc-attributes to doc-comments 3. add some functions to core::str to help with (1)
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-6/+6
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-6/+6
2012-06-15Add the interner to parse_sess.Paul Stansifer-9/+1
2012-06-13Box AST identsBrian Anderson-2/+3
2012-05-24Access parse/attrs.rs with an impl.Paul Stansifer-1/+2
2012-05-13rustc: Eliminate some indirection to the syntax crateBrian Anderson-6/+6
2012-04-19syntax: Extract attribute parsing to its own modBrian Anderson-1/+1
2012-04-18syntax: Put the main parser interface in mod parseBrian Anderson-1/+2
2012-04-15syntax: Cleanup attr module. Closes #1545Brian Anderson-1/+1
2012-03-29rustc: Remove the rustsyntax::attr wrapper in frontBrian Anderson-1/+1
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-3/+3
2012-03-09rustdoc: Simplify attribute parsingBrian Anderson-156/+21
2012-03-09rustdoc: Vastly simplify the document modelBrian Anderson-110/+2
Don't attempt to impose any structure for documenting arguments, return values, etc.
2012-03-07rustdoc: Support #[doc(hidden)]Brian Anderson-0/+26
2012-02-17rustdoc: Simplify attr passBrian Anderson-190/+37
2012-02-14Change file_substr to allow for external strings.Kevin Atkinson-1/+1
2012-02-05rustdoc: Resolve some FIXMEsBrian Anderson-3/+2
2012-02-03Store info about file "substr".Kevin Atkinson-1/+1
That is when a string that is part of a file needs to be parsed for a reason, record that the string is a substr of the file rather than using "<anon>" or "-" as the file name. This will eventually allow pointing to the right location, for now it just uses a more meaningful string for the filename.
2012-02-01rustdoc: Add support for type itemsBrian Anderson-2/+11
2012-01-31rustdoc: Pull impl docs out of attributesBrian Anderson-2/+11
2012-01-30rustdoc: Add attribute parsing for ifaces and methodsBrian Anderson-3/+20
2012-01-26rustdoc: Parse resource doc attributesBrian Anderson-11/+76
2012-01-25rustdoc: Parse variant doc attributesBrian Anderson-2/+49
2012-01-25rustdoc: Extract some common functions from attr_parserBrian Anderson-53/+16
2012-01-25rustdoc: Parse enum doc attributesBrian Anderson-22/+72
2012-01-25rustdoc: Fix a copy&paste bug in attr_parser testsBrian Anderson-2/+2
2012-01-25Keep source file around after parsing.Kevin Atkinson-1/+1
Specifically box the string (to avoid unnecessary copies) and store it in codemap::filemap. Remove the hack in driver::diagnostic that rereads the source from the file and instead just get the source from the filemap. (This commit is also a prerequisite for issue #1612)
2012-01-24rustdoc: Update tests for rustc diagnostic changesBrian Anderson-1/+2
2012-01-24rustdoc: Parse fn failure conditionsBrian Anderson-4/+15
2012-01-24rustdoc: Add parsing of const attribute docsBrian Anderson-2/+48
2012-01-23Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str.Kevin Atkinson-1/+3
This correctly fixes issue #1362. chpos/byte_pos are now the offsets within a particular file, but rather the offsets within a virtual file with is formed by combing all of the modules within a crate. Thus, resetting them to 0 causes an overlap and hence, bogus source locations. Fix #1362 by moving chpos/byte_pos to parse_sess so that new_parser_from_source_str has access to them and hence can chose an initial value that is not already been used in the crate. Note that the trigger for bug 1361 was that syntax/ext/expand.rs calls parse_expr_from_source_str (which calls new_parser_from_source_str) using the same codemap as the current crate (and hence causing overlap with files in the crate as new_parser_from_source_str resets the chpos/byte_pos to 0).
2012-01-23Revert "rustdoc: Get the crate brief description from the 'desc' attr"Brian Anderson-13/+2
This reverts commit 521e58a3c4f45ffc30a914dd0bb517945d87a503. Some crates use 'desc', some 'comment' - I want them to just use 'doc'
2012-01-23rustdoc: Get the crate brief description from the 'desc' attrBrian Anderson-2/+13
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-4/+4
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-18rustdoc: Add mod docs attrs to the doc treeBrian Anderson-1/+1
2012-01-18rustdoc: Parse module docsBrian Anderson-79/+154
2012-01-18rustdoc: Parse crate name from #[link] attrBrian Anderson-3/+39
2012-01-18rustdoc: Put fn docs inside fn bodiesBrian Anderson-3/+5
2012-01-18rustdoc: Document attr_parser::doc_metaBrian Anderson-0/+3
2012-01-17rustdoc: Add rustdocsBrian Anderson-0/+7
2012-01-17libstd => libcoreLenny222-1/+1
2012-01-17spin-off rustdocs tuple code to libstdLenny222-3/+4
2012-01-16rustc: Move some attribute accessors from rustdoc to rustcBrian Anderson-52/+5
2012-01-16rustdoc: Move fst and snd into util modBrian Anderson-12/+2
2012-01-16rustdoc: Use attr API in attr_parserBrian Anderson-60/+119
2012-01-16rustdoc: Add a fallthrough path to meta_item search in parse_fnBrian Anderson-0/+1