aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/ok
Commit message (Collapse)AuthorAgeFilesLines
* Reame PlaceholderType -> InferTypeAleksey Kladov2020-07-311-2/+2
|
* Finalize impl GrammarAleksey Kladov2020-07-305-5/+5
|
* Finalize Trait grammarAleksey Kladov2020-07-303-4/+4
|
* Finalize const&static grammarAleksey Kladov2020-07-303-6/+6
|
* Rename EnumVariant -> VariantAleksey Kladov2020-07-302-15/+15
|
* Rename EnumDef -> EnumAleksey Kladov2020-07-302-6/+6
|
* Rename StructDef -> StructAleksey Kladov2020-07-309-36/+36
|
* Finalize union grammarAleksey Kladov2020-07-301-1/+1
|
* Rename FieldDef -> FieldAleksey Kladov2020-07-3010-33/+33
|
* Rename RecordLit -> RecordExprAleksey Kladov2020-07-301-6/+6
|
* Rename TypeParamList -> GenericParamListAleksey Kladov2020-07-3010-49/+49
|
* Rename TypeAliasDef -> TypeAliasAleksey Kladov2020-07-301-1/+1
|
* Rename FnDef -> FnAleksey Kladov2020-07-3047-120/+120
|
* Update testsAleksey Kladov2020-07-306-17/+17
|
* Update testsAleksey Kladov2020-07-301-3/+3
|
* Update testsAleksey Kladov2020-07-302-5/+5
|
* Update testsAleksey Kladov2020-07-307-9/+9
|
* Fix nameref parsingAleksey Kladov2020-07-281-2/+1
|
* Move complex inline test to own fileMatthew Jasper2020-06-112-0/+422
|
* Move default const test out of lineAvi Dessauer2020-06-042-0/+47
|
* Update test dataAleksey Kladov2020-05-0243-4103/+3976
|
* Validate uses of self and superJohn Renner2020-05-012-26/+1
|
* Convert tests to text-sizeAleksey Kladov2020-04-2568-9435/+9435
|
* Align grammar for record patterns and literalsAleksey Kladov2020-04-112-12/+16
| | | | | | The grammar now looks like this [name_ref :] pat
* Rename some tokensAleksey Kladov2020-04-1048-497/+497
|
* Parse correctly fn f<T>() where T: Fn() -> u8 + Send {}Luca Barbieri2020-04-092-0/+62
| | | | | We used to parse it as T: Fn() -> (u8 + Send), which is different from the rustc behavior of T: (Fn() -> u8) + Send
* Migrate tests .txt -> .rastveetaha2020-04-0667-0/+0
| | | | | | | | The sytax tree output files now use .rast extension (rust-analyzer syntax tree or rust abstract syntax tree (whatever)). This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration that supplies nice syntax highlighting for .rast files.
* Attach doc-comment to declaration if there are newlines in betweenLeander Tentrup2020-03-312-0/+20
| | | | This commit changes the parser to attach doc-comments to the corresponding declaration in case there are newlines in between the doc-comment and the declaration.
* Parse variadics correctlyAleksey Kladov2020-03-133-1/+140
| | | | closes #3571
* Move verbose tests out of lineAleksey Kladov2020-03-134-0/+373
|
* Rename ast::ImplBlock -> ast::ImplDefAleksey Kladov2020-02-293-3/+3
|
* Rework value parameter parsingToby Dimmick2020-02-062-97/+61
| | | | | | | - `Fn__(...)` parameters with idents/patterns no longer parse - Trait function parameters with arbitrary patterns parse - Trait function parameters without idents/patterns no longer parse - `fn(...)` parameters no longer parse with patterns other than a single ident
* Use name instead of ident for macro 2.0 sytnaxEdwin Cheng2019-12-221-2/+4
|
* Add macro 2.0 support in parserEdwin Cheng2019-12-212-0/+189
|
* Introduce dedicated AST node for unionAleksey Kladov2019-11-251-1/+1
| | | | | | | | | | Although structs and unions have the same syntax and differ only in the keyword, re-using the single syntax node for both of them leads to confusion in practice, and propagates further down the hir in an upleasent way. Moreover, static and consts also share syntax, but we use different nodes for them.
* Fix parsing of "postfix" range expressions.Geoffry Song2019-11-154-0/+91
| | | | | | | | | | Right now they are handled in `postfix_dot_expr`, but that doesn't allow it to correctly handle precedence. Integrate it more tightly with the Pratt parser instead. Also includes a drive-by fix for parsing `match .. {}`. Fixes #2242.
* fix parsing of for loops inside expressionsAleksey Kladov2019-10-282-0/+106
| | | | closes #2051
* Move tests aroundGeoffry Song2019-10-062-0/+104
|
* Parse correct AttrInputuHOOCCOOHu2019-09-3011-314/+423
|
* Support loop as argumentkjeremy2019-09-202-0/+64
|
* don't confuse macro with !=Aleksey Kladov2019-09-202-0/+69
| | | | closes #1871
* Merge #1848bors[bot]2019-09-151-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | 1848: Parse `..` as a full pattern r=matklad a=ecstatic-morse Resolves #1479. This PR implements [RFC 2707](https://github.com/rust-lang/rfcs/pull/2707) in the parser. It introduces a new `DotDotPat` AST node modeled on `PlaceholderPat` and changes the parsing of tuple and slice patterns to conform to the RFC. Notably, this PR does *not* change the resulting AST when `..` appears in a struct pattern (e.g. `Struct { a, b: c, .. }`). I *think* this is the behavior mandated by RFC 2707, but someone should confirm this. Co-authored-by: Dylan MacKenzie <[email protected]>
| * Bless old tests containing a `..` patternDylan MacKenzie2019-09-151-1/+2
| |
* | Add tests for underscores in `const` and `static` itemsDylan MacKenzie2019-09-152-38/+57
|/
* add a jointness parser testsAleksey Kladov2019-09-102-0/+55
| | | | cc https://github.com/rust-lang/rust/issues/64242
* WIP: switch to fully decomposed tokens internallyAleksey Kladov2019-09-102-0/+131
|
* Fix outer doc-comments of `macro_rules`uHOOCCOOHu2019-09-092-0/+42
|
* update test dataAleksey Kladov2019-09-0230-3585/+3676
|
* rename struct -> record, pos -> tupleAleksey Kladov2019-08-2310-39/+39
|
* fix test positionbravomikekilo2019-08-142-0/+84
|