Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | add better docs for tokenize errors | Veetaha | 2020-02-03 | 1 | -2/+2 | |
| | ||||||
* | ra_syntax: moved ParsedToken derive attribute under the doc comment | Veetaha | 2020-02-03 | 1 | -1/+1 | |
| | ||||||
* | ra_syntax: fixed doc comment | Veetaha | 2020-02-03 | 1 | -1/+1 | |
| | ||||||
* | Reimplemented lexer with vectors instead of iterators | Veetaha | 2020-02-03 | 8 | -187/+241 | |
| | ||||||
* | ra_syntax: changed added diagnostics information returned from tokenize() ↵ | Veetaha | 2020-02-03 | 4 | -74/+237 | |
| | | | | (implemented with iterators) | |||||
* | Fixed a typo | Veetaha | 2020-01-22 | 1 | -1/+1 | |
| | ||||||
* | Fixed a typo | Veetaha | 2020-01-22 | 1 | -1/+1 | |
| | ||||||
* | Preserved a comment on the bug previously present in ast::Literal::kind() | Veetaha | 2020-01-22 | 1 | -0/+5 | |
| | ||||||
* | ra_syntax: remove code duplication and token reevaluation from ↵ | Veetaha | 2020-01-22 | 1 | -30/+20 | |
| | | | | ast::Literal::kind() | |||||
* | changed 'descendants()' to 'children()' | TomasKralCZ | 2020-01-20 | 1 | -4/+1 | |
| | ||||||
* | added eq_token() method to LetStmt | TomasKralCZ | 2020-01-19 | 1 | -0/+7 | |
| | ||||||
* | Nest attrs into exprs in function args | Aleksey Kladov | 2020-01-17 | 2 | -28/+22 | |
| | ||||||
* | Extract expr_with_attrs | Aleksey Kladov | 2020-01-17 | 1 | -10/+14 | |
| | ||||||
* | Merge pull request #2813 from jyn514/arg_attributes | Aleksey Kladov | 2020-01-17 | 2 | -0/+40 | |
|\ | | | | | Allow attributes before function arguments | |||||
| * | move inline function closer to relevant code | Joshua Nelson | 2020-01-17 | 4 | -115/+40 | |
| | | | | | | | | also updates generated inline tests | |||||
| * | Allow attributes before function arguments | Joshua Nelson | 2020-01-12 | 2 | -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 test | Aleksey Kladov | 2020-01-16 | 6 | -116/+48 | |
| | | ||||||
* | | Simplify array parsing | Aleksey Kladov | 2020-01-16 | 1 | -20/+13 | |
| | | ||||||
* | | Merge #2827 | bors[bot] | 2020-01-16 | 2 | -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 position | Edwin Cheng | 2020-01-16 | 2 | -28/+28 | |
| | | | ||||||
* | | | Merge #2837 | bors[bot] | 2020-01-15 | 1 | -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 test | Aleksey Kladov | 2020-01-15 | 1 | -0/+3980 | |
| |/ / | ||||||
* | | | More orthogonal path editing | Aleksey Kladov | 2020-01-15 | 2 | -16/+44 | |
| | | | ||||||
* | | | More fluent API | Aleksey Kladov | 2020-01-15 | 1 | -10/+12 | |
| | | | ||||||
* | | | Slightly more fluent API | Aleksey Kladov | 2020-01-15 | 2 | -14/+14 | |
| | | | ||||||
* | | | Simplify | Aleksey Kladov | 2020-01-15 | 1 | -5/+8 | |
| | | | ||||||
* | | | Simplify | Aleksey Kladov | 2020-01-15 | 1 | -7/+5 | |
|/ / | ||||||
* | | refactor(ra_syntax.validation): removed code duplication from ↵ | Veetaha | 2020-01-14 | 1 | -35/+26 | |
| | | | | | | | | validate_literal() function | |||||
* | | Some clippy lints | kjeremy | 2020-01-13 | 1 | -2/+2 | |
|/ | ||||||
* | Qualify paths in 'fill match arms' assist | Florian Diebold | 2020-01-12 | 1 | -2/+3 | |
| | ||||||
* | Fix ordering problem between qualifying paths and substituting params | Florian Diebold | 2020-01-11 | 3 | -9/+16 | |
| | ||||||
* | Handle type args | Florian Diebold | 2020-01-11 | 1 | -0/+7 | |
| | ||||||
* | Basic DocumentHighlightKind support for assignments | Jeremy Kolb | 2020-01-10 | 1 | -0/+1 | |
| | ||||||
* | Parse trait aliases | Emil Lauridsen | 2020-01-09 | 2 | -0/+131 | |
| | ||||||
* | :arrow_up: rowan | Aleksey Kladov | 2020-01-09 | 4 | -9/+7 | |
| | ||||||
* | Improve const generics parsing | Michael Chesser | 2020-01-06 | 5 | -19/+106 | |
| | | | | | - Handle const generics type args - Fix issue with const generic as first parameter in trait impl | |||||
* | BinOp helper to detect assignment | Jeremy Kolb | 2020-01-04 | 1 | -0/+18 | |
| | ||||||
* | remove unused file | Aleksey Kladov | 2020-01-04 | 1 | -6/+0 | |
| | ||||||
* | Switch ast declaration from ron to a macro | Aleksey Kladov | 2020-01-03 | 2 | -2214/+1476 | |
| | ||||||
* | Collect visibility of items during nameres | Florian Diebold | 2019-12-26 | 2 | -3/+6 | |
| | ||||||
* | Add infrastructure for visibility on syntax and hir_def level | Florian Diebold | 2019-12-26 | 2 | -1/+32 | |
| | ||||||
* | Remove AsyncOwner | Edwin Cheng | 2019-12-24 | 4 | -10/+5 | |
| | ||||||
* | Implement infer await from async func | Edwin Cheng | 2019-12-24 | 3 | -1/+10 | |
| | ||||||
* | Merge #2642 | bors[bot] | 2019-12-22 | 3 | -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 sytnax | Edwin Cheng | 2019-12-22 | 3 | -5/+10 | |
| | | ||||||
* | | Merge #2641 | bors[bot] | 2019-12-22 | 4 | -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 generics | roblabla | 2019-12-22 | 4 | -0/+59 | |
| | | | | | | | | | | Fixes #1574 Fixes #2281 | |||||
* | | Merge #2628 | bors[bot] | 2019-12-21 | 8 | -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 parser | Edwin Cheng | 2019-12-21 | 8 | -329/+243 | |
| | | | ||||||
* | | | Clippy lints | kjeremy | 2019-12-20 | 1 | -2/+1 | |
|/ / |