From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Tree sitter support for C-like languages Date: Sat, 12 Nov 2022 09:43:37 +0100 Message-ID: <9BC2F0D2-68E1-4731-93A9-3D9C7C465109@thornhill.no> References: <87tu36em9t.fsf@thornhill.no> <45FD2F78-F15B-488B-9348-A8E298D8AD35@gmail.com> <87v8nmyqqp.fsf@thornhill.no> <83pmdsoawq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii , Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 12 09:44:14 2022 Return-path: Envelope-to: ged-emacs-devel@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 1otm7a-0001qd-7p for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Nov 2022 09:44:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otm7J-0004Ol-BI; Sat, 12 Nov 2022 03:43:57 -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 1otm7H-0004L9-CA for emacs-devel@gnu.org; Sat, 12 Nov 2022 03:43:55 -0500 Original-Received: from out0.migadu.com ([2001:41d0:2:267::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otm7F-0002ph-VJ; Sat, 12 Nov 2022 03:43:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1668242631; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cD0AquL0ren2KxAyVxd29efbEMSjfotf2Fj13rReJEU=; b=Kc3HYcyR+C3SrIgucMmtOtD0gxqUMz3Td/f4/jI0LEpX33rOGcngyWzElQdJqZDyJFRH8W IJdr541IH2zPn0kJEjyURSCD9/WRd1JVVxzfgtoLY74/M2TC5uWH+Z/2PQcL9/511PaUou SZ417ze0wt8vkfgPZ1lrZJzaKujUDZVAMkfq7c0HW6XIuNDg+RBG+FzOI8JoSG8w4K3sY8 yGKgsVxeffHKh25lge1uS2cZvn3MTXsdxcM5UlpWrZni7htjS7t7xblU8O1BBs+EuAg+Yf e4Y6NgzAu116XG4uzJLG2IVUnhEfUmsWMmpDjMh6itr6BD+KCPU2X5A/FzSHqA== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83pmdsoawq.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=theo@thornhill.no; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299632 Archived-At: On 12 November 2022 09:05:25 CET, Eli Zaretskii wrote: >> From: Yuan Fu >> Date: Fri, 11 Nov 2022 21:43:21 -0800 >> Cc: emacs-devel@gnu=2Eorg >>=20 >> I noticed that with the default indent style, Emacs indents like this: >>=20 >> int main () { >> for (int j =3D 0; j < 5; j++) >> a[j] =3D 3; >> int i =3D 1; >> swap(i, a[i+1]); >> Point p =3D {0, 1}; >> } >>=20 >> int main () >> { >> for (int j =3D 0; j < 5; j++) >> a[j] =3D 3; >> int i =3D 1; >> swap(i, a[i+1]); >> Point p =3D {0, 1}; >> } >>=20 >> Is this expected? > >With which indentation style? Gnu, but I made this work in the gnu style as well=2E Theo