rust-analyzer/crates/parser/src
Adam Bratschi-Kaye 0d54754ca7 Handle pub tuple fields in tuple structs
The current implementation will throw a parser error for tuple structs
that contain a pub tuple field. For example,
```rust
struct Foo(pub (u32, u32));
```
is valid Rust, but rust-analyzer will throw a parser error.  This is
because the parens after `pub` is treated as a visibility context.
Allowing a tuple type to follow `pub` in the special case when we are
defining fields in a tuple struct can fix the issue.
2021-11-10 21:29:50 +01:00
..
grammar Handle pub tuple fields in tuple structs 2021-11-10 21:29:50 +01:00
syntax_kind internal: remove unused dollars 2021-10-23 20:44:35 +03:00
event.rs fix: correct extend_to logic in parser 2021-09-25 22:09:50 +03:00
grammar.rs Handle pub tuple fields in tuple structs 2021-11-10 21:29:50 +01:00
lib.rs minor: modernize 2021-09-06 18:54:16 +03:00
parser.rs internal: remove unused dollars 2021-10-23 20:44:35 +03:00
syntax_kind.rs minor: modernize 2021-09-06 18:54:16 +03:00
token_set.rs Add semicolons for consistency 2021-10-03 23:39:43 +11:00