From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61541: 30.0.50; Wrong indentarion in csharp-mode Date: Fri, 17 Feb 2023 20:28:07 +0100 Message-ID: <87a61cozw8.fsf@thornhill.no> References: <87k00i7hko.fsf.ref@aol.com> <87k00i7hko.fsf@aol.com> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6660"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jostein@kjonigsen.net, 61541@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 17 20:29:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pT6Q9-0001Yd-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Feb 2023 20:29:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT6Po-0003mJ-Q7; Fri, 17 Feb 2023 14:29:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT6Pm-0003lt-Of for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 14:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pT6Pm-0002FY-GL for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 14:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pT6Pm-0005pA-Bu for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 14:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2023 19:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61541 X-GNU-PR-Package: emacs Original-Received: via spool by 61541-submit@debbugs.gnu.org id=B61541.167666209022321 (code B ref 61541); Fri, 17 Feb 2023 19:29:02 +0000 Original-Received: (at 61541) by debbugs.gnu.org; 17 Feb 2023 19:28:10 +0000 Original-Received: from localhost ([127.0.0.1]:41597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT6Ow-0005nx-HU for submit@debbugs.gnu.org; Fri, 17 Feb 2023 14:28:10 -0500 Original-Received: from out0.migadu.com ([94.23.1.103]:20448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT6Ov-0005nq-Lx for 61541@debbugs.gnu.org; Fri, 17 Feb 2023 14:28:10 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1676662089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gZjQS3bK0PtNoAc/Vievy1LtC+6brpOcISWMo+vMtys=; b=jRzfBkg5wTR55v3onmWDMHjeBhKmQyuvLvJ+YSjGLDr05t/5hvoK+njXWk+J7xp3xAQxSE +A2HdaA/ISQ8rlCXM/7KxlqIYqZ5TOsZmBAxLaINZza7tO186Yfvuer+nWrXdpQuL3n3nL Yu8EPIM91tXy0Trg3GMH74gGEt08dA0G1TvONNC7UKiTPdUGsEopB2/jzKK0+uS3szhJJn COF2BJ3XdejTFQitGaKO+ASb+6UapHo1sL4y6OypOOlGZHcox2J6cBV7NsED0eA0k10lzA 1pK3SiHpGNsEV7+/qbiiq90DEYrG0FvT7Z3HvEU1IpeWlq2xFPJP6xwTsGiN3Q== In-Reply-To: <87k00i7hko.fsf@aol.com> (Ergus's message of "Wed, 15 Feb 2023 22:19:03 +0100") X-Migadu-Flow: FLOW_OUT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255900 Archived-At: Ergus writes: > Hi: > > I just found that this indentations are wrong in csharp mode: > > // wrong > new myNamespace.myClass > { > Name1 = x.Value, // defun-block-intro > var2 = 2 // statement-cont > } // statement-cont > > > The problem seems to be related with the dot (.) in the new, because > this variant indents correctly: > > // right > new myClass > { > Name1 = x.Value, // brace-list-intro > var2 = 2 // brace-list-entry > } // brace-list-close > > > csharp-ts-mode is doing it right BTW. > Hi! Yeah, this is one of the harder issues iirc, and one of the ones that made us move to tree-sitter in csharp-mode in the first place. What do you think Jostein? Patches welcome! Theo