From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Tree sitter support for C-like languages Date: Fri, 11 Nov 2022 22:17:44 -0800 Message-ID: References: <87tu36em9t.fsf@thornhill.no> <45FD2F78-F15B-488B-9348-A8E298D8AD35@gmail.com> <87v8nmyqqp.fsf@thornhill.no> <87pmds3dk7.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="20077"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Theodor Thornhill , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 12 07:18:13 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 1otjqG-00055K-Ti for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Nov 2022 07:18:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otjpw-0000jX-Q6; Sat, 12 Nov 2022 01:17:52 -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 1otjps-0000h9-VK for emacs-devel@gnu.org; Sat, 12 Nov 2022 01:17:49 -0500 Original-Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otjpr-0001yA-FH for emacs-devel@gnu.org; Sat, 12 Nov 2022 01:17:48 -0500 Original-Received: by mail-pl1-x62e.google.com with SMTP id v17so5894543plo.1 for ; Fri, 11 Nov 2022 22:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=i0DRN/qZboALw4JYDgFUrVF8CGbX5oiBbqhkctQbYX0=; b=cdH3LYagSDmMfJ2YwBxCTwPV+AjhugTmfH2/hS51qWvG2sm/aeuqCvzQ7O7BG7sFKT p1y4YEWOuHd6WoXrzOAKoreF+9Uc33e8Fr3oOFHaHA0pS0lbEYoVE+O4zytUxEMc0ypG /Dlh4GdnWLDA7XZbTRE9g6+lO01277yAB+ZJVqx2c2a8JaDSoHz4/eX3z/0JnWi5Hps7 aLag1cVcwVtWlKWMkKkUPLDvvPji0YTisOAh/le7OA6vSjCuF4WRJpUcFqGJ0zFfXRia Nu8B8AeOjOLzYL2/JtusiOM+j+hFMy4kuY03efKiz8KR1ePzFO7sZHqtY5WNSEeL+e7O JAGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i0DRN/qZboALw4JYDgFUrVF8CGbX5oiBbqhkctQbYX0=; b=VTIVDFgaghTTozsK5qFL8x3xynkSAu0i1BanigA9j84mBxBuVZBvLT1gQgt+ZXoRKf eBb5i4wH0m9/G4kQwR3xnWZmDzH/2Z1Eveh4O4D4i7S2Uy2WeLaT3bOgCZi+yhwksscX JijjASNsxAgWPoqLNu3geVz/SN1W05T45XQBNG4y/58VccYaGSy8l+MDrwLJ5NFUcWqr GMSLz7//4Suc2twNDbZztrUTMnInqQhE8mS6kxSl3jCHJ/KHKSTmzzxUWUEexFZyFr6K 5bBXrXC2p/jEKrPG5GPcnLx6cBFB7K4Ar1msxqDmS+qUBg3tOTXzaoIYfzamFexEP51B FUug== X-Gm-Message-State: ANoB5pkYpD+ZGCwmJPsUMdnAOZEUbY0+/t9gFAhAyAvkZwWk+V+lXtWl o+JnXdZQMtYkL5Ixr5AYVqw= X-Google-Smtp-Source: AA0mqf5y89+fqQdTfNcmAWu24QvwcML8crJl7qqC2oW8tWkmFBrFzSNlEpCu8BvXMFM97dqKBLmPFQ== X-Received: by 2002:a17:90a:fa11:b0:212:6a0b:7d55 with SMTP id cm17-20020a17090afa1100b002126a0b7d55mr5232931pjb.16.1668233866031; Fri, 11 Nov 2022 22:17:46 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id a188-20020a624dc5000000b0056299fd2ba2sm2557222pfb.162.2022.11.11.22.17.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Nov 2022 22:17:45 -0800 (PST) In-Reply-To: <87pmds3dk7.fsf@yahoo.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=casouri@gmail.com; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:299611 Archived-At: > On Nov 11, 2022, at 10:13 PM, Po Lu wrote: >=20 > Yuan Fu writes: >=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? >=20 > Yes? c-basic-offset is 2 by default. I should clarify, indentation of the second snippet is not suprising, I = just wanted to show the difference between the two. The first snippet is = what I didn=E2=80=99t expect. Yuan=