aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
Commit message (Collapse)AuthorAgeFilesLines
* ra_syntax: remove code duplication and token reevaluation from ↵Veetaha2020-01-221-30/+20
| | | | ast::Literal::kind()
* changed 'descendants()' to 'children()'TomasKralCZ2020-01-201-4/+1
|
* added eq_token() method to LetStmtTomasKralCZ2020-01-191-0/+7
|
* Nest attrs into exprs in function argsAleksey Kladov2020-01-172-28/+22
|
* Extract expr_with_attrsAleksey Kladov2020-01-171-10/+14
|
* Merge pull request #2813 from jyn514/arg_attributesAleksey Kladov2020-01-172-0/+40
|\ | | | | Allow attributes before function arguments
| * move inline function closer to relevant codeJoshua Nelson2020-01-174-115/+40
| | | | | | | | also updates generated inline tests
| * Allow attributes before function argumentsJoshua Nelson2020-01-122-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for function calls of the form: ```rust ( #[attr(...)] 1.2, #[attr_one(...)] #[attr_two(...)] 1.5, ... etc ... ) ``` Closes https://github.com/rust-analyzer/rust-analyzer/issues/2801
* | Minimize testAleksey Kladov2020-01-166-116/+48
| |
* | Simplify array parsingAleksey Kladov2020-01-161-20/+13
| |
* | Merge #2827bors[bot]2020-01-162-28/+28
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 2827: Fix array element attribute position r=matklad a=edwin0cheng This PR fixed a bug which an ATTR node insert in the wrong place in array element. ~~And introduce `precede_next` for allow outer attributes to insert into a parsed `expr`.~~ related #2783 Co-authored-by: Edwin Cheng <[email protected]>
| * | Fix array element attribute positionEdwin Cheng2020-01-162-28/+28
| | |
* | | Merge #2837bors[bot]2020-01-151-0/+3980
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2837: Accidentally quadratic r=matklad a=matklad Our syntax highlighting is accdentally quadratic. Current state of the PR fixes it in a pretty crude way, looks like for the proper fix we need to redo how source-analyzer works. **NB:** don't be scared by diff stats, that's mostly a test-data file Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Add a testAleksey Kladov2020-01-151-0/+3980
| |/ /
* | | More orthogonal path editingAleksey Kladov2020-01-152-16/+44
| | |
* | | More fluent APIAleksey Kladov2020-01-151-10/+12
| | |
* | | Slightly more fluent APIAleksey Kladov2020-01-152-14/+14
| | |
* | | SimplifyAleksey Kladov2020-01-151-5/+8
| | |
* | | SimplifyAleksey Kladov2020-01-151-7/+5
|/ /
* | refactor(ra_syntax.validation): removed code duplication from ↵Veetaha2020-01-141-35/+26
| | | | | | | | validate_literal() function
* | Some clippy lintskjeremy2020-01-131-2/+2
|/
* Qualify paths in 'fill match arms' assistFlorian Diebold2020-01-121-2/+3
|
* Fix ordering problem between qualifying paths and substituting paramsFlorian Diebold2020-01-113-9/+16
|
* Handle type argsFlorian Diebold2020-01-111-0/+7
|
* Basic DocumentHighlightKind support for assignmentsJeremy Kolb2020-01-101-0/+1
|
* Parse trait aliasesEmil Lauridsen2020-01-092-0/+131
|
* :arrow_up: rowanAleksey Kladov2020-01-094-9/+7
|
* Improve const generics parsingMichael Chesser2020-01-065-19/+106
| | | | | - Handle const generics type args - Fix issue with const generic as first parameter in trait impl
* BinOp helper to detect assignmentJeremy Kolb2020-01-041-0/+18
|
* remove unused fileAleksey Kladov2020-01-041-6/+0
|
* Switch ast declaration from ron to a macroAleksey Kladov2020-01-032-2214/+1476
|
* Collect visibility of items during nameresFlorian Diebold2019-12-262-3/+6
|
* Add infrastructure for visibility on syntax and hir_def levelFlorian Diebold2019-12-262-1/+32
|
* Remove AsyncOwnerEdwin Cheng2019-12-244-10/+5
|
* Implement infer await from async funcEdwin Cheng2019-12-243-1/+10
|
* Merge #2642bors[bot]2019-12-223-5/+10
|\ | | | | | | | | | | | | | | 2642: Use name instead of ident in parser for macro 2.0 syntax r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]>
| * Use name instead of ident for macro 2.0 sytnaxEdwin Cheng2019-12-223-5/+10
| |
* | Merge #2641bors[bot]2019-12-224-0/+59
|\ \ | |/ |/| | | | | | | | | | | | | | | | | 2641: Parse const generics r=matklad a=roblabla Adds very primitive support for parsing const generics (`const IDENT: TY`) so that rust-analyzer stops complaining about the syntax being invalid. Fixes #1574 Fixes #2281 Co-authored-by: roblabla <[email protected]>
| * Parse const genericsroblabla2019-12-224-0/+59
| | | | | | | | | | Fixes #1574 Fixes #2281
* | Merge #2628bors[bot]2019-12-218-329/+243
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2628: Add macro 2.0 support in parser r=matklad a=edwin0cheng This PR added a new syntax kind : `MACRO_DEF` and a keyword `MACRO_KW` there are two syntax for declarative macro 2.0 : 1. Normal : `macro m { ($i:ident) => {} }` , which handle similar to legacy one. 2. Call like: `macro m($i:ident) {}`, it produces a single token tree which have two child token trees : `($i:ident)` and `{}` Co-authored-by: Edwin Cheng <[email protected]>
| * | Add macro 2.0 support in parserEdwin Cheng2019-12-218-329/+243
| | |
* | | Clippy lintskjeremy2019-12-201-2/+1
|/ /
* | Handle closure return typesFlorian Diebold2019-12-202-1/+4
| | | | | | | | Fixes #2547.
* | Fix parser for macro call in pattern positionEdwin Cheng2019-12-201-5/+4
| |
* | Use unwrap_or_defaultkjeremy2019-12-201-2/+2
|/
* Improve recovery for incomplete lambdasAleksey Kladov2019-12-172-0/+88
|
* Avoid recompiling serdeAleksey Kladov2019-12-121-3/+4
|
* DynMapAleksey Kladov2019-12-061-2/+12
| | | | | This might, or might not help us to reduce boilerplate associated with plumbing values from analysis to the IDE layer
* :arrow_up: rowanAleksey Kladov2019-12-043-8/+8
|
* Add `ModuleItemsOwner` to `Block`ice10002019-12-032-2/+4
|