emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62109: closed (29.0.60; rust-ts-mode missing indentation for pattern


From: GNU bug Tracking System
Subject: bug#62109: closed (29.0.60; rust-ts-mode missing indentation for patterns)
Date: Sat, 11 Mar 2023 23:54:01 +0000

Your message dated Sat, 11 Mar 2023 15:53:21 -0800
with message-id <5559DA03-EC90-4878-9DA6-30A034AF0E9F@gmail.com>
and subject line Re: bug#62109: 29.0.60; rust-ts-mode missing indentation for 
patterns
has caused the debbugs.gnu.org bug report #62109,
regarding 29.0.60; rust-ts-mode missing indentation for patterns
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62109: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62109
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.0.60; rust-ts-mode missing indentation for patterns Date: Fri, 10 Mar 2023 14:32:42 -0800
X-Debbugs-CC: dev@rjt.dev

Try this snippet:

fn main() {
    match &cli.command {
        Commands::Run {
a,
b,
c,
d,
        } => todo!(),
    }
}


The a, b, c, d don’t have corresponding indentation rules. I can add
some myself, but I’m not sure where to add and what’s the best rule to
add.

Yuan




--- End Message ---
--- Begin Message --- Subject: Re: bug#62109: 29.0.60; rust-ts-mode missing indentation for patterns Date: Sat, 11 Mar 2023 15:53:21 -0800

> On Mar 10, 2023, at 6:04 PM, Randy Taylor <dev@rjt.dev> wrote:
> 
> On Friday, March 10th, 2023 at 21:03, Randy Taylor <dev@rjt.dev> wrote:
>> 
>> On Friday, March 10th, 2023 at 17:32, Yuan Fu casouri@gmail.com wrote:
>> 
>>> X-Debbugs-CC: dev@rjt.dev
>>> 
>>> Try this snippet:
>>> 
>>> fn main() {
>>> match &cli.command {
>>> Commands::Run {
>>> a,
>>> b,
>>> c,
>>> d,
>>> } => todo!(),
>>> 
>>> }
>>> }
>>> 
>>> The a, b, c, d don’t have corresponding indentation rules. I can add
>>> some myself, but I’m not sure where to add and what’s the best rule to
>>> add.
>>> 
>>> Yuan
>> 
>> 
>> Thanks for the report, I've attached a patch fixing it.
> 
> Sorry, forgot to include the bug #. Same patch with the bug # this time!
> 

Attachment: 0001-Add-missing-indentation-rule-for-rust-ts-mode-Bug-62.patch
Description: Binary data


Brilliant, thanks! I applied it.

Yuan

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]