about summary refs log tree commit diff
path: root/crates/ide/src/join_lines.rs
AgeCommit message (Collapse)AuthorLines
2022-06-10internal: Bump DependenciesLukas Wirth-1/+1
2022-03-06internal: Re-arrange ide_db modulesLukas Wirth-1/+1
2021-10-21Migrate to edition 2021Lukas Wirth-2/+0
2021-10-05Replace `if let` with `match` where appropriateAramis Razzaghipour-4/+3
2021-09-26internal: more reasonable grammar for blocksAleksey Kladov-1/+1
Consider these expples { 92 } async { 92 } 'a: { 92 } #[a] { 92 } Previously the tree for them were BLOCK_EXPR { ... } EFFECT_EXPR async BLOCK_EXPR { ... } EFFECT_EXPR 'a: BLOCK_EXPR { ... } BLOCK_EXPR #[a] { ... } As you see, it gets progressively worse :) The last two items are especially odd. The last one even violates the balanced curleys invariant we have (#10357) The new approach is to say that the stuff in `{}` is stmt_list, and the block is stmt_list + optional modifiers BLOCK_EXPR STMT_LIST { ... } BLOCK_EXPR async STMT_LIST { ... } BLOCK_EXPR 'a: STMT_LIST { ... } BLOCK_EXPR #[a] STMT_LIST { ... }
2021-09-26Remove inherent methods from ast node that carry semantic meaningLukas Wirth-1/+2
2021-08-22feat: join lines merges assignmentsunexge-0/+93
2021-07-29Attach comma token to MATCH_ARM instead of MATCH_ARM_LISTLukas Wirth-11/+3
2021-07-05feat: make join lines behavior configurableAleksey Kladov-73/+113
closes #9492
2021-07-03feat: join lines joins two ifs into `else if`Aleksey Kladov-1/+78
2021-06-17Nest all the or-patterns!Lukas Wirth-1/+1
2021-06-13clippy::redudant_borrowMaan2003-1/+1
2021-05-12Support length for ByteStringsJade-1/+1
I am not confident that my added byte string parsing is right.
2021-05-09minor: fix test styleAleksey Kladov-12/+0
2021-05-09fix: join lines doesn't add space before closing quoteAleksey Kladov-0/+30
2021-05-09fix: join lines doesn't add space before closing quoteAleksey Kladov-9/+32
2021-04-03Fix joinLines panic if run on the empty last lineEdwin Cheng-2/+16
2021-03-31Gifs and screenshots for features in manualAyomide Bamidele-0/+2
2021-03-16Upgrade rowanAleksey Kladov-19/+25
Notably, new rowan comes with support for mutable syntax trees.
2021-03-15some clippy::performance fixesMatthias Krüger-2/+2
use vec![] instead of Vec::new() + push() avoid redundant clones use chars instead of &str for single char patterns in ends_with() and starts_with() allocate some Vecs with capacity to avoid unneccessary resizing
2021-03-08Use upstream cov-markLaurențiu Nicola-4/+4
2021-03-02Don't add space when joining line to opening quoteAleksey Kladov-12/+62
2021-02-237526: Rename crate assists to ide_assists.Chetan Khilosiya-1/+1
2021-02-09Cleanup testAleksey Kladov-20/+21
2021-01-20.Aleksey Kladov-1/+1
2021-01-15Remove useless wrapperAleksey Kladov-2/+2
2021-01-07Better fixture highlightAleksey Kladov-6/+6
2021-01-07Change <|> to $0 - RebaseKevaundray Wedderburn-62/+62
2020-11-02Remove more unreachable pubsAleksey Kladov-1/+1
2020-08-13Rename ra_ide -> ideAleksey Kladov-0/+773