about summary refs log tree commit diff
path: root/crates/parser
AgeCommit message (Collapse)AuthorLines
2022-07-19Upgrade to expect-test@1.4.0Amos Wenger-1/+1
cf. https://github.com/rust-analyzer/expect-test/issues/33 cf. https://github.com/rust-lang/rust/pull/99444#issuecomment-1188844202
2022-07-08Update remaining GitHub URLsJonas Schievink-18/+18
2022-06-10internal: Bump DependenciesLukas Wirth-1/+1
2022-06-02fix: parsing of `?` opt-out trait boundsXFFXFF-0/+54
thanks to Veykril
2022-05-13Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, ↵Jonas Schievink-271/+43
r=jonas-schievink" This reverts commit cc9ae2b89e01a30e441371b9fd3376c3d03a475f, reversing changes made to 7dfd1cb572d8d4fd951237361e43ecddd9c9a852.
2022-05-13Revert "fix: Remap float parts as integers when parsed as indices"Jonas Schievink-5/+5
This reverts commit dbb066b99e2e644437ddecb20127bcfdba975614.
2022-05-13Revert "Don't remap float tokens to `INT_NUMBER`"Jonas Schievink-6/+4
This reverts commit cb5e8da88a06be415bd804884284c11c0a709bcf.
2022-05-12Don't remap float tokens to `INT_NUMBER`Jonas Schievink-4/+6
2022-05-07fix: Remap float parts as integers when parsed as indicesLukas Wirth-5/+5
2022-05-05Maybe everything else *should* have to deal with itJonas Schievink-24/+18
2022-05-05Indicate the number of float tokens in the first tokenJonas Schievink-41/+167
2022-05-05Wrap floats in token trees in `FLOAT_LITERAL` nodeJonas Schievink-15/+23
2022-05-05Add testsJonas Schievink-0/+37
2022-05-05Split float literal tokens at the `.`Jonas Schievink-42/+95
2022-05-05Wrap float literals in their own nodeJonas Schievink-5/+15
2022-05-02Add a `Converter` type for token conversionJonas Schievink-143/+168
2022-04-27fix: Use pattern recovery set when parsing ident patternsLukas Wirth-9/+6
2022-04-17update parser to support associated const equalityXFFXFF-3/+119
2022-04-10Parse for<'a> closure syntaxLukas Wirth-157/+242
2022-04-05Wrap macros in expr position in `MacroExpr` nodeJonas Schievink-430/+452
2022-04-01recover from missing type annotationhkalbasi-0/+6
2022-03-31Remove parser restriction on varargs positioningJonas Schievink-28/+37
2022-03-22minor: Bump dependenciesLukas Wirth-3/+2
2022-03-11refactor: Rename and move const_arg_pathSteven Joruk-33/+41
It wasn't testing the `const_arg` code path, it was actually hitting const_param's default value code path, so move it to the right place and rename it.
2022-03-11refactor: Rename const_arg_content to const_arg_exprSteven Joruk-3/+3
2022-03-11fix: Stop wrapping ConstParam's default values in ConstArgSteven Joruk-50/+82
This was causing ConstParam::default_val to always return None for block expressions. CONST_ARG@24..29 BLOCK_EXPR@24..29 ...
2022-03-10Add support for new `where` clause location in associated types.Dario Nieuwenhuis-8/+47
A recent Rust nightly changed it: https://github.com/rust-lang/rust/issues/89122 This allows both the old and new location.
2022-03-06Bring back syntax highlighting in test dataAleksey Kladov-48830/+24858
cc #11597
2022-03-05fix: Recognize `Self` as a proper keywordLukas Wirth-17/+20
2022-03-02Parse destructuring assignmentChayim Refael Friedman-214/+504
The only patterns we should parse are `..` in structs and `_`: the rest are either not supported or already valid expressions.
2022-02-21Update testsChayim Refael Friedman-781/+524
Unfortunately, we lost some recovery for expressions.
2022-02-21Parse `let` expressions in order to support `let` chainsChayim Refael Friedman-21/+24
We still need to reject freestanding `let` expressions: see https://github.com/rust-analyzer/rust-analyzer/issues/11320#issuecomment-1018212465.
2022-02-14Fix stylebellau-9/+5
2022-02-13oops, remove printlnbellau-1/+0
2022-02-13fix handle static async and static async movebellau-3/+54
2022-02-12Fix stylebellau-1/+1
2022-02-12support static move toobellau-3/+22
2022-02-12Fix stylesbellau-1/+1
2022-02-12Fix Immovable generator syntax (static ||) not recognized #11448bellau-1/+20
2022-01-17Allow macros to expand to or-patternsJonas Schievink-1/+1
2022-01-02add empty input testsAleksey Kladov-0/+39
2022-01-02more intuitive orderAleksey Kladov-43/+43
2022-01-02check top level entry point invariantsAleksey Kladov-5/+36
2022-01-02add top-level tests for expressionsAleksey Kladov-1/+54
2022-01-02add top level tests for typesAleksey Kladov-1/+65
2022-01-02enforce parsing invariant for patternsAleksey Kladov-1/+41
2022-01-02internal: more macro testsAleksey Kladov-1/+26
2022-01-02add test for macro itemsAleksey Kladov-0/+37
2022-01-02split prefix/top testsAleksey Kladov-210/+208
2022-01-02add tests for macro statementsAleksey Kladov-0/+43