aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
Commit message (Collapse)AuthorAgeFilesLines
...
* | Change macro to functionEvgenii P2019-08-091-15/+13
| |
* | rustfmtEvgenii P2019-08-091-10/+10
| |
* | Reduce code duplication in lexer by introducing small macroEvgenii P2019-08-091-20/+17
| |
* | Merge #1661bors[bot]2019-08-088-0/+559
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1661: Parse function parameters attributes r=matklad a=eupn Fixes #1397. The [RFC-2565](https://github.com/rust-lang/rfcs/blob/master/text/2565-formal-function-parameter-attributes.md) specifies `#[attributes]` to function parameters: ```rust fn foo(#[attr] a, #[unused] b, #[must_use] ...) { // ... } ``` This PR adds those attributes into grammar and to the parser, extending corresponding inline tests. Co-authored-by: Evgenii P <[email protected]>
| * | Fix parser tests according to reviewEvgenii P2019-08-0818-485/+576
| | |
| * | Fix variadic arg inline testEvgenii P2019-08-072-24/+24
| | |
| * | Add function parameters attributesEvgenii P2019-08-0714-21/+489
| | |
* | | assoc types boundsAleksey Kladov2019-08-072-0/+56
|/ /
* | Merge #1640bors[bot]2019-08-041-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | 1640: Bump deps r=matklad a=lnicola `insta`, `unicode-xid` and others Co-authored-by: LaurenČ›iu Nicola <[email protected]>
| * | Bump depsLaurențiu Nicola2019-08-041-1/+0
| |/
* | Unconditionally trim the end of commentskjeremy2019-07-312-13/+5
| |
* | Removes `*/` in block doc commentskjeremy2019-07-312-2/+62
|/
* Add explicit newline preserving testskjeremy2019-07-311-0/+17
|
* Add merge_match_arm assist, bump rowan to 0.6.1Phil Ellison2019-07-291-1/+1
|
* Merge #1604bors[bot]2019-07-291-3/+19
|\ | | | | | | | | | | | | | | 1604: Fix failing type interference for floating point literal r=matklad a=theotherphil Fixes https://github.com/rust-analyzer/rust-analyzer/issues/1592 Co-authored-by: Phil Ellison <[email protected]>
| * cargo formatPhil Ellison2019-07-281-3/+1
| |
| * Add special case for f32 and f43 suffices on Literal.kindPhil Ellison2019-07-282-17/+21
| |
| * Add issue link and trailing newlinePhil Ellison2019-07-281-1/+2
| |
| * More direct failing testPhil Ellison2019-07-281-0/+13
| |
* | move syntax tests to unit testsAleksey Kladov2019-07-24510-10/+9
| |
* | Merge #1584bors[bot]2019-07-243-526/+88
|\ \ | | | | | | | | | | | | | | | | | | | | | 1584: switch to upstream unescape r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | switch to upstream unescapeAleksey Kladov2019-07-243-526/+88
| | |
* | | Merge #1583bors[bot]2019-07-241-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 1583: :arrow_up: rowan r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | :arrow_up: rowanAleksey Kladov2019-07-241-1/+1
| |/
* | Merge #1573bors[bot]2019-07-242-6/+66
|\ \ | |/ |/| | | | | | | | | | | 1573: fix: parse box syntax inside parentheses r=matklad a=csmoe r? @matklad Co-authored-by: csmoe <[email protected]>
| * fix: parse box syntax inside parenthesescsmoe2019-07-222-6/+66
| |
* | kill old lexerAleksey Kladov2019-07-226-571/+17
| |
* | add rustc_lexerAleksey Kladov2019-07-227-25/+149
|/
* simiplifyAleksey Kladov2019-07-212-11/+10
|
* streamline APIAleksey Kladov2019-07-213-17/+7
|
* minor, move typeAleksey Kladov2019-07-213-12/+13
|
* switch to upstream rowan's APIAleksey Kladov2019-07-208-680/+147
|
* Merge #1566bors[bot]2019-07-201-13/+3
|\ | | | | | | | | | | | | | | 1566: align SyntaxText API with upstream r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * align SyntaxText API with upstreamAleksey Kladov2019-07-201-13/+3
| |
* | Merge #1562bors[bot]2019-07-202-1/+34
|\ \ | |/ |/| | | | | | | | | | | | | 1562: Continue support for .await r=matklad a=unrealhoang - add await expr to ast and HIR Expr - infer type for `.await` Co-authored-by: Unreal Hoang <[email protected]>
| * add await expr to astUnreal Hoang2019-07-202-1/+34
| |
* | Merge #1560bors[bot]2019-07-2010-68/+63
|\ \ | |/ |/| | | | | | | | | | | 1560: move debug_dump to fmt::Debug r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * rename range -> text_rangeAleksey Kladov2019-07-2010-29/+32
| |
| * move debug_dump to fmt::DebugAleksey Kladov2019-07-205-40/+32
| |
* | add await to syntax, parser for await_exprUnreal Hoang2019-07-203-0/+74
|/
* remove lifetime from syntax node textAleksey Kladov2019-07-193-14/+15
|
* sane indexing in textAleksey Kladov2019-07-191-7/+10
|
* flip syntax text to use internal iterationAleksey Kladov2019-07-192-34/+65
|
* drop memory size of subtreeAleksey Kladov2019-07-191-4/+0
| | | | | it wasn't too accurate and the new measurement method of dropping the database completely is better anyway
* convenience apiAleksey Kladov2019-07-194-41/+55
|
* cleanup castsAleksey Kladov2019-07-194-841/+964
|
* several highlighting cleanupsAleksey Kladov2019-07-191-0/+11
| | | | | | * make stuff more type-safe by using `BindPat` instead of just `Pat` * don't add `mut` into binding hash * reset shadow counter when we enter a function
* switch to the upstream rowanAleksey Kladov2019-07-191-1/+1
|
* migrate ra_assists to the new ASTAleksey Kladov2019-07-191-1/+1
|
* migrate ra_hir to the new rowanAleksey Kladov2019-07-191-1/+1
|