about summary refs log tree commit diff
path: root/crates/parser/src/grammar/items
AgeCommit message (Collapse)AuthorLines
2021-12-12Switch parser to use tokensAleksey Kladov-1/+1
2021-11-10Handle pub tuple fields in tuple structsAdam Bratschi-Kaye-2/+2
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-10-03Add semicolons for consistencyAramis Razzaghipour-4/+4
`clippy::semicolon_if_nothing_returned`
2021-09-18internal: better namingAleksey Kladov-12/+12
2021-09-18internal: minimize use_tree parser testsAleksey Kladov-65/+28
The code here is intentionally dense and does exactly what is written. Explaining semantic difference between Rust 2015 and 2018 doesn't help with understanding syntax. Better to just add more targeted tests.
2021-09-18internal: parser cleanupsAleksey Kladov-19/+12
2021-09-18internal: more focused trait item parsing testsAleksey Kladov-7/+18
2021-09-18intenral: more local tests for staticsAleksey Kladov-5/+8
2021-09-18minor: cleanup const parsingAleksey Kladov-9/+9
2021-09-18internal: cleanup adt parsingAleksey Kladov-29/+18
2021-09-18internal: cleanup item parsingAleksey Kladov-2/+5
2021-09-17internal: more focused parsing testsAleksey Kladov-16/+19
2021-07-17feat: improve parser error recovery for function parametersAleksey Kladov-2/+5
2021-05-22Add even more docsAleksey Kladov-8/+0
2021-01-24Add validation for mutable const itemsLukas Wirth-1/+1
2021-01-18Parse `impl const Trait`Lukas Wirth-0/+4
2021-01-10Merge #7218bors[bot]-1/+1
7218: Fix typos r=Veykril a=regexident Apart from the very last commit on this PR (which fixes a public type's name) all changes are non-breaking. Co-authored-by: Vincent Esche <regexident@gmail.com>
2021-01-10Replace SyntaxKind usage with T! macro where applicableLukas Wirth-1/+1
2021-01-09Fixed typos in code commentsVincent Esche-1/+1
2020-12-16Node-ify lifetimesLukas Wirth-5/+5
2020-08-13Align parser names with grammarAleksey Kladov-51/+29
2020-08-12Rename ra_parser -> parserAleksey Kladov-0/+496