about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/parser
AgeCommit message (Collapse)AuthorLines
2025-02-27enable doctestBenjaminBrienen-1/+0
2025-02-23Merge pull request #19191 from Veykril/push-yzzlosskwrxsLukas Wirth-4/+2
Remove `limit` crate in favor `usize`
2025-02-23Remove `limit` crate in favor `usize`Lukas Wirth-4/+2
2025-02-23Fix codegen of parser inline tests runnerniller-g-4/+4
When running `cargo codegen` the `crates/parser/test_data/generated/runner.rs` file is only updated when some file in `crates/parser/test_data/inline` changes. However this is not sufficient in all cases
2025-01-28Merge pull request #19015 from Wilfred/mdbookLukas Wirth-1/+1
manual: Convert to mdbook
2025-01-27feat: Implement `default-field-values`Shoyu Vanilla-15/+275
2025-01-24manual: Convert to mdbookWilfred Hughes-1/+1
Split manual.adoc into markdown files, one for each chapter. For the parts of the manual that are generated from source code doc comments, update the comments to use markdown syntax and update the code generators to write to `generated.md` files. For the weekly release, stop copying the .adoc files to the `rust-analyzer/rust-analyzer.github.io` at release time. Instead, we'll sync the manual hourly from this repository. See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/226 for the sync. This PR should be merged first, and that PR needs to be merged before the next weekly release. This change is based on #15795, but rebased and updated. I've also manually checked each page for markdown syntax issues and fixed any I encountered. Co-authored-by: Lukas Wirth <lukastw97@gmail.com> Co-authored-by: Josh Rotenberg <joshrotenberg@gmail.com>
2025-01-17Merge pull request #18908 from jnyfah/error-bracesLukas Wirth-12/+637
Fix: Detect missing errors for } braces before else in let...else statements
2025-01-16CRLF to LFjnyfah-100/+115
2025-01-16added testsjnyfah-0/+597
2025-01-16revert blocklike changesjnyfah-8/+9
2025-01-16update blocklikejnyfah-13/+10
2025-01-16feat: complete raw, const keywordlh123-3/+30
2025-01-10Missing errorsjnyfah-11/+26
2025-01-06minor: New clippy lintsLukas Wirth-3/+3
2024-12-30Add a function to convert a SyntaxKind to its text, where possibleChayim Refael Friedman-0/+325
This will also help for the make's quote macro.
2024-12-27fix doc typoErithax-1/+1
2024-12-20Fix a case where completion was unable to expand a macroChayim Refael Friedman-59/+73
Which caused the macros of the popular `tracing` crate to not offer completions. The reason is rather complicated: it boils down to macro ignoring their input and completion always choosing the first expansion.
2024-12-11Properly handle different defaults for severity of lintsChayim Refael Friedman-79/+4
Previously all lints were assumed to be `#[warn]`, and we had a hand-coded list of `#[allow]` exceptions. Now the severity is autogenerated from rustdoc output. Also support lints that change status between editions, and the `warnings` lint group.
2024-12-06Merge pull request #18625 from Veykril/push-npnxwpxuzlqzLukas Wirth-4/+71
fix: Fix parser getting stuck for bad asm expressions
2024-12-06fix: Fix parser getting stuck for bad asm expressionsLukas Wirth-4/+71
2024-12-05fix: Fix parsing of dyn T in generic arg on 2015 editionLukas Wirth-3/+68
2024-12-05Parse lifetime bounds in lifetime param into TypeBoundListLukas Wirth-38/+66
This mainly aids in error recovery but also makes it a bit easier to handle lifetime resolution. While doing so it also came apparent that we were not actually lowering lifetime outlives relationships within lifetime parameter declaration bounds, so this fixes that.
2024-12-05fix: Fix parsing of integer/keyword name refs in various placesLukas Wirth-132/+350
2024-12-04Fix parsing of parenthesized type args and RTNLukas Wirth-646/+920
2024-12-04fix: Don't create empty path nodesLukas Wirth-24/+26
2024-12-04Better parser recovery for incomplete attributesLukas Wirth-19/+130
2024-11-19Remove `TokenKind::InvalidPrefix`.Nicholas Nethercote-1/+1
It was added in #123752 to handle some cases involving emoji, but it isn't necessary because it's always treated the same as `TokenKind::InvalidIdent`. This commit removes it, which makes things a little simpler.
2024-10-31Parse patterns with leading pipe properly in all placesChayim Refael Friedman-16/+73
2024-10-30Only parse `safe` as contextual kw in extern blocksChayim Refael Friedman-8/+47
I don't like the party of `bool`s that is becoming, but two isn't worth a refactoring yet IMO.
2024-10-27Merge pull request #18419 from ChayimFriedman2/leading-orLukas Wirth-30/+67
fix: Put leading `|` in patterns under `OrPat`
2024-10-27Put leading `|` in patterns under `OrPat`Chayim Refael Friedman-30/+67
Previously it was one level above, and that caused problems with macros that expand to it, because macros expect to get only one top-level node.
2024-10-27Correctly handle `#""` in edition <2024Chayim Refael Friedman-7/+30
2024-10-22Auto merge of #18371 - Veykril:veykril/push-kwttrusywysp, r=Veykrilbors-10/+35
fix: Fix incorrect parsing of use bounds Fixes https://github.com/rust-lang/rust-analyzer/issues/18357
2024-10-22fix: Fix incorrect parsing of use boundsLukas Wirth-10/+35
Also lower them a bit more
2024-10-22Fix new nightly lintsLukas Wirth-3/+2
2024-10-21fix: classify `safe` as a contextual kwroife-7/+7
2024-10-20feat: initial support for safe_kw in extern blocksroife-1/+236
2024-10-17Bump rustc cratesLaurențiu Nicola-2/+3
2024-10-17Merge from rust-lang/rustLaurențiu Nicola-0/+6
2024-10-08Reserve guarded string literals (RFC 3593)Peter Jaszkowiak-0/+6
2024-10-01fix: correctly parse `use` in generic parametersSabrinaJewson-1/+29
2024-09-25Run rustfmtLaurențiu Nicola-3/+1
2024-09-25Merge from rust-lang/rustLaurențiu Nicola-0/+7
2024-09-06Fix toolsMichael Goulet-0/+7
2024-09-05fix: Fix parser panicking on invalid asm optionsLukas Wirth-0/+1
2024-09-05asm! parsing and lowering fixesLukas Wirth-7/+13
2024-09-05Give InlineAsmOperand a HIR representationLukas Wirth-29/+41
2024-09-05Add Definition kind for asm register operandLukas Wirth-18/+26
2024-09-05Lower asm expressionsLukas Wirth-21/+17